diff --git a/Makefile b/Makefile index e1d3352..156edfc 100644 --- a/Makefile +++ b/Makefile @@ -41,3 +41,11 @@ generate: clean ## Generate the API Go client and the JSON document for the UI validate: ## Check that the swagger spec is valid. go run github.com/go-swagger/go-swagger/cmd/swagger@v0.30.5 validate $(SWAGGER_SPEC) + +test: ## Generate with openapitools/openapi-generator-cli + docker run --rm -v $(shell pwd):/local openapitools/openapi-generator-cli generate \ + -i /local/swagger.json \ + -g go \ + -o /local/go2 \ + --git-user-id=staffbase \ + --git-repo-id=bitrise-api \ No newline at end of file diff --git a/go2/.gitignore b/go2/.gitignore new file mode 100644 index 0000000..daf913b --- /dev/null +++ b/go2/.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/go2/.openapi-generator-ignore b/go2/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/go2/.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/go2/.openapi-generator/FILES b/go2/.openapi-generator/FILES new file mode 100644 index 0000000..14f3fc9 --- /dev/null +++ b/go2/.openapi-generator/FILES @@ -0,0 +1,360 @@ +.gitignore +.openapi-generator-ignore +.travis.yml +README.md +api/openapi.yaml +api_activity.go +api_addons.go +api_android_keystore_file.go +api_app_setup.go +api_apple_api_credentials.go +api_application.go +api_build_artifact.go +api_build_certificate.go +api_build_request.go +api_builds.go +api_generic_project_file.go +api_key_value_cache.go +api_local_builds.go +api_organizations.go +api_outgoing_webhook.go +api_pipelines.go +api_provisioning_profile.go +api_releases.go +api_secrets.go +api_test_devices.go +api_user.go +api_webhook_delivery_item.go +client.go +configuration.go +docs/ActivityAPI.md +docs/AddonsAPI.md +docs/AddonsAddon.md +docs/AddonsDeveloperLink.md +docs/AddonsFeature.md +docs/AddonsPlan.md +docs/AddonsSetupGuide.md +docs/AddonsSetupInstruction.md +docs/AndroidKeystoreFileAPI.md +docs/AppRolesQuery200Response.md +docs/AppSetupAPI.md +docs/AppleApiCredentialsAPI.md +docs/ApplicationAPI.md +docs/BuildArtifactAPI.md +docs/BuildCertificateAPI.md +docs/BuildRequestAPI.md +docs/BuildsAPI.md +docs/GenericProjectFileAPI.md +docs/KeyValueCacheAPI.md +docs/LocalBuildsAPI.md +docs/NullsInt64.md +docs/NullsString.md +docs/OrganizationsAPI.md +docs/OrganzationGroupsList200ResponseInner.md +docs/OutgoingWebhookAPI.md +docs/PipelineabledomainArtifactMeta.md +docs/PipelineabledomainBuildToolInvocation.md +docs/PipelineabledomainEnvironments.md +docs/PipelineabledomainLocalConfig.md +docs/PipelineabledomainTriggerParams.md +docs/PipelinesAPI.md +docs/ProvisioningProfileAPI.md +docs/ReleasesAPI.md +docs/SecretsAPI.md +docs/ServiceProxyErrorRespModel.md +docs/ServiceStandardErrorRespModel.md +docs/TestDevicesAPI.md +docs/UserAPI.md +docs/V0ActivityEventListResponseModel.md +docs/V0ActivityEventResponseItemModel.md +docs/V0AddOnAppResponseItemModel.md +docs/V0AddonsListResponseModel.md +docs/V0AddonsShowResponseModel.md +docs/V0AndroidKeystoreFileUploadParams.md +docs/V0AppAddOnResponseItemModel.md +docs/V0AppAddOnsListResponseModel.md +docs/V0AppConfigRequestParam.md +docs/V0AppDeleteRespModel.md +docs/V0AppFinishParams.md +docs/V0AppFinishRespModel.md +docs/V0AppListResponseModel.md +docs/V0AppNotificationSettingsParams.md +docs/V0AppNotificationSettingsUpdateResponse.md +docs/V0AppRespModel.md +docs/V0AppResponseItemModel.md +docs/V0AppSecret.md +docs/V0AppSecretGetValueResponse.md +docs/V0AppSecretListResponse.md +docs/V0AppSecretUpsertParams.md +docs/V0AppShowResponseModel.md +docs/V0AppUpdateParams.md +docs/V0AppUpdateRespModel.md +docs/V0AppUploadParams.md +docs/V0AppWebhookCreateParams.md +docs/V0AppWebhookCreatedResponseModel.md +docs/V0AppWebhookDeletedResponseModel.md +docs/V0AppWebhookListResponseModel.md +docs/V0AppWebhookResponseItemModel.md +docs/V0AppWebhookResponseModel.md +docs/V0AppWebhookUpdateParams.md +docs/V0AppleAPICredentialResponseItem.md +docs/V0AppleAPICredentialsListResponse.md +docs/V0ArchivedBuildArtifact.md +docs/V0ArchivedBuildListResponseModel.md +docs/V0ArchivedBuildResponseItemModel.md +docs/V0ArtifactDeleteResponseModel.md +docs/V0ArtifactListElementResponseModel.md +docs/V0ArtifactListResponseModel.md +docs/V0ArtifactResponseItemModel.md +docs/V0ArtifactShowResponseModel.md +docs/V0ArtifactUpdateParams.md +docs/V0BitriseYMLConfigGetResponse.md +docs/V0BitriseYMLConfigUpdateParams.md +docs/V0BranchListResponseModel.md +docs/V0BuildAbortParams.md +docs/V0BuildAbortResponseModel.md +docs/V0BuildCertificateListResponseModel.md +docs/V0BuildCertificateResponseItemModel.md +docs/V0BuildCertificateResponseModel.md +docs/V0BuildCertificateUpdateParams.md +docs/V0BuildCertificateUploadParams.md +docs/V0BuildListAllResponseItemModel.md +docs/V0BuildListAllResponseModel.md +docs/V0BuildListResponseModel.md +docs/V0BuildParamsEnvironment.md +docs/V0BuildRequestListResponseModel.md +docs/V0BuildRequestResponseItemModel.md +docs/V0BuildRequestUpdateParams.md +docs/V0BuildRequestUpdateResponseModel.md +docs/V0BuildResponseItemModel.md +docs/V0BuildShowResponseModel.md +docs/V0BuildTriggerParams.md +docs/V0BuildTriggerParamsBuildParams.md +docs/V0BuildTriggerParamsHookInfo.md +docs/V0BuildTriggerRespModel.md +docs/V0BuildWorkflowListResponseModel.md +docs/V0CacheItemDownloadResponseModel.md +docs/V0CacheItemDownloadURLResponseModel.md +docs/V0CacheItemListResponseItemModel.md +docs/V0CacheItemListResponseModel.md +docs/V0CommitPaths.md +docs/V0OrganizationDataModel.md +docs/V0OrganizationListRespModel.md +docs/V0OrganizationOwner.md +docs/V0OrganizationRespModel.md +docs/V0OrganizationUpdateMachineTypeParams.md +docs/V0OrganizationUpdateMachineTypeResponse.md +docs/V0OrganizationUpdateMachineTypeResponseErrorsInner.md +docs/V0OwnerAccountResponseModel.md +docs/V0OwnerAddOnResponseItemModel.md +docs/V0OwnerAddOnsListResponseModel.md +docs/V0PagingResponseModel.md +docs/V0PipelineAbortParams.md +docs/V0PipelineListAllResponseItemModel.md +docs/V0PipelineListAllResponseModel.md +docs/V0PipelineListResponseItemModel.md +docs/V0PipelineListResponseModel.md +docs/V0PipelineRebuildParams.md +docs/V0PipelineShowAppResponseModel.md +docs/V0PipelineShowAttemptResponseModel.md +docs/V0PipelineShowEnvironmentsResponseModel.md +docs/V0PipelineShowResponseModel.md +docs/V0PipelineShowStageResponseModel.md +docs/V0PipelineShowTriggerParamsResponseModel.md +docs/V0PipelineShowWorkflowResponseModel.md +docs/V0PlanDataModel.md +docs/V0ProjectFileStorageDocumentUpdateParams.md +docs/V0ProjectFileStorageListResponseModel.md +docs/V0ProjectFileStorageResponseItemModel.md +docs/V0ProjectFileStorageResponseModel.md +docs/V0ProjectFileStorageUploadParams.md +docs/V0ProvProfileDocumentUpdateParams.md +docs/V0ProvisionProfileListResponseModel.md +docs/V0ProvisionProfileResponseItemModel.md +docs/V0ProvisionProfileResponseModel.md +docs/V0ProvisionProfileUploadParams.md +docs/V0ReleaseCreateAppStoreParams.md +docs/V0ReleaseCreateAppStoreRespModel.md +docs/V0ReleaseCreateGooglePlayParams.md +docs/V0ReleaseCreateGooglePlayRespModel.md +docs/V0SSHKeyRespModel.md +docs/V0SSHKeyUploadParams.md +docs/V0TestDeviceListResponseModel.md +docs/V0TestDeviceResponseItemModel.md +docs/V0UserPlanDataModel.md +docs/V0UserPlanRespModel.md +docs/V0UserProfileDataModel.md +docs/V0UserProfileRespModel.md +docs/V0WebhookDeliveryItemResponseModel.md +docs/V0WebhookDeliveryItemShowResponseModel.md +docs/V0WebhookRespModel.md +docs/WebhookDeliveryItemAPI.md +docs/WebsiteBitriseYMLLocation.md +git_push.sh +go.mod +go.sum +model_addons_addon.go +model_addons_developer_link.go +model_addons_feature.go +model_addons_plan.go +model_addons_setup_guide.go +model_addons_setup_instruction.go +model_app_roles_query_200_response.go +model_nulls_int64.go +model_nulls_string.go +model_organzation_groups_list_200_response_inner.go +model_pipelineabledomain_artifact_meta.go +model_pipelineabledomain_build_tool_invocation.go +model_pipelineabledomain_environments.go +model_pipelineabledomain_local_config.go +model_pipelineabledomain_trigger_params.go +model_service_proxy_error_resp_model.go +model_service_standard_error_resp_model.go +model_v0_activity_event_list_response_model.go +model_v0_activity_event_response_item_model.go +model_v0_add_on_app_response_item_model.go +model_v0_addons_list_response_model.go +model_v0_addons_show_response_model.go +model_v0_android_keystore_file_upload_params.go +model_v0_app_add_on_response_item_model.go +model_v0_app_add_ons_list_response_model.go +model_v0_app_config_request_param.go +model_v0_app_delete_resp_model.go +model_v0_app_finish_params.go +model_v0_app_finish_resp_model.go +model_v0_app_list_response_model.go +model_v0_app_notification_settings_params.go +model_v0_app_notification_settings_update_response.go +model_v0_app_resp_model.go +model_v0_app_response_item_model.go +model_v0_app_secret.go +model_v0_app_secret_get_value_response.go +model_v0_app_secret_list_response.go +model_v0_app_secret_upsert_params.go +model_v0_app_show_response_model.go +model_v0_app_update_params.go +model_v0_app_update_resp_model.go +model_v0_app_upload_params.go +model_v0_app_webhook_create_params.go +model_v0_app_webhook_created_response_model.go +model_v0_app_webhook_deleted_response_model.go +model_v0_app_webhook_list_response_model.go +model_v0_app_webhook_response_item_model.go +model_v0_app_webhook_response_model.go +model_v0_app_webhook_update_params.go +model_v0_apple_api_credential_response_item.go +model_v0_apple_api_credentials_list_response.go +model_v0_archived_build_artifact.go +model_v0_archived_build_list_response_model.go +model_v0_archived_build_response_item_model.go +model_v0_artifact_delete_response_model.go +model_v0_artifact_list_element_response_model.go +model_v0_artifact_list_response_model.go +model_v0_artifact_response_item_model.go +model_v0_artifact_show_response_model.go +model_v0_artifact_update_params.go +model_v0_bitrise_yml_config_get_response.go +model_v0_bitrise_yml_config_update_params.go +model_v0_branch_list_response_model.go +model_v0_build_abort_params.go +model_v0_build_abort_response_model.go +model_v0_build_certificate_list_response_model.go +model_v0_build_certificate_response_item_model.go +model_v0_build_certificate_response_model.go +model_v0_build_certificate_update_params.go +model_v0_build_certificate_upload_params.go +model_v0_build_list_all_response_item_model.go +model_v0_build_list_all_response_model.go +model_v0_build_list_response_model.go +model_v0_build_params_environment.go +model_v0_build_request_list_response_model.go +model_v0_build_request_response_item_model.go +model_v0_build_request_update_params.go +model_v0_build_request_update_response_model.go +model_v0_build_response_item_model.go +model_v0_build_show_response_model.go +model_v0_build_trigger_params.go +model_v0_build_trigger_params_build_params.go +model_v0_build_trigger_params_hook_info.go +model_v0_build_trigger_resp_model.go +model_v0_build_workflow_list_response_model.go +model_v0_cache_item_download_response_model.go +model_v0_cache_item_download_url_response_model.go +model_v0_cache_item_list_response_item_model.go +model_v0_cache_item_list_response_model.go +model_v0_commit_paths.go +model_v0_organization_data_model.go +model_v0_organization_list_resp_model.go +model_v0_organization_owner.go +model_v0_organization_resp_model.go +model_v0_organization_update_machine_type_params.go +model_v0_organization_update_machine_type_response.go +model_v0_organization_update_machine_type_response_errors_inner.go +model_v0_owner_account_response_model.go +model_v0_owner_add_on_response_item_model.go +model_v0_owner_add_ons_list_response_model.go +model_v0_paging_response_model.go +model_v0_pipeline_abort_params.go +model_v0_pipeline_list_all_response_item_model.go +model_v0_pipeline_list_all_response_model.go +model_v0_pipeline_list_response_item_model.go +model_v0_pipeline_list_response_model.go +model_v0_pipeline_rebuild_params.go +model_v0_pipeline_show_app_response_model.go +model_v0_pipeline_show_attempt_response_model.go +model_v0_pipeline_show_environments_response_model.go +model_v0_pipeline_show_response_model.go +model_v0_pipeline_show_stage_response_model.go +model_v0_pipeline_show_trigger_params_response_model.go +model_v0_pipeline_show_workflow_response_model.go +model_v0_plan_data_model.go +model_v0_project_file_storage_document_update_params.go +model_v0_project_file_storage_list_response_model.go +model_v0_project_file_storage_response_item_model.go +model_v0_project_file_storage_response_model.go +model_v0_project_file_storage_upload_params.go +model_v0_prov_profile_document_update_params.go +model_v0_provision_profile_list_response_model.go +model_v0_provision_profile_response_item_model.go +model_v0_provision_profile_response_model.go +model_v0_provision_profile_upload_params.go +model_v0_release_create_app_store_params.go +model_v0_release_create_app_store_resp_model.go +model_v0_release_create_google_play_params.go +model_v0_release_create_google_play_resp_model.go +model_v0_ssh_key_resp_model.go +model_v0_ssh_key_upload_params.go +model_v0_test_device_list_response_model.go +model_v0_test_device_response_item_model.go +model_v0_user_plan_data_model.go +model_v0_user_plan_resp_model.go +model_v0_user_profile_data_model.go +model_v0_user_profile_resp_model.go +model_v0_webhook_delivery_item_response_model.go +model_v0_webhook_delivery_item_show_response_model.go +model_v0_webhook_resp_model.go +model_website_bitrise_yml_location.go +response.go +test/api_activity_test.go +test/api_addons_test.go +test/api_android_keystore_file_test.go +test/api_app_setup_test.go +test/api_apple_api_credentials_test.go +test/api_application_test.go +test/api_build_artifact_test.go +test/api_build_certificate_test.go +test/api_build_request_test.go +test/api_builds_test.go +test/api_generic_project_file_test.go +test/api_key_value_cache_test.go +test/api_local_builds_test.go +test/api_organizations_test.go +test/api_outgoing_webhook_test.go +test/api_pipelines_test.go +test/api_provisioning_profile_test.go +test/api_releases_test.go +test/api_secrets_test.go +test/api_test_devices_test.go +test/api_user_test.go +test/api_webhook_delivery_item_test.go +utils.go diff --git a/go2/.openapi-generator/VERSION b/go2/.openapi-generator/VERSION new file mode 100644 index 0000000..0f78c31 --- /dev/null +++ b/go2/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.2.0-SNAPSHOT \ No newline at end of file diff --git a/go2/.travis.yml b/go2/.travis.yml new file mode 100644 index 0000000..f5cb2ce --- /dev/null +++ b/go2/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/go2/README.md b/go2/README.md new file mode 100644 index 0000000..a84739a --- /dev/null +++ b/go2/README.md @@ -0,0 +1,388 @@ +# Go API client for openapi + +Official REST API for Bitrise.io + +## 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: 0.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen +For more information, please visit [https://www.bitrise.io/contact](https://www.bitrise.io/contact) + +## Installation + +Install the following dependencies: + +```shell +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: + +```golang +import openapi "github.com/staffbase/bitrise-api" +``` + +To use a proxy, set the environment variable `HTTP_PROXY`: + +```golang +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 `openapi.ContextServerIndex` of type `int`. + +```golang +ctx := context.WithValue(context.Background(), openapi.ContextServerIndex, 1) +``` + +### Templated Server URL + +Templated server URL is formatted using default variables from configuration or from context value `openapi.ContextServerVariables` of type `map[string]string`. + +```golang +ctx := context.WithValue(context.Background(), openapi.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 `openapi.ContextOperationServerIndices` and `openapi.ContextOperationServerVariables` context maps. + +```golang +ctx := context.WithValue(context.Background(), openapi.ContextOperationServerIndices, map[string]int{ + "{classname}Service.{nickname}": 2, +}) +ctx = context.WithValue(context.Background(), openapi.ContextOperationServerVariables, map[string]map[string]string{ + "{classname}Service.{nickname}": { + "port": "8443", + }, +}) +``` + +## Documentation for API Endpoints + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*ActivityAPI* | [**ActivityList**](docs/ActivityAPI.md#activitylist) | **Get** /me/activities | Get list of Bitrise activity events +*AddonsAPI* | [**AddonListByApp**](docs/AddonsAPI.md#addonlistbyapp) | **Get** /apps/{app-slug}/addons | Get list of the addons for apps +*AddonsAPI* | [**AddonListByOrganization**](docs/AddonsAPI.md#addonlistbyorganization) | **Get** /organizations/{organization-slug}/addons | Get list of the addons for organization +*AddonsAPI* | [**AddonListByUser**](docs/AddonsAPI.md#addonlistbyuser) | **Get** /users/{user-slug}/addons | Get list of the addons for user +*AddonsAPI* | [**AddonsList**](docs/AddonsAPI.md#addonslist) | **Get** /addons | Get list of available Bitrise addons +*AddonsAPI* | [**AddonsShow**](docs/AddonsAPI.md#addonsshow) | **Get** /addons/{addon-id} | Get a specific Bitrise addon +*AndroidKeystoreFileAPI* | [**AndroidKeystoreFileConfirm**](docs/AndroidKeystoreFileAPI.md#androidkeystorefileconfirm) | **Post** /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug} | Confirm an android keystore file upload +*AndroidKeystoreFileAPI* | [**AndroidKeystoreFileCreate**](docs/AndroidKeystoreFileAPI.md#androidkeystorefilecreate) | **Post** /apps/{app-slug}/android-keystore-files | Create an Android keystore file +*AndroidKeystoreFileAPI* | [**AndroidKeystoreFileDelete**](docs/AndroidKeystoreFileAPI.md#androidkeystorefiledelete) | **Delete** /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug} | Delete an android keystore file +*AndroidKeystoreFileAPI* | [**AndroidKeystoreFileList**](docs/AndroidKeystoreFileAPI.md#androidkeystorefilelist) | **Get** /apps/{app-slug}/android-keystore-files | Get a list of the android keystore files +*AppSetupAPI* | [**AppConfigCreate**](docs/AppSetupAPI.md#appconfigcreate) | **Post** /apps/{app-slug}/bitrise.yml | Upload a new bitrise.yml for your application. +*AppSetupAPI* | [**AppCreate**](docs/AppSetupAPI.md#appcreate) | **Post** /apps/register | Add a new app +*AppSetupAPI* | [**AppFinish**](docs/AppSetupAPI.md#appfinish) | **Post** /apps/{app-slug}/finish | Save the application at the end of the app registration process +*AppSetupAPI* | [**AppSetupBitriseYmlConfigGet**](docs/AppSetupAPI.md#appsetupbitriseymlconfigget) | **Get** /apps/{app-slug}/bitrise.yml/config | Getting the location of the application's bitrise.yaml +*AppSetupAPI* | [**AppSetupBitriseYmlConfigUpdate**](docs/AppSetupAPI.md#appsetupbitriseymlconfigupdate) | **Put** /apps/{app-slug}/bitrise.yml/config | Changing the location of the application's bitrise.yaml +*AppSetupAPI* | [**AppWebhookCreate**](docs/AppSetupAPI.md#appwebhookcreate) | **Post** /apps/{app-slug}/register-webhook | Register an incoming webhook for a specific application +*AppSetupAPI* | [**SshKeyCreate**](docs/AppSetupAPI.md#sshkeycreate) | **Post** /apps/{app-slug}/register-ssh-key | Add an SSH-key to a specific app +*AppleApiCredentialsAPI* | [**AppleApiCredentialList**](docs/AppleApiCredentialsAPI.md#appleapicredentiallist) | **Get** /users/{user-slug}/apple-api-credentials | List Apple API credentials for a specific user +*ApplicationAPI* | [**AppConfigDatastoreShow**](docs/ApplicationAPI.md#appconfigdatastoreshow) | **Get** /apps/{app-slug}/bitrise.yml | Get bitrise.yml of a specific app +*ApplicationAPI* | [**AppDelete**](docs/ApplicationAPI.md#appdelete) | **Delete** /apps/{app-slug} | Deletes an app +*ApplicationAPI* | [**AppList**](docs/ApplicationAPI.md#applist) | **Get** /apps | Get list of the apps +*ApplicationAPI* | [**AppListByOrganization**](docs/ApplicationAPI.md#applistbyorganization) | **Get** /organizations/{org-slug}/apps | Get list of the apps for an organization +*ApplicationAPI* | [**AppListByUser**](docs/ApplicationAPI.md#applistbyuser) | **Get** /users/{user-slug}/apps | Get list of the apps for a user +*ApplicationAPI* | [**AppNotifications**](docs/ApplicationAPI.md#appnotifications) | **Patch** /apps/{app-slug}/update-email-notifications | Updates the app's notification settings +*ApplicationAPI* | [**AppRolesQuery**](docs/ApplicationAPI.md#approlesquery) | **Get** /apps/{app-slug}/roles/{role-name} | Lists group roles for an app +*ApplicationAPI* | [**AppRolesUpdate**](docs/ApplicationAPI.md#approlesupdate) | **Put** /apps/{app-slug}/roles/{role-name} | Replaces group roles for an app +*ApplicationAPI* | [**AppShow**](docs/ApplicationAPI.md#appshow) | **Get** /apps/{app-slug} | Get a specific app +*ApplicationAPI* | [**AppUpdate**](docs/ApplicationAPI.md#appupdate) | **Patch** /apps/{app-slug} | Updates an app +*ApplicationAPI* | [**BranchList**](docs/ApplicationAPI.md#branchlist) | **Get** /apps/{app-slug}/branches | List the branches with existing builds of an app's repository +*BuildArtifactAPI* | [**ArtifactDelete**](docs/BuildArtifactAPI.md#artifactdelete) | **Delete** /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug} | Delete a build artifact +*BuildArtifactAPI* | [**ArtifactList**](docs/BuildArtifactAPI.md#artifactlist) | **Get** /apps/{app-slug}/builds/{build-slug}/artifacts | Get a list of all build artifacts +*BuildArtifactAPI* | [**ArtifactShow**](docs/BuildArtifactAPI.md#artifactshow) | **Get** /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug} | Get a specific build artifact +*BuildArtifactAPI* | [**ArtifactUpdate**](docs/BuildArtifactAPI.md#artifactupdate) | **Patch** /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug} | Update a build artifact +*BuildCertificateAPI* | [**BuildCertificateConfirm**](docs/BuildCertificateAPI.md#buildcertificateconfirm) | **Post** /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded | Confirm a build certificate upload +*BuildCertificateAPI* | [**BuildCertificateCreate**](docs/BuildCertificateAPI.md#buildcertificatecreate) | **Post** /apps/{app-slug}/build-certificates | Create a build certificate +*BuildCertificateAPI* | [**BuildCertificateDelete**](docs/BuildCertificateAPI.md#buildcertificatedelete) | **Delete** /apps/{app-slug}/build-certificates/{build-certificate-slug} | Delete a build certificate +*BuildCertificateAPI* | [**BuildCertificateList**](docs/BuildCertificateAPI.md#buildcertificatelist) | **Get** /apps/{app-slug}/build-certificates | Get a list of the build certificates +*BuildCertificateAPI* | [**BuildCertificateShow**](docs/BuildCertificateAPI.md#buildcertificateshow) | **Get** /apps/{app-slug}/build-certificates/{build-certificate-slug} | Get a specific build certificate +*BuildCertificateAPI* | [**BuildCertificateUpdate**](docs/BuildCertificateAPI.md#buildcertificateupdate) | **Patch** /apps/{app-slug}/build-certificates/{build-certificate-slug} | Update a build certificate +*BuildRequestAPI* | [**BuildRequestList**](docs/BuildRequestAPI.md#buildrequestlist) | **Get** /apps/{app-slug}/build-requests | List the open build requests for an app +*BuildRequestAPI* | [**BuildRequestUpdate**](docs/BuildRequestAPI.md#buildrequestupdate) | **Patch** /apps/{app-slug}/build-requests/{build-request-slug} | Update a build request +*BuildsAPI* | [**ArchivedBuildsList**](docs/BuildsAPI.md#archivedbuildslist) | **Get** /apps/{app-slug}/archived-builds | List 1000 archived builds of an app +*BuildsAPI* | [**BuildAbort**](docs/BuildsAPI.md#buildabort) | **Post** /apps/{app-slug}/builds/{build-slug}/abort | Abort a specific build +*BuildsAPI* | [**BuildBitriseYmlShow**](docs/BuildsAPI.md#buildbitriseymlshow) | **Get** /apps/{app-slug}/builds/{build-slug}/bitrise.yml | Get the bitrise.yml of a build +*BuildsAPI* | [**BuildList**](docs/BuildsAPI.md#buildlist) | **Get** /apps/{app-slug}/builds | List all builds of an app +*BuildsAPI* | [**BuildListAll**](docs/BuildsAPI.md#buildlistall) | **Get** /builds | List all builds +*BuildsAPI* | [**BuildLog**](docs/BuildsAPI.md#buildlog) | **Get** /apps/{app-slug}/builds/{build-slug}/log | Get the build log of a build +*BuildsAPI* | [**BuildShow**](docs/BuildsAPI.md#buildshow) | **Get** /apps/{app-slug}/builds/{build-slug} | Get a build of a given app +*BuildsAPI* | [**BuildTrigger**](docs/BuildsAPI.md#buildtrigger) | **Post** /apps/{app-slug}/builds | Trigger a new build/pipeline +*BuildsAPI* | [**BuildWorkflowList**](docs/BuildsAPI.md#buildworkflowlist) | **Get** /apps/{app-slug}/build-workflows | List the workflows of an app +*GenericProjectFileAPI* | [**GenericProjectFileConfirm**](docs/GenericProjectFileAPI.md#genericprojectfileconfirm) | **Post** /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded | Confirm a generic project file upload +*GenericProjectFileAPI* | [**GenericProjectFileDelete**](docs/GenericProjectFileAPI.md#genericprojectfiledelete) | **Delete** /apps/{app-slug}/generic-project-files/{generic-project-file-slug} | Delete a generic project file +*GenericProjectFileAPI* | [**GenericProjectFileList**](docs/GenericProjectFileAPI.md#genericprojectfilelist) | **Get** /apps/{app-slug}/generic-project-files | Get a list of the generic project files +*GenericProjectFileAPI* | [**GenericProjectFileShow**](docs/GenericProjectFileAPI.md#genericprojectfileshow) | **Get** /apps/{app-slug}/generic-project-files/{generic-project-file-slug} | Get a specific generic project file +*GenericProjectFileAPI* | [**GenericProjectFileUpdate**](docs/GenericProjectFileAPI.md#genericprojectfileupdate) | **Patch** /apps/{app-slug}/generic-project-files/{generic-project-file-slug} | Update a generic project file +*GenericProjectFileAPI* | [**GenericProjectFilesCreate**](docs/GenericProjectFileAPI.md#genericprojectfilescreate) | **Post** /apps/{app-slug}/generic-project-files | Create a generic project file +*KeyValueCacheAPI* | [**CacheItemDelete**](docs/KeyValueCacheAPI.md#cacheitemdelete) | **Delete** /apps/{app-slug}/cache-items/{cache-item-id} | Deletes a key-value cache item +*KeyValueCacheAPI* | [**CacheItemDeleteAll**](docs/KeyValueCacheAPI.md#cacheitemdeleteall) | **Delete** /apps/{app-slug}/cache-items | Deletes all key-value cache items belonging to an app +*KeyValueCacheAPI* | [**CacheItemDownload**](docs/KeyValueCacheAPI.md#cacheitemdownload) | **Get** /apps/{app-slug}/cache-items/{cache-item-id}/download | Gets the download URL of a key-value cache item +*KeyValueCacheAPI* | [**CacheList**](docs/KeyValueCacheAPI.md#cachelist) | **Get** /apps/{app-slug}/cache-items | List the key-value cache items belonging to an app +*LocalBuildsAPI* | [**LocalBuildList**](docs/LocalBuildsAPI.md#localbuildlist) | **Get** /apps/{app-slug}/local-builds | List local builds of an app +*OrganizationsAPI* | [**OrgList**](docs/OrganizationsAPI.md#orglist) | **Get** /organizations | List the organizations that the user is part of +*OrganizationsAPI* | [**OrgShow**](docs/OrganizationsAPI.md#orgshow) | **Get** /organizations/{org-slug} | Get a specified organization. +*OrganizationsAPI* | [**OrganizationMachineTypeUpdate**](docs/OrganizationsAPI.md#organizationmachinetypeupdate) | **Patch** /organizations/{org-slug}/apps/machine_types | Migrate machine types +*OrganizationsAPI* | [**OrganzationGroupsList**](docs/OrganizationsAPI.md#organzationgroupslist) | **Get** /organizations/{org-slug}/groups | List organizations groups +*OutgoingWebhookAPI* | [**OutgoingWebhookCreate**](docs/OutgoingWebhookAPI.md#outgoingwebhookcreate) | **Post** /apps/{app-slug}/outgoing-webhooks | Create an outgoing webhook for an app +*OutgoingWebhookAPI* | [**OutgoingWebhookDelete**](docs/OutgoingWebhookAPI.md#outgoingwebhookdelete) | **Delete** /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug} | Delete an outgoing webhook of an app +*OutgoingWebhookAPI* | [**OutgoingWebhookList**](docs/OutgoingWebhookAPI.md#outgoingwebhooklist) | **Get** /apps/{app-slug}/outgoing-webhooks | List the outgoing webhooks of an app +*OutgoingWebhookAPI* | [**OutgoingWebhookUpdate**](docs/OutgoingWebhookAPI.md#outgoingwebhookupdate) | **Put** /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug} | Update an outgoing webhook of an app +*PipelinesAPI* | [**PipelineAbort**](docs/PipelinesAPI.md#pipelineabort) | **Post** /apps/{app-slug}/pipelines/{pipeline-id}/abort | Aborts a pipeline +*PipelinesAPI* | [**PipelineList**](docs/PipelinesAPI.md#pipelinelist) | **Get** /apps/{app-slug}/pipelines | List all pipelines and standalone builds of an app +*PipelinesAPI* | [**PipelineListAll**](docs/PipelinesAPI.md#pipelinelistall) | **Get** /pipelines | List all pipelines/standalone builds +*PipelinesAPI* | [**PipelineRebuild**](docs/PipelinesAPI.md#pipelinerebuild) | **Post** /apps/{app-slug}/pipelines/{pipeline-id}/rebuild | Rebuilds a pipeline +*PipelinesAPI* | [**PipelineShow**](docs/PipelinesAPI.md#pipelineshow) | **Get** /apps/{app-slug}/pipelines/{pipeline-id} | Get a pipeline of a given app +*ProvisioningProfileAPI* | [**ProvisioningProfileConfirm**](docs/ProvisioningProfileAPI.md#provisioningprofileconfirm) | **Post** /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded | Confirm a provisioning profile upload +*ProvisioningProfileAPI* | [**ProvisioningProfileCreate**](docs/ProvisioningProfileAPI.md#provisioningprofilecreate) | **Post** /apps/{app-slug}/provisioning-profiles | Create a provisioning profile +*ProvisioningProfileAPI* | [**ProvisioningProfileDelete**](docs/ProvisioningProfileAPI.md#provisioningprofiledelete) | **Delete** /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug} | Delete a provisioning profile +*ProvisioningProfileAPI* | [**ProvisioningProfileList**](docs/ProvisioningProfileAPI.md#provisioningprofilelist) | **Get** /apps/{app-slug}/provisioning-profiles | Get a list of the provisioning profiles +*ProvisioningProfileAPI* | [**ProvisioningProfileShow**](docs/ProvisioningProfileAPI.md#provisioningprofileshow) | **Get** /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug} | Get a specific provisioning profile +*ProvisioningProfileAPI* | [**ProvisioningProfileUpdate**](docs/ProvisioningProfileAPI.md#provisioningprofileupdate) | **Patch** /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug} | Update a provisioning profile +*ReleasesAPI* | [**ReleaseCreateAppStore**](docs/ReleasesAPI.md#releasecreateappstore) | **Post** /apps/{app-slug}/releases/app-store | Create a new Apple App Store release for the app. +*ReleasesAPI* | [**ReleaseCreateGooglePlay**](docs/ReleasesAPI.md#releasecreategoogleplay) | **Post** /apps/{app-slug}/releases/google-play | Create a new Google Play Store release for the app. +*SecretsAPI* | [**SecretDelete**](docs/SecretsAPI.md#secretdelete) | **Delete** /apps/{app-slug}/secrets/{secret-name} | Delete an application secret +*SecretsAPI* | [**SecretList**](docs/SecretsAPI.md#secretlist) | **Get** /apps/{app-slug}/secrets | List the application secrets (with no values) +*SecretsAPI* | [**SecretUpsert**](docs/SecretsAPI.md#secretupsert) | **Put** /apps/{app-slug}/secrets/{secret-name} | Upsert an application secret +*SecretsAPI* | [**SecretValueGet**](docs/SecretsAPI.md#secretvalueget) | **Get** /apps/{app-slug}/secrets/{secret-name}/value | Get the value of an (unprotected) application secrets +*TestDevicesAPI* | [**TestDeviceList**](docs/TestDevicesAPI.md#testdevicelist) | **Get** /apps/{app-slug}/test-devices | List the test devices for an app +*UserAPI* | [**UserMachineTypeUpdate**](docs/UserAPI.md#usermachinetypeupdate) | **Patch** /user/{user-slug}/apps/machine_types | Migrate machine types +*UserAPI* | [**UserPlan**](docs/UserAPI.md#userplan) | **Get** /me/plan | The subscription plan of the user +*UserAPI* | [**UserProfile**](docs/UserAPI.md#userprofile) | **Get** /me | Get your profile info +*UserAPI* | [**UserShow**](docs/UserAPI.md#usershow) | **Get** /users/{user-slug} | Get a specific user +*WebhookDeliveryItemAPI* | [**WebhookDeliveryItemList**](docs/WebhookDeliveryItemAPI.md#webhookdeliveryitemlist) | **Get** /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items | List the webhook delivery items of an app +*WebhookDeliveryItemAPI* | [**WebhookDeliveryItemRedeliver**](docs/WebhookDeliveryItemAPI.md#webhookdeliveryitemredeliver) | **Post** /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}/redeliver | Re-deliver the webhook delivery items of an app +*WebhookDeliveryItemAPI* | [**WebhookDeliveryItemShow**](docs/WebhookDeliveryItemAPI.md#webhookdeliveryitemshow) | **Get** /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug} | Get a specific delivery item of a webhook + + +## Documentation For Models + + - [AddonsAddon](docs/AddonsAddon.md) + - [AddonsDeveloperLink](docs/AddonsDeveloperLink.md) + - [AddonsFeature](docs/AddonsFeature.md) + - [AddonsPlan](docs/AddonsPlan.md) + - [AddonsSetupGuide](docs/AddonsSetupGuide.md) + - [AddonsSetupInstruction](docs/AddonsSetupInstruction.md) + - [AppRolesQuery200Response](docs/AppRolesQuery200Response.md) + - [NullsInt64](docs/NullsInt64.md) + - [NullsString](docs/NullsString.md) + - [OrganzationGroupsList200ResponseInner](docs/OrganzationGroupsList200ResponseInner.md) + - [PipelineabledomainArtifactMeta](docs/PipelineabledomainArtifactMeta.md) + - [PipelineabledomainBuildToolInvocation](docs/PipelineabledomainBuildToolInvocation.md) + - [PipelineabledomainEnvironments](docs/PipelineabledomainEnvironments.md) + - [PipelineabledomainLocalConfig](docs/PipelineabledomainLocalConfig.md) + - [PipelineabledomainTriggerParams](docs/PipelineabledomainTriggerParams.md) + - [ServiceProxyErrorRespModel](docs/ServiceProxyErrorRespModel.md) + - [ServiceStandardErrorRespModel](docs/ServiceStandardErrorRespModel.md) + - [V0ActivityEventListResponseModel](docs/V0ActivityEventListResponseModel.md) + - [V0ActivityEventResponseItemModel](docs/V0ActivityEventResponseItemModel.md) + - [V0AddOnAppResponseItemModel](docs/V0AddOnAppResponseItemModel.md) + - [V0AddonsListResponseModel](docs/V0AddonsListResponseModel.md) + - [V0AddonsShowResponseModel](docs/V0AddonsShowResponseModel.md) + - [V0AndroidKeystoreFileUploadParams](docs/V0AndroidKeystoreFileUploadParams.md) + - [V0AppAddOnResponseItemModel](docs/V0AppAddOnResponseItemModel.md) + - [V0AppAddOnsListResponseModel](docs/V0AppAddOnsListResponseModel.md) + - [V0AppConfigRequestParam](docs/V0AppConfigRequestParam.md) + - [V0AppDeleteRespModel](docs/V0AppDeleteRespModel.md) + - [V0AppFinishParams](docs/V0AppFinishParams.md) + - [V0AppFinishRespModel](docs/V0AppFinishRespModel.md) + - [V0AppListResponseModel](docs/V0AppListResponseModel.md) + - [V0AppNotificationSettingsParams](docs/V0AppNotificationSettingsParams.md) + - [V0AppNotificationSettingsUpdateResponse](docs/V0AppNotificationSettingsUpdateResponse.md) + - [V0AppRespModel](docs/V0AppRespModel.md) + - [V0AppResponseItemModel](docs/V0AppResponseItemModel.md) + - [V0AppSecret](docs/V0AppSecret.md) + - [V0AppSecretGetValueResponse](docs/V0AppSecretGetValueResponse.md) + - [V0AppSecretListResponse](docs/V0AppSecretListResponse.md) + - [V0AppSecretUpsertParams](docs/V0AppSecretUpsertParams.md) + - [V0AppShowResponseModel](docs/V0AppShowResponseModel.md) + - [V0AppUpdateParams](docs/V0AppUpdateParams.md) + - [V0AppUpdateRespModel](docs/V0AppUpdateRespModel.md) + - [V0AppUploadParams](docs/V0AppUploadParams.md) + - [V0AppWebhookCreateParams](docs/V0AppWebhookCreateParams.md) + - [V0AppWebhookCreatedResponseModel](docs/V0AppWebhookCreatedResponseModel.md) + - [V0AppWebhookDeletedResponseModel](docs/V0AppWebhookDeletedResponseModel.md) + - [V0AppWebhookListResponseModel](docs/V0AppWebhookListResponseModel.md) + - [V0AppWebhookResponseItemModel](docs/V0AppWebhookResponseItemModel.md) + - [V0AppWebhookResponseModel](docs/V0AppWebhookResponseModel.md) + - [V0AppWebhookUpdateParams](docs/V0AppWebhookUpdateParams.md) + - [V0AppleAPICredentialResponseItem](docs/V0AppleAPICredentialResponseItem.md) + - [V0AppleAPICredentialsListResponse](docs/V0AppleAPICredentialsListResponse.md) + - [V0ArchivedBuildArtifact](docs/V0ArchivedBuildArtifact.md) + - [V0ArchivedBuildListResponseModel](docs/V0ArchivedBuildListResponseModel.md) + - [V0ArchivedBuildResponseItemModel](docs/V0ArchivedBuildResponseItemModel.md) + - [V0ArtifactDeleteResponseModel](docs/V0ArtifactDeleteResponseModel.md) + - [V0ArtifactListElementResponseModel](docs/V0ArtifactListElementResponseModel.md) + - [V0ArtifactListResponseModel](docs/V0ArtifactListResponseModel.md) + - [V0ArtifactResponseItemModel](docs/V0ArtifactResponseItemModel.md) + - [V0ArtifactShowResponseModel](docs/V0ArtifactShowResponseModel.md) + - [V0ArtifactUpdateParams](docs/V0ArtifactUpdateParams.md) + - [V0BitriseYMLConfigGetResponse](docs/V0BitriseYMLConfigGetResponse.md) + - [V0BitriseYMLConfigUpdateParams](docs/V0BitriseYMLConfigUpdateParams.md) + - [V0BranchListResponseModel](docs/V0BranchListResponseModel.md) + - [V0BuildAbortParams](docs/V0BuildAbortParams.md) + - [V0BuildAbortResponseModel](docs/V0BuildAbortResponseModel.md) + - [V0BuildCertificateListResponseModel](docs/V0BuildCertificateListResponseModel.md) + - [V0BuildCertificateResponseItemModel](docs/V0BuildCertificateResponseItemModel.md) + - [V0BuildCertificateResponseModel](docs/V0BuildCertificateResponseModel.md) + - [V0BuildCertificateUpdateParams](docs/V0BuildCertificateUpdateParams.md) + - [V0BuildCertificateUploadParams](docs/V0BuildCertificateUploadParams.md) + - [V0BuildListAllResponseItemModel](docs/V0BuildListAllResponseItemModel.md) + - [V0BuildListAllResponseModel](docs/V0BuildListAllResponseModel.md) + - [V0BuildListResponseModel](docs/V0BuildListResponseModel.md) + - [V0BuildParamsEnvironment](docs/V0BuildParamsEnvironment.md) + - [V0BuildRequestListResponseModel](docs/V0BuildRequestListResponseModel.md) + - [V0BuildRequestResponseItemModel](docs/V0BuildRequestResponseItemModel.md) + - [V0BuildRequestUpdateParams](docs/V0BuildRequestUpdateParams.md) + - [V0BuildRequestUpdateResponseModel](docs/V0BuildRequestUpdateResponseModel.md) + - [V0BuildResponseItemModel](docs/V0BuildResponseItemModel.md) + - [V0BuildShowResponseModel](docs/V0BuildShowResponseModel.md) + - [V0BuildTriggerParams](docs/V0BuildTriggerParams.md) + - [V0BuildTriggerParamsBuildParams](docs/V0BuildTriggerParamsBuildParams.md) + - [V0BuildTriggerParamsHookInfo](docs/V0BuildTriggerParamsHookInfo.md) + - [V0BuildTriggerRespModel](docs/V0BuildTriggerRespModel.md) + - [V0BuildWorkflowListResponseModel](docs/V0BuildWorkflowListResponseModel.md) + - [V0CacheItemDownloadResponseModel](docs/V0CacheItemDownloadResponseModel.md) + - [V0CacheItemDownloadURLResponseModel](docs/V0CacheItemDownloadURLResponseModel.md) + - [V0CacheItemListResponseItemModel](docs/V0CacheItemListResponseItemModel.md) + - [V0CacheItemListResponseModel](docs/V0CacheItemListResponseModel.md) + - [V0CommitPaths](docs/V0CommitPaths.md) + - [V0OrganizationDataModel](docs/V0OrganizationDataModel.md) + - [V0OrganizationListRespModel](docs/V0OrganizationListRespModel.md) + - [V0OrganizationOwner](docs/V0OrganizationOwner.md) + - [V0OrganizationRespModel](docs/V0OrganizationRespModel.md) + - [V0OrganizationUpdateMachineTypeParams](docs/V0OrganizationUpdateMachineTypeParams.md) + - [V0OrganizationUpdateMachineTypeResponse](docs/V0OrganizationUpdateMachineTypeResponse.md) + - [V0OrganizationUpdateMachineTypeResponseErrorsInner](docs/V0OrganizationUpdateMachineTypeResponseErrorsInner.md) + - [V0OwnerAccountResponseModel](docs/V0OwnerAccountResponseModel.md) + - [V0OwnerAddOnResponseItemModel](docs/V0OwnerAddOnResponseItemModel.md) + - [V0OwnerAddOnsListResponseModel](docs/V0OwnerAddOnsListResponseModel.md) + - [V0PagingResponseModel](docs/V0PagingResponseModel.md) + - [V0PipelineAbortParams](docs/V0PipelineAbortParams.md) + - [V0PipelineListAllResponseItemModel](docs/V0PipelineListAllResponseItemModel.md) + - [V0PipelineListAllResponseModel](docs/V0PipelineListAllResponseModel.md) + - [V0PipelineListResponseItemModel](docs/V0PipelineListResponseItemModel.md) + - [V0PipelineListResponseModel](docs/V0PipelineListResponseModel.md) + - [V0PipelineRebuildParams](docs/V0PipelineRebuildParams.md) + - [V0PipelineShowAppResponseModel](docs/V0PipelineShowAppResponseModel.md) + - [V0PipelineShowAttemptResponseModel](docs/V0PipelineShowAttemptResponseModel.md) + - [V0PipelineShowEnvironmentsResponseModel](docs/V0PipelineShowEnvironmentsResponseModel.md) + - [V0PipelineShowResponseModel](docs/V0PipelineShowResponseModel.md) + - [V0PipelineShowStageResponseModel](docs/V0PipelineShowStageResponseModel.md) + - [V0PipelineShowTriggerParamsResponseModel](docs/V0PipelineShowTriggerParamsResponseModel.md) + - [V0PipelineShowWorkflowResponseModel](docs/V0PipelineShowWorkflowResponseModel.md) + - [V0PlanDataModel](docs/V0PlanDataModel.md) + - [V0ProjectFileStorageDocumentUpdateParams](docs/V0ProjectFileStorageDocumentUpdateParams.md) + - [V0ProjectFileStorageListResponseModel](docs/V0ProjectFileStorageListResponseModel.md) + - [V0ProjectFileStorageResponseItemModel](docs/V0ProjectFileStorageResponseItemModel.md) + - [V0ProjectFileStorageResponseModel](docs/V0ProjectFileStorageResponseModel.md) + - [V0ProjectFileStorageUploadParams](docs/V0ProjectFileStorageUploadParams.md) + - [V0ProvProfileDocumentUpdateParams](docs/V0ProvProfileDocumentUpdateParams.md) + - [V0ProvisionProfileListResponseModel](docs/V0ProvisionProfileListResponseModel.md) + - [V0ProvisionProfileResponseItemModel](docs/V0ProvisionProfileResponseItemModel.md) + - [V0ProvisionProfileResponseModel](docs/V0ProvisionProfileResponseModel.md) + - [V0ProvisionProfileUploadParams](docs/V0ProvisionProfileUploadParams.md) + - [V0ReleaseCreateAppStoreParams](docs/V0ReleaseCreateAppStoreParams.md) + - [V0ReleaseCreateAppStoreRespModel](docs/V0ReleaseCreateAppStoreRespModel.md) + - [V0ReleaseCreateGooglePlayParams](docs/V0ReleaseCreateGooglePlayParams.md) + - [V0ReleaseCreateGooglePlayRespModel](docs/V0ReleaseCreateGooglePlayRespModel.md) + - [V0SSHKeyRespModel](docs/V0SSHKeyRespModel.md) + - [V0SSHKeyUploadParams](docs/V0SSHKeyUploadParams.md) + - [V0TestDeviceListResponseModel](docs/V0TestDeviceListResponseModel.md) + - [V0TestDeviceResponseItemModel](docs/V0TestDeviceResponseItemModel.md) + - [V0UserPlanDataModel](docs/V0UserPlanDataModel.md) + - [V0UserPlanRespModel](docs/V0UserPlanRespModel.md) + - [V0UserProfileDataModel](docs/V0UserProfileDataModel.md) + - [V0UserProfileRespModel](docs/V0UserProfileRespModel.md) + - [V0WebhookDeliveryItemResponseModel](docs/V0WebhookDeliveryItemResponseModel.md) + - [V0WebhookDeliveryItemShowResponseModel](docs/V0WebhookDeliveryItemShowResponseModel.md) + - [V0WebhookRespModel](docs/V0WebhookRespModel.md) + - [WebsiteBitriseYMLLocation](docs/WebsiteBitriseYMLLocation.md) + + +## Documentation For Authorization + + +Authentication schemes defined for the API: +### AddonAuthToken + +- **Type**: API key +- **API key parameter name**: Bitrise-Addon-Auth-Token +- **Location**: HTTP header + +Note, each API key must be added to a map of `map[string]APIKey` where the key is: Bitrise-Addon-Auth-Token and passed in as the auth context for each request. + +Example + +```golang +auth := context.WithValue( + context.Background(), + openapi.ContextAPIKeys, + map[string]openapi.APIKey{ + "Bitrise-Addon-Auth-Token": {Key: "API_KEY_STRING"}, + }, + ) +r, err := client.Service.Operation(auth, args) +``` + +### PersonalAccessToken + +- **Type**: API key +- **API key parameter name**: Authorization +- **Location**: HTTP header + +Note, each API key must be added to a map of `map[string]APIKey` where the key is: Authorization and passed in as the auth context for each request. + +Example + +```golang +auth := context.WithValue( + context.Background(), + openapi.ContextAPIKeys, + map[string]openapi.APIKey{ + "Authorization": {Key: "API_KEY_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 + +letsconnect@bitrise.io + diff --git a/go2/api/openapi.yaml b/go2/api/openapi.yaml new file mode 100644 index 0000000..14a7dd7 --- /dev/null +++ b/go2/api/openapi.yaml @@ -0,0 +1,10025 @@ +openapi: 3.0.1 +info: + contact: + email: letsconnect@bitrise.io + name: Bitrise Support + url: https://www.bitrise.io/contact + description: Official REST API for Bitrise.io + license: + name: MIT + title: Bitrise API + version: "0.1" +servers: +- url: https://api.bitrise.io/v0.1 +paths: + /addons: + get: + description: List all the available Bitrise addons + operationId: addons-list + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AddonsListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + summary: Get list of available Bitrise addons + tags: + - addons + /addons/{addon-id}: + get: + description: Show details of a specific Bitrise addon + operationId: addons-show + parameters: + - description: Addon ID + in: path + name: addon-id + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AddonsShowResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + summary: Get a specific Bitrise addon + tags: + - addons + /apps: + get: + description: "List all the apps available for the authenticated account, including\ + \ those that are owned by other users or Organizations." + operationId: app-list + parameters: + - description: "Order of the applications: sort them based on when they were\ + \ created or the time of their last build" + in: query + name: sort_by + schema: + enum: + - last_build_at + - created_at + type: string + - description: Slug of the first app in the response + in: query + name: next + schema: + type: string + - description: "Max number of elements per page (default: 50)" + in: query + name: limit + schema: + maximum: 50 + type: integer + - description: The title of the app + in: query + name: title + schema: + type: string + - description: "The project type of the app (eg. 'ios', 'android')" + in: query + name: project_type + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get list of the apps + tags: + - application + /apps/register: + post: + description: "Add a new app to Bitrise. This is the first step of the app registration\ + \ process. To successfully set it up, you need to provide the required app\ + \ parameters: the repository URL and the isPublic field. Read more about the\ + \ app creation process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app)." + operationId: app-create + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppUploadParams' + description: App parameters + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppRespModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.ProxyErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.ProxyErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.ProxyErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.ProxyErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Add a new app + tags: + - app-setup + x-codegen-request-body-name: app + /apps/{app-slug}: + delete: + description: "Deletes an app by slug. Use with care, make sure you really want\ + \ to delete the app. This action cannot be undone." + operationId: app-delete + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppDeleteRespModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Deletes an app + tags: + - application + get: + description: "Get the details of a specific app by providing the app slug. You\ + \ can get the app slug by calling the [/apps](https://api-docs.bitrise.io/#/application/app-list)\ + \ endpoint or by opening the app on bitrise.io and copying the slug from the\ + \ URL." + operationId: app-show + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppShowResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get a specific app + tags: + - application + patch: + description: Updates an app by slug. Only updates the fields specified in the + body. + operationId: app-update + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppUpdateParams' + description: "App update params. All fields are optional, omit the fields\ + \ you don't wish to update." + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppUpdateRespModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Updates an app + tags: + - application + x-codegen-request-body-name: app + /apps/{app-slug}/addons: + get: + description: List all the provisioned addons for the authorized apps + operationId: addon-list-by-app + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppAddOnsListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get list of the addons for apps + tags: + - addons + /apps/{app-slug}/android-keystore-files: + get: + description: List all the android keystore files that have been uploaded to + a specific app. + operationId: android-keystore-file-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Slug of the first android keystore file in the response + in: query + name: next + schema: + type: string + - description: Max number of build certificates per page is 50. + in: query + name: limit + schema: + maximum: 50 + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProjectFileStorageListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get a list of the android keystore files + tags: + - android-keystore-file + post: + description: Add a new Android keystore file to an app + operationId: android-keystore-file-create + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AndroidKeystoreFileUploadParams' + description: Android keystore file parameters + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProjectFileStorageResponseModel' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Create an Android keystore file + tags: + - android-keystore-file + x-codegen-request-body-name: android-keystore-file + /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}: + delete: + description: "Delete an app's android keystore file. You can fetch an app's\ + \ android keystore file slug if you first list all the uploaded files with\ + \ the [GET /apps/{app-slug}/android-keystore-files](https://api-docs.bitrise.io/#/android-keystore-file/android-keystore-file-list)\ + \ endpoint. Read more in our [Deleting a file](https://devcenter.bitrise.io/api/managing-android-keystore-files.html)\ + \ guide." + operationId: android-keystore-file-delete + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Android keystore file slug + in: path + name: android-keystore-file-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProjectFileStorageResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Delete an android keystore file + tags: + - android-keystore-file + post: + description: "This is the last step of uploading an android keystore file to\ + \ Bitrise. Confirm the android keystore file upload and view the file on the\ + \ Code Signing tab of a specific app. Read more in our [Confirming the upload](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#confirming-the-file-upload)\ + \ guide." + operationId: android-keystore-file-confirm + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Android keystore file slug + in: path + name: android-keystore-file-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProjectFileStorageResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Confirm an android keystore file upload + tags: + - android-keystore-file + /apps/{app-slug}/archived-builds: + get: + description: 'List the first 1000 archived builds of a specified Bitrise app. + Set parameters to filter builds:' + operationId: archived-builds-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Listed builds should only be the ones which ran after the given + date (Unix Timestamp) + in: query + name: after + required: true + schema: + type: integer + - description: Listed builds should only be the ones which ran before the given + date (Unix Timestamp) + in: query + name: before + required: true + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ArchivedBuildListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: List 1000 archived builds of an app + tags: + - builds + /apps/{app-slug}/bitrise.yml: + get: + description: "Get the full `bitrise.yml` configuration of an application, by\ + \ providing the app slug. It returns the current `bitrise.yml` that is stored\ + \ on bitrise.io in full, including the trigger map, the different workflows\ + \ and the Steps." + operationId: app-config-datastore-show + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + responses: + "200": + content: + text/plain: + schema: + type: string + description: "{the bitrise.yml in yml format}" + "400": + content: + text/plain: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + text/plain: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + text/plain: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + text/plain: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get bitrise.yml of a specific app + tags: + - application + post: + description: Upload a new bitrise.yml for your application. + operationId: app-config-create + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppConfigRequestParam' + description: App config parameters + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppConfigRespModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.ProxyErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Upload a new bitrise.yml for your application. + tags: + - app-setup + x-codegen-request-body-name: app-config + /apps/{app-slug}/bitrise.yml/config: + get: + description: Getting the location of the application's bitrise.yaml. Requires + administrator level privileges to the app. + operationId: app-setup-bitrise-yml-config-get + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BitriseYMLConfigGetResponse' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Getting the location of the application's bitrise.yaml + tags: + - app-setup + put: + description: Changing the location of the application's bitrise.yaml. Requires + administrator level privileges to the app. + operationId: app-setup-bitrise-yml-config-update + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BitriseYMLConfigUpdateParams' + description: Bitrise YML Config Update Params + required: true + responses: + "204": + content: {} + description: No Content + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Changing the location of the application's bitrise.yaml + tags: + - app-setup + x-codegen-request-body-name: app + /apps/{app-slug}/branches: + get: + description: Lists only those branches of a specified Bitrise app that have + existing builds. + operationId: branch-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BranchListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: List the branches with existing builds of an app's repository + tags: + - application + /apps/{app-slug}/build-certificates: + get: + description: "List all the build certificates that have been uploaded to a specific\ + \ app. Read more in our [Listing the uploaded iOS code signing files of an\ + \ app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app)\ + \ guide." + operationId: build-certificate-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Slug of the first build certificate in the response + in: query + name: next + schema: + type: string + - description: Max number of build certificates per page is 50. + in: query + name: limit + schema: + maximum: 50 + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildCertificateListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get a list of the build certificates + tags: + - build-certificate + post: + description: "Create a temporary pre-signed upload URL for the build certificate\ + \ and upload the file to AWS with a simple `curl` request. To complete the\ + \ uploading process and view your files on the Code Signing tab of your app,\ + \ continue with the [POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded](https://api-docs.bitrise.io/#/build-certificate/build-certificate-confirm)\ + \ endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file)\ + \ guide." + operationId: build-certificate-create + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildCertificateUploadParams' + description: Build certificate parameters such as file name and its file size + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildCertificateResponseModel' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Create a build certificate + tags: + - build-certificate + x-codegen-request-body-name: build-certificate + /apps/{app-slug}/build-certificates/{build-certificate-slug}: + delete: + description: "Delete an app's build certificate. You can fetch the build certificate\ + \ slug for this endpoint if you first call the [GET /apps/{app-slug}/build-certificates](https://api-docs.bitrise.io/#/build-certificate/build-certificate-list)\ + \ endpoint to list all available build certificates of an app. Read more in\ + \ our [Deleting an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#deleting-an-ios-code-signing-file)\ + \ guide." + operationId: build-certificate-delete + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build certificate slug + in: path + name: build-certificate-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildCertificateResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Delete a build certificate + tags: + - build-certificate + get: + description: "Retrieve data of a specific build certificate. You can fetch the\ + \ build certificate slug for this endpoint if you first call the [GET /apps/{app-slug}/build-certificates](https://api-docs.bitrise.io/#/build-certificate/build-certificate-list)\ + \ endpoint to list all available build certificates of an app. Read more in\ + \ our [Getting a specific iOS code signing file's data](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#getting-a-specific-ios-code-signing-files-data)\ + \ guide." + operationId: build-certificate-show + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build certificate slug + in: path + name: build-certificate-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildCertificateResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get a specific build certificate + tags: + - build-certificate + patch: + description: "Update an uploaded build certificate's attributes. You can fetch\ + \ the build certificate slug for this endpoint if you first call the [GET\ + \ /apps/{app-slug}/build-certificates](https://api-docs.bitrise.io/#/build-certificate/build-certificate-list)\ + \ endpoint. Read more in our [Updating an uploaded iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload)\ + \ guide." + operationId: build-certificate-update + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build certificate slug + in: path + name: build-certificate-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildCertificateUpdateParams' + description: Build certificate parameters + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildCertificateResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Update a build certificate + tags: + - build-certificate + x-codegen-request-body-name: build-certificate + /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded: + post: + description: "This is the last step of uploading a build certificate to Bitrise.\ + \ Confirm the build certificate upload and view the file on the Code Signing\ + \ tab of a specific app. Read more in our [Confirming the iOS code signing\ + \ file upload](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload)\ + \ guide." + operationId: build-certificate-confirm + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build certificate slug + in: path + name: build-certificate-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildCertificateResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Confirm a build certificate upload + tags: + - build-certificate + /apps/{app-slug}/build-requests: + get: + description: List the existing open build requests of a specified Bitrise app + operationId: build-request-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildRequestListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: List the open build requests for an app + tags: + - build-request + /apps/{app-slug}/build-requests/{build-request-slug}: + patch: + description: Update a specific build request of a specific app + operationId: build-request-update + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build request slug + in: path + name: build-request-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildRequestUpdateParams' + description: Build request parameters + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildRequestUpdateResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Update a build request + tags: + - build-request + x-codegen-request-body-name: build-request + /apps/{app-slug}/build-workflows: + get: + description: "List the workflows that were triggered at any time for a given\ + \ Bitrise app. Note that it might list workflows that are currently not defined\ + \ in the app's `bitrise.yml` configuration - and conversely, workflows that\ + \ were never triggered will not be listed even if they are defined in the\ + \ `bitrise.yml` file." + operationId: build-workflow-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildWorkflowListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: List the workflows of an app + tags: + - builds + /apps/{app-slug}/builds: + get: + description: "List all the builds of a specified Bitrise app. Set parameters\ + \ to filter builds: for example, you can search for builds run with a given\ + \ workflow or all builds that were triggered by Pull Requests. It returns\ + \ all the relevant data of the build." + operationId: build-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: "Order of builds: sort them based on when they were created or\ + \ the time when they were triggered" + in: query + name: sort_by + schema: + enum: + - running_first + - created_at + type: string + - description: The branch which was built + in: query + name: branch + schema: + type: string + - description: The name of the workflow used for the build + in: query + name: workflow + schema: + type: string + - description: The commit message of the build + in: query + name: commit_message + schema: + type: string + - description: "The event that triggered the build (push, pull-request, tag)" + in: query + name: trigger_event_type + schema: + type: string + - description: The id of the pull request that triggered the build + in: query + name: pull_request_id + schema: + type: integer + - description: The build number + in: query + name: build_number + schema: + type: integer + - description: List builds run after a given date (Unix Timestamp) + in: query + name: after + schema: + type: integer + - description: List builds run before a given date (Unix Timestamp) + in: query + name: before + schema: + type: integer + - description: "The status of the build: not finished (0), successful (1), failed\ + \ (2), aborted with failure (3), aborted with success (4)" + in: query + name: status + schema: + maximum: 4 + type: integer + - description: Whether the builds are part of a pipeline or not + in: query + name: is_pipeline_build + schema: + type: boolean + - description: Slug of the first build in the response + in: query + name: next + schema: + type: string + - description: "Max number of elements per page (default: 50)" + in: query + name: limit + schema: + maximum: 50 + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: List all builds of an app + tags: + - builds + post: + description: "Trigger a new build/pipeline. Specify an app slug and at least\ + \ one parameter out of three: a git tag or git commit hash, a branch, or a\ + \ workflow/pipeline ID. You can also set specific parameters for Pull Request\ + \ builds/pipelines and define additional environment variables for your build/pipeline.\ + \ [Check out our detailed guide](https://devcenter.bitrise.io/api/build-trigger/)." + operationId: build-trigger + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildTriggerParams' + description: Build trigger parameters + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildTriggerRespModel' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Trigger a new build/pipeline + tags: + - builds + x-codegen-request-body-name: build_params + /apps/{app-slug}/builds/{build-slug}: + get: + description: "Get the specified build of a given Bitrise app. You need to provide\ + \ both an app slug and a build slug. You can get the build slug either by\ + \ calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint\ + \ or by clicking on the build on bitrise.io and copying the slug from the\ + \ URL. The endpoint returns all the relevant data of the build." + operationId: build-show + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build slug + in: path + name: build-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildShowResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get a build of a given app + tags: + - builds + /apps/{app-slug}/builds/{build-slug}/abort: + post: + description: Abort a specific build. Set an abort reason with the `abort_reason` + parameter. Use the `abort_with_success` parameter to abort a build but still + count it as a successful one. + operationId: build-abort + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build slug + in: path + name: build-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildAbortParams' + description: Build abort parameters + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildAbortResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "429": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Too Many Requests + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Abort a specific build + tags: + - builds + x-codegen-request-body-name: build-abort-params + /apps/{app-slug}/builds/{build-slug}/artifacts: + get: + description: "List all build artifacts that have been generated for an app's\ + \ build. This endpoint can retrieve artifacts from the archive as well. You\ + \ can use the created build artifact slugs from the response output to retrieve\ + \ data of a specific build artifact with the [GET/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-show)\ + \ endpoint or update a build artifact with the [PATCH/apps](https://api-docs.bitrise.io/#/build-artifact/artifact-update)\ + \ endpoint." + operationId: artifact-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build slug + in: path + name: build-slug + required: true + schema: + type: string + - description: Slug of the first build artifact in the response + in: query + name: next + schema: + type: string + - description: Max number of build artifacts per page is 50. + in: query + name: limit + schema: + maximum: 50 + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ArtifactListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get a list of all build artifacts + tags: + - build-artifact + /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}: + delete: + description: "Delete a build artifact of an app's build. The required parameters\ + \ are app slug, build slug and artifact slug. You can fetch the build artifact\ + \ slug if you first list all build artifacts of an app with the [/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-list)\ + \ endpoint." + operationId: artifact-delete + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build slug + in: path + name: build-slug + required: true + schema: + type: string + - description: Artifact slug + in: path + name: artifact-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ArtifactDeleteResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Delete a build artifact + tags: + - build-artifact + get: + description: "Retrieve data of a specific build artifact. The endpoint can retrieve\ + \ archived artifacts as well. The response output contains a time-limited\ + \ download url (expires in 10 minutes) and a public install-page URL. You\ + \ can view the build artifact with both URLs, but the public install-page\ + \ url will not work unless you [enable it](https://devcenter.bitrise.io/tutorials/deploy/bitrise-app-deployment/#enabling-public-page-for-the-app)." + operationId: artifact-show + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build slug + in: path + name: build-slug + required: true + schema: + type: string + - description: Artifact slug + in: path + name: artifact-slug + required: true + schema: + type: string + - description: Setting this will result in a redirect to the artifact download + location + in: query + name: download + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ArtifactShowResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get a specific build artifact + tags: + - build-artifact + patch: + description: "Update the `is_public_page_enabled` attribute of your app's build.\ + \ The required parameters are app slug, build slug and artifact slug. You\ + \ can fetch the build artifact slug if you first list all build artifacts\ + \ of an app with the [GET /apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-list)\ + \ endpoint." + operationId: artifact-update + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build slug + in: path + name: build-slug + required: true + schema: + type: string + - description: Artifact slug + in: path + name: artifact-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ArtifactUpdateParams' + description: Artifact parameters + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ArtifactShowResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Update a build artifact + tags: + - build-artifact + x-codegen-request-body-name: artifact-params + /apps/{app-slug}/builds/{build-slug}/bitrise.yml: + get: + description: "Get the bitrise.yml file of one of the builds of a given app.\ + \ This will return the `bitrise.yml` configuration with which the build ran.\ + \ You can compare it to [the current bitrise.yml configuration](https://api-docs.bitrise.io/#/application/app-config-datastore-show)\ + \ of the app." + operationId: build-bitrise-yml-show + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build slug + in: path + name: build-slug + required: true + schema: + type: string + responses: + "200": + content: + text/plain: + schema: + type: string + description: "{the bitrise.yml in yml format}" + "400": + content: + text/plain: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + text/plain: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + text/plain: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + text/plain: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get the bitrise.yml of a build + tags: + - builds + /apps/{app-slug}/builds/{build-slug}/log: + get: + description: "Get the build log of a specified build of a Bitrise app. You can\ + \ get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list)\ + \ endpoint or by clicking on the build on bitrise.io and copying the slug\ + \ from the URL. Preview of the log is returned in `log_chunks` field in JSON\ + \ format. You can download the full raw log in txt by using the signed url\ + \ returned in `expiring_raw_log_url`. Be aware that this url is expiring in\ + \ 10 minutes!" + operationId: build-log + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Build slug + in: path + name: build-slug + required: true + schema: + type: string + responses: + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get the build log of a build + tags: + - builds + /apps/{app-slug}/cache-items: + delete: + description: Deletes all key-value cache items created by the builds of an app. + Deleted cache items are no longer accessible and cannot be restored. + operationId: cache-item-delete-all + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + responses: + "200": + content: {} + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Deletes all key-value cache items belonging to an app + tags: + - key-value-cache + get: + description: List all the available cache items that the builds of the app created + via the save-cache step. + operationId: cache-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: "Getting cache items created before the given parameter (RFC3339\ + \ time format, default: now)" + in: query + name: next + schema: + type: string + - description: "Max number of elements per page (default: 100)" + in: query + name: limit + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.CacheItemListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: List the key-value cache items belonging to an app + tags: + - key-value-cache + /apps/{app-slug}/cache-items/{cache-item-id}: + delete: + description: Deletes a key-value cache item. Deleted cache items are no longer + accessible and cannot be restored. + operationId: cache-item-delete + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: The ID of the cache item to be deleted + in: path + name: cache-item-id + required: true + schema: + type: string + responses: + "200": + content: {} + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Deletes a key-value cache item + tags: + - key-value-cache + /apps/{app-slug}/cache-items/{cache-item-id}/download: + get: + description: Gets a download URL of a cache item. + operationId: cache-item-download + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: The ID of the cache item to be downloaded + in: path + name: cache-item-id + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.CacheItemDownloadResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Gets the download URL of a key-value cache item + tags: + - key-value-cache + /apps/{app-slug}/finish: + post: + description: "Save the application after registering it on Bitrise and registering\ + \ an SSH key (and, optionally, adding a webhook). With this endpoint you can\ + \ define the initial configuration, define application-level environment variables,\ + \ determine the project type, and set an Organization to be the owner of the\ + \ app. Read more about the app registration process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app)." + operationId: app-finish + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppFinishParams' + description: App finish parameters + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppFinishRespModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Save the application at the end of the app registration process + tags: + - app-setup + x-codegen-request-body-name: app + /apps/{app-slug}/generic-project-files: + get: + description: "List all the generic project files that have been uploaded to\ + \ a specific app. Read more in our [Listing the uploaded files of an app](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#listing-the-uploaded-files-of-an-app)\ + \ guide." + operationId: generic-project-file-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Slug of the first generic project file in the response + in: query + name: next + schema: + type: string + - description: Max number of build certificates per page is 50. + in: query + name: limit + schema: + maximum: 50 + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProjectFileStorageListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get a list of the generic project files + tags: + - generic-project-file + post: + description: "Create a temporary pre-signed upload URL (expires in 10 minutes)\ + \ for the generic project file and upload it to AWS with a simple `curl` request.\ + \ To complete the uploading process and view your files on the Code Signing\ + \ tab of your app, continue with the [POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-confirm)\ + \ endpoint. Read more in our [Creating and uploading files to Generic File\ + \ Storage](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#creating-and-uploading-files-to-generic-file-storage)\ + \ guide." + operationId: generic-project-files-create + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProjectFileStorageUploadParams' + description: Generic project file parameters + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProjectFileStorageResponseModel' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Create a generic project file + tags: + - generic-project-file + x-codegen-request-body-name: generic-project-file + /apps/{app-slug}/generic-project-files/{generic-project-file-slug}: + delete: + description: "Delete an app's generic project file. You can fetch an app's generic\ + \ project file slug if you first list all the uploaded files with the [GET\ + \ /apps/{app-slug}/generic-project-files](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-list)\ + \ endpoint. Read more in our [Deleting a file](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#deleting-a-file)\ + \ guide." + operationId: generic-project-file-delete + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Generic project file slug + in: path + name: generic-project-file-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProjectFileStorageResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Delete a generic project file + tags: + - generic-project-file + get: + description: "Retrieve data of a specific generic project file to check its\ + \ attributes and optionally modify them with the [PATCH /apps/](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-update)\ + \ endpoint. Read more in our [Retrieving a specific file's data](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#retrieving-a-specific-files-data)\ + \ guide." + operationId: generic-project-file-show + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Generic project file slug + in: path + name: generic-project-file-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProjectFileStorageResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get a specific generic project file + tags: + - generic-project-file + patch: + description: "Update a generic project file's attributes. You can fetch an app's\ + \ generic project file slug if you first list all the uploaded files with\ + \ the [GET /apps/{app-slug}/generic-project-files](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-list)\ + \ endpoint. Read more in our [Updating an uploaded file](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#updating-an-uploaded-file)\ + \ guide." + operationId: generic-project-file-update + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Generic project file slug + in: path + name: generic-project-file-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProjectFileStorageDocumentUpdateParams' + description: Generic project file parameters + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProjectFileStorageResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Update a generic project file + tags: + - generic-project-file + x-codegen-request-body-name: generic-project-file + /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded: + post: + description: "This is the last step of uploading a generic project file to Bitrise.\ + \ Confirm the generic project file upload and view the file on the Code Signing\ + \ tab of a specific app. Read more in our [Confirming the upload](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#confirming-the-file-upload)\ + \ guide." + operationId: generic-project-file-confirm + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Generic project file slug + in: path + name: generic-project-file-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProjectFileStorageResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Confirm a generic project file upload + tags: + - generic-project-file + /apps/{app-slug}/local-builds: + get: + description: List all the local builds belonging to the specified Bitrise app. + Set parameters to filter builds + operationId: local-build-list + parameters: + - description: List local builds run after a given date (RFC3339 time format) + in: query + name: after + schema: + type: string + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: List local builds run before a given date (RFC3339 time format) + - was called 'next' earlier + in: query + name: before + schema: + type: string + - description: "Max number of elements per page (default: 10)" + in: query + name: limit + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.PipelineListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: List local builds of an app + tags: + - local-builds + /apps/{app-slug}/outgoing-webhooks: + get: + description: "List all the outgoing webhooks registered for a specified Bitrise\ + \ app. This returns all the relevant data of the webhook, including the slug\ + \ of the webhook and its URL." + operationId: outgoing-webhook-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Slug of the first webhook in the response + in: query + name: next + schema: + type: string + - description: "Max number of elements per page (default: 50)" + in: query + name: limit + schema: + maximum: 50 + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppWebhookListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: List the outgoing webhooks of an app + tags: + - outgoing-webhook + post: + description: "Create an outgoing webhook for a specified Bitrise app: this can\ + \ be used to send build events to a specified URL with custom headers. Currently,\ + \ only build events can trigger outgoing webhooks." + operationId: outgoing-webhook-create + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v0.AppWebhookCreateParams' + description: App webhook creation params + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppWebhookCreatedResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Create an outgoing webhook for an app + tags: + - outgoing-webhook + x-codegen-request-body-name: app-webhook-create-params + /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}: + delete: + description: Delete an existing outgoing webhook for a specified Bitrise app. + operationId: outgoing-webhook-delete + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: App webhook slug + in: path + name: app-webhook-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppWebhookDeletedResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Delete an outgoing webhook of an app + tags: + - outgoing-webhook + put: + description: "Update an existing outgoing webhook (URL, events, secrets and\ + \ headers) for a specified Bitrise app. Even if you do not want to change\ + \ one of the parameters, you still have to provide that parameter as well:\ + \ simply use its existing value." + operationId: outgoing-webhook-update + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: App webhook slug + in: path + name: app-webhook-slug + required: true + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v0.AppWebhookUpdateParams' + description: App webhook update params + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppWebhookResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Update an outgoing webhook of an app + tags: + - outgoing-webhook + x-codegen-request-body-name: app-webhook-update-params + /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items: + get: + description: List all the delivery items of an outgoing webhook of a Bitrise + application + operationId: webhook-delivery-item-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: App webhook slug + in: path + name: app-webhook-slug + required: true + schema: + type: string + - description: Slug of the first delivery item in the response + in: query + name: next + schema: + type: string + - description: "Max number of elements per page (default: 50)" + in: query + name: limit + schema: + maximum: 50 + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.WebhookDeliveryItemShowResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: List the webhook delivery items of an app + tags: + - webhook-delivery-item + /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}: + get: + description: Get the specified delivery item of an outgoing webhook of a Bitrise + application + operationId: webhook-delivery-item-show + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: App webhook slug + in: path + name: app-webhook-slug + required: true + schema: + type: string + - description: Webhook delivery item slug + in: path + name: webhook-delivery-item-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.WebhookDeliveryItemResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get a specific delivery item of a webhook + tags: + - webhook-delivery-item + /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}/redeliver: + post: + description: Re-deliver the delivery item of a specified webhook of a Bitrise + application + operationId: webhook-delivery-item-redeliver + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: App webhook slug + in: path + name: app-webhook-slug + required: true + schema: + type: string + - description: Webhook delivery item slug + in: path + name: webhook-delivery-item-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Re-deliver the webhook delivery items of an app + tags: + - webhook-delivery-item + /apps/{app-slug}/pipelines: + get: + description: "List all the pipelines and standalone builds of a specified Bitrise\ + \ app. Set parameters to filter pipelines: for example, you can search for\ + \ pipelines/standalone builds run with a given workflow name or all pipelines/standalone\ + \ builds that were triggered by Pull Requests. It returns all the relevant\ + \ data of the pipelines/standalone builds." + operationId: pipeline-list + parameters: + - description: List pipelines/standalone builds run after a given date (RFC3339 + time format) + in: query + name: after + schema: + type: string + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: List pipelines/standalone builds run before a given date (RFC3339 + time format) - was called 'next' earlier + in: query + name: before + schema: + type: string + - description: The branch which was built + in: query + name: branch + schema: + type: string + - description: The pipeline/standalone build number + in: query + name: build_number + schema: + type: integer + - description: "The build environment of the listed builds (ci, local, all)\ + \ - default: ci" + in: query + name: build_environment + schema: + type: string + - description: The commit message of the pipeline/standalone build + in: query + name: commit_message + schema: + type: string + - description: "Max number of elements per page - default: 10" + in: query + name: limit + schema: + type: integer + - description: List pipelines/standalone builds run before a given date (RFC3339 + time format) - deprecated + in: query + name: next + schema: + type: string + - description: Name of the pipeline + in: query + name: pipeline + schema: + type: string + - description: "The status of the pipeline/standalone build: initializing, on_hold,\ + \ running, succeeded, failed, aborted, succeeded_with_abort" + in: query + name: status + schema: + type: string + - description: "The event that triggered the pipeline/standalone build (push,\ + \ pull-request, tag)" + in: query + name: trigger_event_type + schema: + type: string + - description: The name of the workflow used for the pipeline/standalone build + in: query + name: workflow + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.PipelineListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: List all pipelines and standalone builds of an app + tags: + - pipelines + /apps/{app-slug}/pipelines/{pipeline-id}: + get: + description: "Get the specified pipeline of a given Bitrise app. You need to\ + \ provide both an app slug and a pipeline id. You can get the pipeline id\ + \ either by calling the [/pipelines](https://api-docs.bitrise.io/#/pipelines/pipeline-list)\ + \ endpoint or by clicking on the pipeline on bitrise.io and copying the id\ + \ from the URL. The endpoint returns all the relevant data of the pipeline." + operationId: pipeline-show + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Pipeline id + in: path + name: pipeline-id + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.PipelineShowResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get a pipeline of a given app + tags: + - pipelines + /apps/{app-slug}/pipelines/{pipeline-id}/abort: + post: + description: "Aborts a pipeline. You need to provide the app slug and the id\ + \ of the pipeline. You can add an abort reason, choose to skip notifications\ + \ and make the abort with success state." + operationId: pipeline-abort + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Pipeline id + in: path + name: pipeline-id + required: true + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v0.PipelineAbortParams' + description: Pipeline abort parameters + required: true + responses: + "200": + content: {} + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Aborts a pipeline + tags: + - pipelines + x-codegen-request-body-name: pipeline-abort-params + /apps/{app-slug}/pipelines/{pipeline-id}/rebuild: + post: + description: Rebuilds a pipeline. You can rebuild the whole pipeline or only + the unsuccessful and subsequent workflows by setting the partial flag to true. + operationId: pipeline-rebuild + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Pipeline id + in: path + name: pipeline-id + required: true + schema: + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/v0.PipelineRebuildParams' + description: Pipeline rebuild parameters + required: true + responses: + "201": + content: {} + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "412": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Precondition Failed + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Rebuilds a pipeline + tags: + - pipelines + x-codegen-request-body-name: pipeline-rebuild-params + /apps/{app-slug}/provisioning-profiles: + get: + description: "List all the provisioning profiles that have been uploaded to\ + \ a specific app. Read more in our [Listing the uploaded iOS code signing\ + \ files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app)\ + \ guide." + operationId: provisioning-profile-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Slug of the first provisioning profile in the response + in: query + name: next + schema: + type: string + - description: "Max number of elements per page (default: 50)" + in: query + name: limit + schema: + maximum: 50 + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProvisionProfileListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: Get a list of the provisioning profiles + tags: + - provisioning-profile + post: + description: "Create a temporary pre-signed upload URL (expires in 10 minutes)\ + \ for the provisioning profile and upload it to AWS with a simple `curl` request.\ + \ To complete the upload process, continue with the [POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-confirm)\ + \ endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file)\ + \ guide." + operationId: provisioning-profile-create + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProvisionProfileUploadParams' + description: Provisioning profile parameters such as file name and file size + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProvisionProfileResponseModel' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Create a provisioning profile + tags: + - provisioning-profile + x-codegen-request-body-name: provisioning-profile + /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}: + delete: + description: "Delete an app's provisioning profile. You can fetch the provisioning\ + \ profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list)\ + \ endpoint. Read more in our [Deleting an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#deleting-an-ios-code-signing-file)\ + \ guide." + operationId: provisioning-profile-delete + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Provisioning profile slug + in: path + name: provisioning-profile-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProvisionProfileResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Delete a provisioning profile + tags: + - provisioning-profile + get: + description: "Retrieve data of a specific provisioning profile. You can fetch\ + \ the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list)\ + \ endpoint. Read more in our [Getting a specific iOS code signing file's data](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#getting-a-specific-ios-code-signing-files-data)\ + \ guide." + operationId: provisioning-profile-show + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Provisioning profile slug + in: path + name: provisioning-profile-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProvisionProfileResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get a specific provisioning profile + tags: + - provisioning-profile + patch: + description: "Update an uploaded provisioning profile's attributes. You can\ + \ fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list)\ + \ endpoint. Read more in our [Updating an uploaded iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload)\ + \ guide." + operationId: provisioning-profile-update + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Provisioning profile slug + in: path + name: provisioning-profile-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProvProfileDocumentUpdateParams' + description: Provisioning profile parameters + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProvisionProfileResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Update a provisioning profile + tags: + - provisioning-profile + x-codegen-request-body-name: provisioning-profile + /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded: + post: + description: "This is the last step of the upload process. Confirm the provisioning\ + \ profile upload and view the file on the Code Signing tab of a specific app.\ + \ Read more in our [Confirming the iOS code signing file upload](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload)\ + \ guide." + operationId: provisioning-profile-confirm + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Provisioning profile slug + in: path + name: provisioning-profile-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ProvisionProfileResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Confirm a provisioning profile upload + tags: + - provisioning-profile + /apps/{app-slug}/register-ssh-key: + post: + description: "Add an SSH-key to a specific app. After creating an app, you need\ + \ to register the SSH key so that Bitrise will be able to access and clone\ + \ your repository during the build process. This requires the app slug of\ + \ your newly created app." + operationId: ssh-key-create + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.SSHKeyUploadParams' + description: SSH key parameters + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.SSHKeyRespModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Add an SSH-key to a specific app + tags: + - app-setup + x-codegen-request-body-name: ssh-key + /apps/{app-slug}/register-webhook: + post: + description: "[Register an incoming webhook](https://devcenter.bitrise.io/api/incoming-and-outgoing-webhooks/#incoming-webhooks)\ + \ for a specific application. You can do this during the app registration\ + \ process or at any other time in an app's life. When calling this endpoint,\ + \ a webhook is registered at your git provider: this is necessary to automatically\ + \ trigger builds on Bitrise." + operationId: app-webhook-create + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.WebhookRespModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Register an incoming webhook for a specific application + tags: + - app-setup + /apps/{app-slug}/releases/app-store: + post: + description: "Create a new iOS release for the specified app. If the release\ + \ candidate parameters (`release_branch` and `workflow`) are specified then\ + \ the latest successful build is automatically picked up as release candidate\ + \ and if `automatic_testflight_upload` is also turned on, then an upload to\ + \ TestFlight is started immediately. You can use this endpoint to set up a\ + \ fully automated release flow." + operationId: release-create-app-store + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ReleaseCreateAppStoreParams' + description: App Store release parameters + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ReleaseCreateAppStoreRespModel' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Forbidden + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unprocessable Entity + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Create a new Apple App Store release for the app. + tags: + - releases + x-codegen-request-body-name: app + /apps/{app-slug}/releases/google-play: + post: + description: "Create a new android release for the specified app. If the release\ + \ candidate parameters (`release_branch` and `workflow`) are specified then\ + \ the latest successful build is automatically picked up as release candidate\ + \ and if `automatic_play_console_upload` is also turned on, then an upload\ + \ to Google Play Console is started immediately. You can use this endpoint\ + \ to set up a fully automated release flow." + operationId: release-create-google-play + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ReleaseCreateGooglePlayParams' + description: Google Play release parameters + required: true + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ReleaseCreateGooglePlayRespModel' + description: Created + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Forbidden + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unprocessable Entity + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Create a new Google Play Store release for the app. + tags: + - releases + x-codegen-request-body-name: app + /apps/{app-slug}/roles/{role-name}: + get: + operationId: app-roles-query + parameters: + - description: Slug of the app + in: path + name: app-slug + required: true + schema: + type: string + - description: "Name of the role being queried, supported values are: admin,\ + \ manager (equals developer), and member (equals tester/qa)" + in: path + name: role-name + required: true + schema: + enum: + - admin + - manager + - member + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/app_roles_query_200_response' + description: List of group slugs + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.ProxyErrorRespModel' + description: Not Found + security: + - PersonalAccessToken: [] + summary: Lists group roles for an app + tags: + - application + put: + description: Replaces the groups for a given role on an app. Only the given + groups will be present for a role on the app after this call. + operationId: app-roles-update + parameters: + - description: Slug of the app + in: path + name: app-slug + required: true + schema: + type: string + - description: "Name of the role being modified, supported values are: admin,\ + \ manager (equals developer), and member (equals tester/qa)" + in: path + name: role-name + required: true + schema: + enum: + - admin + - manager + - member + type: string + requestBody: + content: + '*/*': + schema: + $ref: '#/components/schemas/app_roles_query_200_response' + description: List of group slugs + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/app_roles_query_200_response' + description: List of group slugs + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/service.ProxyErrorRespModel' + description: Unprocessable Entity + security: + - PersonalAccessToken: [] + summary: Replaces group roles for an app + tags: + - application + x-codegen-request-body-name: groups + /apps/{app-slug}/secrets: + get: + description: List the application secrets (with no values). Requires administrator + level privileges to the app. + operationId: secret-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppSecretListResponse' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: List the application secrets (with no values) + tags: + - secrets + /apps/{app-slug}/secrets/{secret-name}: + delete: + description: Delete an application secret. Requires administrator level privileges + to the app. + operationId: secret-delete + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Secret name + in: path + name: secret-name + required: true + schema: + type: string + responses: + "204": + content: {} + description: No Content + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Delete an application secret + tags: + - secrets + put: + description: Upsert an application secret. Requires administrator level privileges + to the app. + operationId: secret-upsert + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Secret name + in: path + name: secret-name + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppSecretUpsertParams' + description: Secret parameters + required: true + responses: + "201": + content: {} + description: Created + "204": + content: {} + description: No Content + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Upsert an application secret + tags: + - secrets + x-codegen-request-body-name: app + /apps/{app-slug}/secrets/{secret-name}/value: + get: + description: Get the value of an (unprotected) application secrets. Requires + administrator level privileges to the app. + operationId: secret-value-get + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + - description: Secret name + in: path + name: secret-name + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppSecretGetValueResponse' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get the value of an (unprotected) application secrets + tags: + - secrets + /apps/{app-slug}/test-devices: + get: + description: List registered test devices of all members of a specified Bitrise + app + operationId: test-device-list + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.TestDeviceListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + - AddonAuthToken: [] + summary: List the test devices for an app + tags: + - test-devices + /apps/{app-slug}/update-email-notifications: + patch: + description: Updates the app's email notification settings with parameters + operationId: app-notifications + parameters: + - description: App slug + in: path + name: app-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppNotificationSettingsParams' + description: App notification settings parameters + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppNotificationSettingsUpdateResponse' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Updates the app's notification settings + tags: + - application + x-codegen-request-body-name: notification_settings_params + /builds: + get: + description: "List all the Bitrise builds that can be accessed with the authenticated\ + \ account. Filter builds based on their owner, using the owner slug, or the\ + \ status of the build." + operationId: build-list-all + parameters: + - description: The slug of the owner of the app or apps + in: query + name: owner_slug + schema: + type: string + - description: "Indicates whether the build has started yet (true: the build\ + \ hasn't started)" + in: query + name: is_on_hold + schema: + type: boolean + - description: "The status of the build: not finished (0), successful (1), failed\ + \ (2), aborted with failure (3), aborted with success (4)" + in: query + name: status + schema: + maximum: 4 + type: integer + - description: Slug of the first build in the response + in: query + name: next + schema: + type: string + - description: "Max number of elements per page (default: 50)" + in: query + name: limit + schema: + maximum: 50 + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.BuildListAllResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: List all builds + tags: + - builds + /me: + get: + description: Shows the authenticated users profile info + operationId: user-profile + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.UserProfileRespModel' + description: OK + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get your profile info + tags: + - user + /me/activities: + get: + description: List all the Bitrise activity events + operationId: activity-list + parameters: + - description: Slug of the first activity event in the response + in: query + name: next + schema: + type: string + - description: "Max number of elements per page (default: 50)" + in: query + name: limit + schema: + maximum: 50 + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.ActivityEventListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get list of Bitrise activity events + tags: + - activity + /me/plan: + get: + description: "Get the subscription of the user: the current plan, any pending\ + \ plans, and the duration of a trial period if applicable" + operationId: user-plan + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.UserPlanRespModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: The subscription plan of the user + tags: + - user + /organizations: + get: + description: List all Bitrise organizations that the user is part of + operationId: org-list + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.OrganizationListRespModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: List the organizations that the user is part of + tags: + - organizations + /organizations/{org-slug}: + get: + description: Get a specified Bitrise organization that the user is part of. + operationId: org-show + parameters: + - description: The organization slug + in: path + name: org-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.OrganizationRespModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get a specified organization. + tags: + - organizations + /organizations/{org-slug}/apps: + get: + description: "List all the available apps owned by a given organization. [Find\ + \ the organization URL](https://devcenter.bitrise.io/team-management/organizations/org-url/)\ + \ of the organisations you are part of; be aware that the endpoint will not\ + \ return any apps if the authenticated account is not a member of the given\ + \ organisation." + operationId: app-list-by-organization + parameters: + - description: Organization slug + in: path + name: org-slug + required: true + schema: + type: string + - description: "Order of applications: sort them based on when they were created\ + \ or the time of their last build" + in: query + name: sort_by + schema: + enum: + - last_build_at + - created_at + type: string + - description: Slug of the first app in the response + in: query + name: next + schema: + type: string + - description: "Max number of elements per page (default: 50)" + in: query + name: limit + schema: + maximum: 50 + type: integer + - description: The title of the app + in: query + name: title + schema: + type: string + - description: "The project type of the app (eg. 'ios', 'android')" + in: query + name: project_type + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get list of the apps for an organization + tags: + - application + /organizations/{org-slug}/apps/machine_types: + patch: + description: Migrates all apps' machine types of an organization from one machine + type to another + operationId: organization-machine-type-update + parameters: + - description: Organization slug + in: path + name: org-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.OrganizationUpdateMachineTypeParams' + description: Machine type to migrate from and to + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.OrganizationUpdateMachineTypeResponse' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Migrate machine types + tags: + - organizations + x-codegen-request-body-name: types + /organizations/{org-slug}/groups: + get: + description: Lists the groups of an organization + operationId: organzation-groups-list + parameters: + - description: slug of the organization + in: path + name: org-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/organzation_groups_list_200_response_inner' + type: array + description: list of groups + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.ProxyErrorRespModel' + description: Not Found + security: + - PersonalAccessToken: [] + summary: List organizations groups + tags: + - organizations + /organizations/{organization-slug}/addons: + get: + description: List all the provisioned addons for organization + operationId: addon-list-by-organization + parameters: + - description: Organization slug + in: path + name: organization-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.OwnerAddOnsListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get list of the addons for organization + tags: + - addons + /pipelines: + get: + description: "List all the Bitrise pipelines/standalone builds that can be accessed\ + \ with the authenticated account. Filter pipelines/standalone builds based\ + \ on their owner, using the owner slug, or the status of the pipeline/standalone\ + \ build." + operationId: pipeline-list-all + parameters: + - description: The slug of the owner of the app or apps + in: query + name: owner_slug + schema: + type: string + - description: "The status of the pipelines/standalone build: initializing,\ + \ on_hold, running, succeeded, failed, aborted, succeeded_with_abort" + in: query + name: status + schema: + type: integer + - description: Getting pipelines/standalone builds before the given parameter + (RFC3339 time format) + in: query + name: next + schema: + type: string + - description: "Max number of elements per page (default: 10)" + in: query + name: limit + schema: + type: integer + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.PipelineListAllResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: List all pipelines/standalone builds + tags: + - pipelines + /user/{user-slug}/apps/machine_types: + patch: + description: Migrates all apps' machine types of a user from one machine type + to another + operationId: user-machine-type-update + parameters: + - description: User slug + in: path + name: user-slug + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v0.OrganizationUpdateMachineTypeParams' + description: Machine type to migrate from and to + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.OrganizationUpdateMachineTypeResponse' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Migrate machine types + tags: + - user + x-codegen-request-body-name: types + /users/{user-slug}: + get: + description: Show information about a specific user + operationId: user-show + parameters: + - description: User slug + in: path + name: user-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.UserProfileRespModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get a specific user + tags: + - user + /users/{user-slug}/addons: + get: + description: List all the provisioned addons for the authenticated user + operationId: addon-list-by-user + parameters: + - description: User slug + in: path + name: user-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.OwnerAddOnsListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get list of the addons for user + tags: + - addons + /users/{user-slug}/apple-api-credentials: + get: + description: List Apple API credentials for a specific Bitrise user + operationId: apple-api-credential-list + parameters: + - description: User slug + in: path + name: user-slug + required: true + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppleAPICredentialsListResponse' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: List Apple API credentials for a specific user + tags: + - apple-api-credentials + /users/{user-slug}/apps: + get: + description: "List all the available apps for the given user. It needs the\ + \ user slug that you can get from the [GET /me](https://api-docs.bitrise.io/#/user/user-profile)\ + \ endpoint." + operationId: app-list-by-user + parameters: + - description: User slug + in: path + name: user-slug + required: true + schema: + type: string + - description: Order of applications + in: query + name: sort_by + schema: + enum: + - last_build_at + - created_at + type: string + - description: Slug of the first app in the response + in: query + name: next + schema: + type: string + - description: "Max number of elements per page (default: 50)" + in: query + name: limit + schema: + maximum: 50 + type: integer + - description: The title of the app + in: query + name: title + schema: + type: string + - description: "The project type of the app (eg. 'ios', 'android')" + in: query + name: project_type + schema: + type: string + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/v0.AppListResponseModel' + description: OK + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Bad Request + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Unauthorized + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Not Found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/service.StandardErrorRespModel' + description: Internal Server Error + security: + - PersonalAccessToken: [] + summary: Get list of the apps for a user + tags: + - application +components: + schemas: + addons.Addon: + example: + setup_guide: + instructions: + - description: description + card_content: card_content + type: type + - description: description + card_content: card_content + type: type + notification: notification + summary: summary + icon: icon + description: description + documentation_url: documentation_url + title: title + card_header_colors: + - card_header_colors + - card_header_colors + platforms: + - platforms + - platforms + is_beta: true + developer_links: + - title: title + url: url + - title: title + url: url + plans: + - features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + - features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + subtitle: subtitle + preview_images: + - preview_images + - preview_images + banner_image: banner_image + categories: + - categories + - categories + id: id + has_ui: true + properties: + banner_image: + type: string + card_header_colors: + items: + type: string + type: array + categories: + items: + type: string + type: array + description: + type: string + developer_links: + items: + $ref: '#/components/schemas/addons.DeveloperLink' + type: array + documentation_url: + type: string + has_ui: + type: boolean + icon: + type: string + id: + type: string + is_beta: + type: boolean + plans: + items: + $ref: '#/components/schemas/addons.Plan' + type: array + platforms: + items: + type: string + type: array + preview_images: + items: + type: string + type: array + setup_guide: + $ref: '#/components/schemas/addons.SetupGuide' + subtitle: + type: string + summary: + type: string + title: + type: string + type: object + addons.DeveloperLink: + example: + title: title + url: url + properties: + title: + type: string + url: + type: string + type: object + addons.Feature: + example: + quantity: quantity + available: true + description: description + properties: + available: + type: boolean + description: + type: string + quantity: + type: string + type: object + addons.Plan: + example: + features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + properties: + features: + items: + $ref: '#/components/schemas/addons.Feature' + type: array + id: + type: string + name: + type: string + price: + type: integer + type: object + addons.SetupGuide: + example: + instructions: + - description: description + card_content: card_content + type: type + - description: description + card_content: card_content + type: type + notification: notification + properties: + instructions: + items: + $ref: '#/components/schemas/addons.SetupInstruction' + type: array + notification: + type: string + type: object + addons.SetupInstruction: + example: + description: description + card_content: card_content + type: type + properties: + card_content: + type: string + description: + type: string + type: + type: string + type: object + nulls.Int64: + example: + valid: true + int64: 6 + properties: + int64: + type: integer + valid: + description: Valid is true if Int64 is not NULL + type: boolean + type: object + nulls.String: + example: + valid: true + string: string + properties: + string: + type: string + valid: + description: Valid is true if String is not NULL + type: boolean + type: object + pipelineabledomain.ArtifactMeta: + example: + artifact_type: artifact_type + version_name: version_name + version_code: version_code + id: id + title: title + properties: + artifact_type: + type: string + id: + type: string + title: + type: string + version_code: + type: string + version_name: + type: string + type: object + pipelineabledomain.BuildToolInvocation: + example: + tool_version: tool_version + invocation_id: invocation_id + tool: tool + properties: + invocation_id: + type: string + tool: + type: string + tool_version: + type: string + type: object + pipelineabledomain.Environments: + example: + value: "{}" + is_expand: "{}" + key: key + properties: + is_expand: + type: object + key: + type: string + value: + type: object + type: object + pipelineabledomain.LocalConfig: + example: + host: host + username: username + properties: + host: + type: string + username: + type: string + type: object + pipelineabledomain.TriggerParams: + example: + pull_request_merge_branch: pull_request_merge_branch + branch_dest: branch_dest + environments: + - value: "{}" + is_expand: "{}" + key: key + - value: "{}" + is_expand: "{}" + key: key + pull_request_head_branch: pull_request_head_branch + commit_message: commit_message + branch: branch + pull_request_author: pull_request_author + pull_request_id: "{}" + commit_hash: commit_hash + pull_request_unverified_merge_branch: pull_request_unverified_merge_branch + branch_dest_repo_owner: branch_dest_repo_owner + pull_request_repository_url: pull_request_repository_url + tag: "{}" + branch_repo_owner: branch_repo_owner + properties: + branch: + type: string + branch_dest: + type: string + branch_dest_repo_owner: + type: string + branch_repo_owner: + type: string + commit_hash: + type: string + commit_message: + type: string + environments: + items: + $ref: '#/components/schemas/pipelineabledomain.Environments' + type: array + pull_request_author: + type: string + pull_request_head_branch: + type: string + pull_request_id: + type: object + pull_request_merge_branch: + type: string + pull_request_repository_url: + type: string + pull_request_unverified_merge_branch: + type: string + tag: + type: object + type: object + service.ProxyErrorRespModel: + properties: + error_msg: + type: string + type: object + service.StandardErrorRespModel: + example: + message: message + properties: + message: + type: string + type: object + v0.ActivityEventListResponseModel: + example: + data: + - repository_avatar_icon_url: repository_avatar_icon_url + repository_title: repository_title + event_stype: + valid: true + string: string + created_at: created_at + description: + valid: true + string: string + event_icon: + valid: true + string: string + title: + valid: true + string: string + slug: slug + target_path_string: + valid: true + string: string + - repository_avatar_icon_url: repository_avatar_icon_url + repository_title: repository_title + event_stype: + valid: true + string: string + created_at: created_at + description: + valid: true + string: string + event_icon: + valid: true + string: string + title: + valid: true + string: string + slug: slug + target_path_string: + valid: true + string: string + paging: + next: next + page_item_limit: 6 + total_item_count: 1 + properties: + data: + items: + $ref: '#/components/schemas/v0.ActivityEventResponseItemModel' + type: array + paging: + $ref: '#/components/schemas/v0.PagingResponseModel' + type: object + v0.ActivityEventResponseItemModel: + example: + repository_avatar_icon_url: repository_avatar_icon_url + repository_title: repository_title + event_stype: + valid: true + string: string + created_at: created_at + description: + valid: true + string: string + event_icon: + valid: true + string: string + title: + valid: true + string: string + slug: slug + target_path_string: + valid: true + string: string + properties: + created_at: + type: string + description: + $ref: '#/components/schemas/nulls.String' + event_icon: + $ref: '#/components/schemas/nulls.String' + event_stype: + $ref: '#/components/schemas/nulls.String' + repository_avatar_icon_url: + type: string + repository_title: + type: string + slug: + type: string + target_path_string: + $ref: '#/components/schemas/nulls.String' + title: + $ref: '#/components/schemas/nulls.String' + type: object + v0.AddOnAppResponseItemModel: + example: + plan_started_at: plan_started_at + icon: + valid: true + string: string + title: title + plan: + features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + slug: slug + properties: + icon: + $ref: '#/components/schemas/nulls.String' + plan: + $ref: '#/components/schemas/addons.Plan' + plan_started_at: + type: string + slug: + type: string + title: + type: string + type: object + v0.AddonsListResponseModel: + example: + data: + - setup_guide: + instructions: + - description: description + card_content: card_content + type: type + - description: description + card_content: card_content + type: type + notification: notification + summary: summary + icon: icon + description: description + documentation_url: documentation_url + title: title + card_header_colors: + - card_header_colors + - card_header_colors + platforms: + - platforms + - platforms + is_beta: true + developer_links: + - title: title + url: url + - title: title + url: url + plans: + - features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + - features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + subtitle: subtitle + preview_images: + - preview_images + - preview_images + banner_image: banner_image + categories: + - categories + - categories + id: id + has_ui: true + - setup_guide: + instructions: + - description: description + card_content: card_content + type: type + - description: description + card_content: card_content + type: type + notification: notification + summary: summary + icon: icon + description: description + documentation_url: documentation_url + title: title + card_header_colors: + - card_header_colors + - card_header_colors + platforms: + - platforms + - platforms + is_beta: true + developer_links: + - title: title + url: url + - title: title + url: url + plans: + - features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + - features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + subtitle: subtitle + preview_images: + - preview_images + - preview_images + banner_image: banner_image + categories: + - categories + - categories + id: id + has_ui: true + properties: + data: + items: + $ref: '#/components/schemas/addons.Addon' + type: array + type: object + v0.AddonsShowResponseModel: + example: + data: + setup_guide: + instructions: + - description: description + card_content: card_content + type: type + - description: description + card_content: card_content + type: type + notification: notification + summary: summary + icon: icon + description: description + documentation_url: documentation_url + title: title + card_header_colors: + - card_header_colors + - card_header_colors + platforms: + - platforms + - platforms + is_beta: true + developer_links: + - title: title + url: url + - title: title + url: url + plans: + - features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + - features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + subtitle: subtitle + preview_images: + - preview_images + - preview_images + banner_image: banner_image + categories: + - categories + - categories + id: id + has_ui: true + properties: + data: + $ref: '#/components/schemas/addons.Addon' + type: object + v0.AndroidKeystoreFileUploadParams: + properties: + alias: + type: string + keystore_file_name: + type: string + password: + type: string + private_key_password: + type: string + upload_file_name: + type: string + upload_file_size: + type: integer + required: + - alias + - password + - private_key_password + - upload_file_name + - upload_file_size + type: object + v0.AppAddOnResponseItemModel: + example: + setup_guide: + instructions: + - description: description + card_content: card_content + type: type + - description: description + card_content: card_content + type: type + notification: notification + summary: summary + icon: icon + description: description + documentation_url: documentation_url + title: title + is_enabled: true + is_beta: true + login_url: login_url + terms_url: terms_url + id: id + scopes: + - scopes + - scopes + has_ui: true + plan: + features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + properties: + description: + type: string + documentation_url: + type: string + has_ui: + type: boolean + icon: + type: string + id: + type: string + is_beta: + type: boolean + is_enabled: + type: boolean + login_url: + type: string + plan: + $ref: '#/components/schemas/addons.Plan' + scopes: + items: + type: string + type: array + setup_guide: + $ref: '#/components/schemas/addons.SetupGuide' + summary: + type: string + terms_url: + type: string + title: + type: string + type: object + v0.AppAddOnsListResponseModel: + example: + data: + - setup_guide: + instructions: + - description: description + card_content: card_content + type: type + - description: description + card_content: card_content + type: type + notification: notification + summary: summary + icon: icon + description: description + documentation_url: documentation_url + title: title + is_enabled: true + is_beta: true + login_url: login_url + terms_url: terms_url + id: id + scopes: + - scopes + - scopes + has_ui: true + plan: + features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + - setup_guide: + instructions: + - description: description + card_content: card_content + type: type + - description: description + card_content: card_content + type: type + notification: notification + summary: summary + icon: icon + description: description + documentation_url: documentation_url + title: title + is_enabled: true + is_beta: true + login_url: login_url + terms_url: terms_url + id: id + scopes: + - scopes + - scopes + has_ui: true + plan: + features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + properties: + data: + items: + $ref: '#/components/schemas/v0.AppAddOnResponseItemModel' + type: array + type: object + v0.AppConfigRequestParam: + properties: + app_config_datastore_yaml: + description: "The bitrise.yml of your application, defined in JSON format" + type: string + required: + - app_config_datastore_yaml + type: object + v0.AppConfigRespModel: + additionalProperties: + type: string + type: object + v0.AppDeleteRespModel: + example: + msg: msg + properties: + msg: + type: string + type: object + v0.AppFinishParams: + properties: + config: + description: "Which config to use. Specify a config that matches your project\ + \ type (e. g. `default-android-config` for `android`, etc.). If not speficied,\ + \ default value is `other-config`. The available values are `default-android-config`,\ + \ `default-cordova-config`, `default-fastlane-android-config`, `default-fastlane-ios-config`,\ + \ `flutter-config-notest-app-android`, `flutter-config-notest-app-both`,\ + \ `flutter-config-notest-app-ios`, `flutter-config-test-app-android`,\ + \ `flutter-config-test-app-both`, `flutter-config-test-app-ios`, `default-ionic-config`,\ + \ `default-ios-config`, `default-macos-config`, `default-react-native-config`,\ + \ `default-react-native-expo-config`, `other-config`." + type: string + envs: + additionalProperties: + type: string + description: "Environment variables for the application workflows, e.g.\ + \ {\"env1\":\"val1\",\"env2\":\"val2\"}" + type: object + mode: + description: "config specification mode, has to be specified with `manual`\ + \ value" + type: string + organization_slug: + description: "The slug of the organization, who will be the owner of the\ + \ application, if it's not specified, then the authenticated user will\ + \ be the owner" + type: string + project_type: + description: "The type of your project (`android`, `ios`, `cordova`, `other`,\ + \ `xamarin`, `macos`, `ionic`, `react-native`, `fastlane`, null)" + type: string + stack_id: + description: "The id of the stack the application will be built (these can\ + \ be found in the [system report](https://github.com/bitrise-io/bitrise.io/tree/master/system_reports)\ + \ file names)" + type: string + required: + - project_type + - stack_id + type: object + v0.AppFinishRespModel: + example: + branch_name: branch_name + is_webhook_auto_reg_supported: true + build_trigger_token: build_trigger_token + status: status + properties: + branch_name: + type: string + build_trigger_token: + type: string + is_webhook_auto_reg_supported: + type: boolean + status: + type: string + type: object + v0.AppListResponseModel: + example: + data: + - owner: + account_type: account_type + name: name + slug: slug + project_type: + valid: true + string: string + repo_url: + valid: true + string: string + is_disabled: true + title: title + avatar_url: + valid: true + string: string + provider: + valid: true + string: string + is_public: true + repo_slug: + valid: true + string: string + repo_owner: + valid: true + string: string + slug: slug + is_github_checks_enabled: true + status: 0 + - owner: + account_type: account_type + name: name + slug: slug + project_type: + valid: true + string: string + repo_url: + valid: true + string: string + is_disabled: true + title: title + avatar_url: + valid: true + string: string + provider: + valid: true + string: string + is_public: true + repo_slug: + valid: true + string: string + repo_owner: + valid: true + string: string + slug: slug + is_github_checks_enabled: true + status: 0 + paging: "{}" + properties: + data: + items: + $ref: '#/components/schemas/v0.AppResponseItemModel' + type: array + paging: + allOf: + - $ref: '#/components/schemas/v0.PagingResponseModel' + description: pagination + type: object + type: object + v0.AppNotificationSettingsParams: + properties: + on_failure: + description: "When should Bitrise send notifications for the users on build\ + \ failure? Possible values: always, never, change" + type: string + on_success: + description: "When should Bitrise send notifications for the users on build\ + \ success? Possible values: always, never, change" + type: string + type: object + v0.AppNotificationSettingsUpdateResponse: + example: + msg: msg + properties: + msg: + type: string + type: object + v0.AppRespModel: + example: + slug: slug + status: status + properties: + slug: + type: string + status: + type: string + type: object + v0.AppResponseItemModel: + example: + owner: + account_type: account_type + name: name + slug: slug + project_type: + valid: true + string: string + repo_url: + valid: true + string: string + is_disabled: true + title: title + avatar_url: + valid: true + string: string + provider: + valid: true + string: string + is_public: true + repo_slug: + valid: true + string: string + repo_owner: + valid: true + string: string + slug: slug + is_github_checks_enabled: true + status: 0 + properties: + avatar_url: + $ref: '#/components/schemas/nulls.String' + is_disabled: + type: boolean + is_github_checks_enabled: + type: boolean + is_public: + type: boolean + owner: + $ref: '#/components/schemas/v0.OwnerAccountResponseModel' + project_type: + $ref: '#/components/schemas/nulls.String' + provider: + $ref: '#/components/schemas/nulls.String' + repo_owner: + $ref: '#/components/schemas/nulls.String' + repo_slug: + $ref: '#/components/schemas/nulls.String' + repo_url: + $ref: '#/components/schemas/nulls.String' + slug: + type: string + status: + type: integer + title: + type: string + type: object + v0.AppSecret: + example: + is_exposed_for_pull_requests: true + expand_in_step_inputs: true + name: name + is_protected: true + properties: + expand_in_step_inputs: + description: Replace variable in inputs? https://devcenter.bitrise.io/en/references/steps-reference/step-inputs-reference.html#step-input-properties + type: boolean + is_exposed_for_pull_requests: + description: Expose for Pull Requests? + type: boolean + is_protected: + description: Secret marked as protected? + type: boolean + name: + description: Name of the secret + type: string + type: object + v0.AppSecretGetValueResponse: + example: + value: value + properties: + value: + type: string + type: object + v0.AppSecretListResponse: + example: + secrets: + - is_exposed_for_pull_requests: true + expand_in_step_inputs: true + name: name + is_protected: true + - is_exposed_for_pull_requests: true + expand_in_step_inputs: true + name: name + is_protected: true + properties: + secrets: + items: + $ref: '#/components/schemas/v0.AppSecret' + type: array + type: object + v0.AppSecretUpsertParams: + properties: + expand_in_step_inputs: + description: Replace variable in inputs? https://devcenter.bitrise.io/en/references/steps-reference/step-inputs-reference.html#step-input-properties + type: boolean + is_exposed_for_pull_requests: + description: Expose for Pull Requests? + type: boolean + is_protected: + description: Secret marked as protected? + type: boolean + value: + description: Value of the secret + type: string + type: object + v0.AppShowResponseModel: + example: + data: + owner: + account_type: account_type + name: name + slug: slug + project_type: + valid: true + string: string + repo_url: + valid: true + string: string + is_disabled: true + title: title + avatar_url: + valid: true + string: string + provider: + valid: true + string: string + is_public: true + repo_slug: + valid: true + string: string + repo_owner: + valid: true + string: string + slug: slug + is_github_checks_enabled: true + status: 0 + properties: + data: + $ref: '#/components/schemas/v0.AppResponseItemModel' + type: object + v0.AppUpdateParams: + properties: + apple_credential_user_id: + description: "The new apple credential user ID (recommendation: use the\ + \ UI to set this)" + type: integer + apple_credential_user_slug: + description: "The new apple credential user slug (recommendation: use the\ + \ UI to set this)" + type: string + default_branch: + description: The new default branch for the application. + type: string + is_public: + description: The new value of whether an application should be publicly + visible + type: boolean + repository_url: + description: The new repository URL for the application. + type: string + services_credential_user_id: + description: "The new service credential user ID (recommendation: use the\ + \ UI to set this)" + type: integer + title: + description: The new title of the application. + type: string + type: object + v0.AppUpdateRespModel: + example: + status: status + properties: + status: + type: string + type: object + v0.AppUploadParams: + properties: + default_branch_name: + description: "The default branch of the repository. If it's not specified,\ + \ it will be `master`." + type: string + git_owner: + description: "[Deprecated] You no longer need to provide this field." + type: string + git_repo_slug: + description: "[Deprecated] You no longer need to provide this field." + type: string + is_public: + description: "If `true` then the repository visibility setting will be public,\ + \ in case of `false` it will be private" + type: boolean + manual_approval_enabled: + description: "Toggles whether manual approval should be enabled for the\ + \ app's builds. If it's not specified, it will be `true`." + type: boolean + organization_slug: + description: "The slug of the organization, who will be the owner of the\ + \ application. If it's not specified, then the authenticated user will\ + \ be the owner." + type: string + provider: + description: "The git provider you are using, it can be `github`, `bitbucket`,\ + \ `gitlab`, `gitlab-self-hosted` or `custom`" + type: string + repo_url: + description: The URL of your repository + type: string + title: + description: "The title of the application. If it's not specified, it will\ + \ be the git repository's name." + type: string + type: + description: "[Deprecated] You no longer need to provide this field." + type: string + required: + - is_public + - repo_url + type: object + v0.AppWebhookCreateParams: + properties: + events: + items: + type: string + type: array + headers: + items: + type: integer + type: array + secret: + type: string + url: + type: string + required: + - events + - secret + - url + type: object + v0.AppWebhookCreatedResponseModel: + example: + data: + headers: + - 0 + - 0 + updated_at: updated_at + created_at: created_at + registered_by_addon: true + events: + - events + - events + slug: slug + url: url + properties: + data: + $ref: '#/components/schemas/v0.AppWebhookResponseItemModel' + type: object + v0.AppWebhookDeletedResponseModel: + example: + data: + headers: + - 0 + - 0 + updated_at: updated_at + created_at: created_at + registered_by_addon: true + events: + - events + - events + slug: slug + url: url + properties: + data: + $ref: '#/components/schemas/v0.AppWebhookResponseItemModel' + type: object + v0.AppWebhookListResponseModel: + example: + data: + - headers: + - 0 + - 0 + updated_at: updated_at + created_at: created_at + registered_by_addon: true + events: + - events + - events + slug: slug + url: url + - headers: + - 0 + - 0 + updated_at: updated_at + created_at: created_at + registered_by_addon: true + events: + - events + - events + slug: slug + url: url + paging: "{}" + properties: + data: + items: + $ref: '#/components/schemas/v0.AppWebhookResponseItemModel' + type: array + paging: + allOf: + - $ref: '#/components/schemas/v0.PagingResponseModel' + description: pagination + type: object + type: object + v0.AppWebhookResponseItemModel: + example: + headers: + - 0 + - 0 + updated_at: updated_at + created_at: created_at + registered_by_addon: true + events: + - events + - events + slug: slug + url: url + properties: + created_at: + type: string + events: + items: + type: string + type: array + headers: + items: + type: integer + type: array + registered_by_addon: + type: boolean + slug: + type: string + updated_at: + type: string + url: + type: string + type: object + v0.AppWebhookResponseModel: + example: + data: + headers: + - 0 + - 0 + updated_at: updated_at + created_at: created_at + registered_by_addon: true + events: + - events + - events + slug: slug + url: url + properties: + data: + $ref: '#/components/schemas/v0.AppWebhookResponseItemModel' + type: object + v0.AppWebhookUpdateParams: + properties: + events: + items: + type: string + type: array + headers: + items: + type: integer + type: array + url: + type: string + required: + - events + - url + type: object + v0.AppleAPICredentialResponseItem: + example: + issuer_id: issuer_id + updated_at: updated_at + key_id: key_id + name: name + created_at: created_at + slug: slug + properties: + created_at: + type: string + issuer_id: + type: string + key_id: + type: string + name: + type: string + slug: + type: string + updated_at: + type: string + type: object + v0.AppleAPICredentialsListResponse: + example: + data: + - issuer_id: issuer_id + updated_at: updated_at + key_id: key_id + name: name + created_at: created_at + slug: slug + - issuer_id: issuer_id + updated_at: updated_at + key_id: key_id + name: name + created_at: created_at + slug: slug + properties: + data: + items: + $ref: '#/components/schemas/v0.AppleAPICredentialResponseItem' + type: array + type: object + v0.ArchivedBuildArtifact: + example: + artifact_meta: + key: "" + artifact_type: artifact_type + public_page_token: public_page_token + is_public_page_enabled: true + created_at: created_at + id: id + title: title + file_size_bytes: 0 + properties: + artifact_meta: + additionalProperties: true + type: object + artifact_type: + type: string + created_at: + type: string + file_size_bytes: + type: integer + id: + type: string + is_public_page_enabled: + type: boolean + public_page_token: + type: string + title: + type: string + type: object + v0.ArchivedBuildListResponseModel: + example: + data: + - finished_at: finished_at + commit_message: commit_message + started_on_worker_at: started_on_worker_at + triggered_by: triggered_by + branch: branch + pipeline_workflow_id: pipeline_workflow_id + pull_request_id: 5 + commit_hash: commit_hash + pull_request_view_url: pull_request_view_url + stack_identifier: stack_identifier + build_artifacts: + - artifact_meta: + key: "" + artifact_type: artifact_type + public_page_token: public_page_token + is_public_page_enabled: true + created_at: created_at + id: id + title: title + file_size_bytes: 0 + - artifact_meta: + key: "" + artifact_type: artifact_type + public_page_token: public_page_token + is_public_page_enabled: true + created_at: created_at + id: id + title: title + file_size_bytes: 0 + pull_request_target_branch: pull_request_target_branch + machine_type_id: machine_type_id + credit_cost: 1 + triggered_workflow: triggered_workflow + abort_reason: abort_reason + build_number: 6 + status_text: status_text + tag: tag + slug: slug + original_build_params: + - 5 + - 5 + status: 2 + - finished_at: finished_at + commit_message: commit_message + started_on_worker_at: started_on_worker_at + triggered_by: triggered_by + branch: branch + pipeline_workflow_id: pipeline_workflow_id + pull_request_id: 5 + commit_hash: commit_hash + pull_request_view_url: pull_request_view_url + stack_identifier: stack_identifier + build_artifacts: + - artifact_meta: + key: "" + artifact_type: artifact_type + public_page_token: public_page_token + is_public_page_enabled: true + created_at: created_at + id: id + title: title + file_size_bytes: 0 + - artifact_meta: + key: "" + artifact_type: artifact_type + public_page_token: public_page_token + is_public_page_enabled: true + created_at: created_at + id: id + title: title + file_size_bytes: 0 + pull_request_target_branch: pull_request_target_branch + machine_type_id: machine_type_id + credit_cost: 1 + triggered_workflow: triggered_workflow + abort_reason: abort_reason + build_number: 6 + status_text: status_text + tag: tag + slug: slug + original_build_params: + - 5 + - 5 + status: 2 + paging: "{}" + properties: + data: + items: + $ref: '#/components/schemas/v0.ArchivedBuildResponseItemModel' + type: array + paging: + allOf: + - $ref: '#/components/schemas/v0.PagingResponseModel' + description: pagination + type: object + type: object + v0.ArchivedBuildResponseItemModel: + example: + finished_at: finished_at + commit_message: commit_message + started_on_worker_at: started_on_worker_at + triggered_by: triggered_by + branch: branch + pipeline_workflow_id: pipeline_workflow_id + pull_request_id: 5 + commit_hash: commit_hash + pull_request_view_url: pull_request_view_url + stack_identifier: stack_identifier + build_artifacts: + - artifact_meta: + key: "" + artifact_type: artifact_type + public_page_token: public_page_token + is_public_page_enabled: true + created_at: created_at + id: id + title: title + file_size_bytes: 0 + - artifact_meta: + key: "" + artifact_type: artifact_type + public_page_token: public_page_token + is_public_page_enabled: true + created_at: created_at + id: id + title: title + file_size_bytes: 0 + pull_request_target_branch: pull_request_target_branch + machine_type_id: machine_type_id + credit_cost: 1 + triggered_workflow: triggered_workflow + abort_reason: abort_reason + build_number: 6 + status_text: status_text + tag: tag + slug: slug + original_build_params: + - 5 + - 5 + status: 2 + properties: + abort_reason: + type: string + branch: + type: string + build_artifacts: + items: + $ref: '#/components/schemas/v0.ArchivedBuildArtifact' + type: array + build_number: + type: integer + commit_hash: + type: string + commit_message: + type: string + credit_cost: + type: integer + finished_at: + type: string + machine_type_id: + type: string + original_build_params: + items: + type: integer + type: array + pipeline_workflow_id: + type: string + pull_request_id: + type: integer + pull_request_target_branch: + type: string + pull_request_view_url: + type: string + slug: + type: string + stack_identifier: + type: string + started_on_worker_at: + type: string + status: + type: integer + status_text: + type: string + tag: + type: string + triggered_by: + type: string + triggered_workflow: + type: string + type: object + v0.ArtifactDeleteResponseModel: + example: + data: + intermediate_file_info: + - 1 + - 1 + artifact_meta: + - 0 + - 0 + artifact_type: + valid: true + string: string + is_public_page_enabled: true + expiring_download_url: expiring_download_url + public_install_page_url: public_install_page_url + title: + valid: true + string: string + file_size_bytes: 6 + slug: slug + properties: + data: + $ref: '#/components/schemas/v0.ArtifactResponseItemModel' + type: object + v0.ArtifactListElementResponseModel: + example: + intermediate_file_info: + - 1 + - 1 + artifact_meta: + - 0 + - 0 + artifact_type: + valid: true + string: string + is_public_page_enabled: true + title: + valid: true + string: string + file_size_bytes: 6 + slug: slug + properties: + artifact_meta: + items: + type: integer + type: array + artifact_type: + $ref: '#/components/schemas/nulls.String' + file_size_bytes: + type: integer + intermediate_file_info: + items: + type: integer + type: array + is_public_page_enabled: + type: boolean + slug: + type: string + title: + $ref: '#/components/schemas/nulls.String' + type: object + v0.ArtifactListResponseModel: + example: + data: + - intermediate_file_info: + - 1 + - 1 + artifact_meta: + - 0 + - 0 + artifact_type: + valid: true + string: string + is_public_page_enabled: true + title: + valid: true + string: string + file_size_bytes: 6 + slug: slug + - intermediate_file_info: + - 1 + - 1 + artifact_meta: + - 0 + - 0 + artifact_type: + valid: true + string: string + is_public_page_enabled: true + title: + valid: true + string: string + file_size_bytes: 6 + slug: slug + paging: "{}" + properties: + data: + items: + $ref: '#/components/schemas/v0.ArtifactListElementResponseModel' + type: array + paging: + allOf: + - $ref: '#/components/schemas/v0.PagingResponseModel' + description: pagination + type: object + type: object + v0.ArtifactResponseItemModel: + example: + intermediate_file_info: + - 1 + - 1 + artifact_meta: + - 0 + - 0 + artifact_type: + valid: true + string: string + is_public_page_enabled: true + expiring_download_url: expiring_download_url + public_install_page_url: public_install_page_url + title: + valid: true + string: string + file_size_bytes: 6 + slug: slug + properties: + artifact_meta: + items: + type: integer + type: array + artifact_type: + $ref: '#/components/schemas/nulls.String' + expiring_download_url: + type: string + file_size_bytes: + type: integer + intermediate_file_info: + items: + type: integer + type: array + is_public_page_enabled: + type: boolean + public_install_page_url: + type: string + slug: + type: string + title: + $ref: '#/components/schemas/nulls.String' + type: object + v0.ArtifactShowResponseModel: + example: + data: + intermediate_file_info: + - 1 + - 1 + artifact_meta: + - 0 + - 0 + artifact_type: + valid: true + string: string + is_public_page_enabled: true + expiring_download_url: expiring_download_url + public_install_page_url: public_install_page_url + title: + valid: true + string: string + file_size_bytes: 6 + slug: slug + properties: + data: + $ref: '#/components/schemas/v0.ArtifactResponseItemModel' + type: object + v0.ArtifactUpdateParams: + properties: + is_public_page_enabled: + type: boolean + required: + - is_public_page_enabled + type: object + v0.BitriseYMLConfigGetResponse: + example: + location: "{}" + properties: + location: + allOf: + - $ref: '#/components/schemas/website.BitriseYMLLocation' + description: "Location of bitrise.yml file. Enums(bitrise.io, repository)" + type: object + type: object + v0.BitriseYMLConfigUpdateParams: + properties: + location: + allOf: + - $ref: '#/components/schemas/website.BitriseYMLLocation' + description: "Location of bitrise.yml file. Enums(bitrise.io, repository)" + example: repository + type: object + type: object + v0.BranchListResponseModel: + example: + data: + - data + - data + properties: + data: + items: + type: string + type: array + type: object + v0.BuildAbortParams: + properties: + abort_reason: + type: string + abort_with_success: + type: boolean + skip_notifications: + type: boolean + required: + - abort_reason + - abort_with_success + - skip_notifications + type: object + v0.BuildAbortResponseModel: + example: + status: status + properties: + status: + type: string + type: object + v0.BuildCertificateListResponseModel: + example: + data: + - processed: true + download_url: download_url + is_expose: true + upload_file_name: upload_file_name + certificate_password: certificate_password + upload_url: upload_url + upload_file_size: 0 + is_protected: true + slug: slug + - processed: true + download_url: download_url + is_expose: true + upload_file_name: upload_file_name + certificate_password: certificate_password + upload_url: upload_url + upload_file_size: 0 + is_protected: true + slug: slug + paging: "{}" + properties: + data: + items: + $ref: '#/components/schemas/v0.BuildCertificateResponseItemModel' + type: array + paging: + allOf: + - $ref: '#/components/schemas/v0.PagingResponseModel' + description: pagination + type: object + type: object + v0.BuildCertificateResponseItemModel: + example: + processed: true + download_url: download_url + is_expose: true + upload_file_name: upload_file_name + certificate_password: certificate_password + upload_url: upload_url + upload_file_size: 0 + is_protected: true + slug: slug + properties: + certificate_password: + type: string + download_url: + type: string + is_expose: + type: boolean + is_protected: + type: boolean + processed: + type: boolean + slug: + type: string + upload_file_name: + type: string + upload_file_size: + type: integer + upload_url: + type: string + type: object + v0.BuildCertificateResponseModel: + example: + data: + processed: true + download_url: download_url + is_expose: true + upload_file_name: upload_file_name + certificate_password: certificate_password + upload_url: upload_url + upload_file_size: 0 + is_protected: true + slug: slug + properties: + data: + $ref: '#/components/schemas/v0.BuildCertificateResponseItemModel' + type: object + v0.BuildCertificateUpdateParams: + properties: + certificate_password: + type: string + is_expose: + type: boolean + is_protected: + type: boolean + processed: + type: boolean + type: object + v0.BuildCertificateUploadParams: + properties: + upload_file_name: + type: string + upload_file_size: + type: integer + required: + - upload_file_name + - upload_file_size + type: object + v0.BuildListAllResponseItemModel: + example: + environment_prepare_finished_at: environment_prepare_finished_at + finished_at: finished_at + commit_message: + valid: true + string: string + repository: + owner: + account_type: account_type + name: name + slug: slug + project_type: + valid: true + string: string + repo_url: + valid: true + string: string + is_disabled: true + title: title + avatar_url: + valid: true + string: string + provider: + valid: true + string: string + is_public: true + repo_slug: + valid: true + string: string + repo_owner: + valid: true + string: string + slug: slug + is_github_checks_enabled: true + status: 0 + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + commit_hash: + valid: true + string: string + pull_request_view_url: + valid: true + string: string + stack_identifier: + valid: true + string: string + pull_request_target_branch: + valid: true + string: string + machine_type_id: + valid: true + string: string + abort_reason: + valid: true + string: string + tag: + valid: true + string: string + slug: slug + original_build_params: + - 6 + - 6 + is_processed: true + triggered_at: triggered_at + commit_view_url: + valid: true + string: string + is_on_hold: true + started_on_worker_at: started_on_worker_at + pull_request_id: 1 + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + status_text: status_text + status: 5 + properties: + abort_reason: + $ref: '#/components/schemas/nulls.String' + branch: + $ref: '#/components/schemas/nulls.String' + build_number: + type: integer + commit_hash: + $ref: '#/components/schemas/nulls.String' + commit_message: + $ref: '#/components/schemas/nulls.String' + commit_view_url: + $ref: '#/components/schemas/nulls.String' + credit_cost: + $ref: '#/components/schemas/nulls.Int64' + environment_prepare_finished_at: + type: string + finished_at: + type: string + is_on_hold: + type: boolean + is_processed: + type: boolean + machine_type_id: + $ref: '#/components/schemas/nulls.String' + original_build_params: + items: + type: integer + type: array + pull_request_id: + type: integer + pull_request_target_branch: + $ref: '#/components/schemas/nulls.String' + pull_request_view_url: + $ref: '#/components/schemas/nulls.String' + repository: + $ref: '#/components/schemas/v0.AppResponseItemModel' + slug: + type: string + stack_identifier: + $ref: '#/components/schemas/nulls.String' + started_on_worker_at: + type: string + status: + type: integer + status_text: + type: string + tag: + $ref: '#/components/schemas/nulls.String' + triggered_at: + type: string + triggered_by: + $ref: '#/components/schemas/nulls.String' + triggered_workflow: + type: string + type: object + v0.BuildListAllResponseModel: + example: + data: + - environment_prepare_finished_at: environment_prepare_finished_at + finished_at: finished_at + commit_message: + valid: true + string: string + repository: + owner: + account_type: account_type + name: name + slug: slug + project_type: + valid: true + string: string + repo_url: + valid: true + string: string + is_disabled: true + title: title + avatar_url: + valid: true + string: string + provider: + valid: true + string: string + is_public: true + repo_slug: + valid: true + string: string + repo_owner: + valid: true + string: string + slug: slug + is_github_checks_enabled: true + status: 0 + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + commit_hash: + valid: true + string: string + pull_request_view_url: + valid: true + string: string + stack_identifier: + valid: true + string: string + pull_request_target_branch: + valid: true + string: string + machine_type_id: + valid: true + string: string + abort_reason: + valid: true + string: string + tag: + valid: true + string: string + slug: slug + original_build_params: + - 6 + - 6 + is_processed: true + triggered_at: triggered_at + commit_view_url: + valid: true + string: string + is_on_hold: true + started_on_worker_at: started_on_worker_at + pull_request_id: 1 + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + status_text: status_text + status: 5 + - environment_prepare_finished_at: environment_prepare_finished_at + finished_at: finished_at + commit_message: + valid: true + string: string + repository: + owner: + account_type: account_type + name: name + slug: slug + project_type: + valid: true + string: string + repo_url: + valid: true + string: string + is_disabled: true + title: title + avatar_url: + valid: true + string: string + provider: + valid: true + string: string + is_public: true + repo_slug: + valid: true + string: string + repo_owner: + valid: true + string: string + slug: slug + is_github_checks_enabled: true + status: 0 + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + commit_hash: + valid: true + string: string + pull_request_view_url: + valid: true + string: string + stack_identifier: + valid: true + string: string + pull_request_target_branch: + valid: true + string: string + machine_type_id: + valid: true + string: string + abort_reason: + valid: true + string: string + tag: + valid: true + string: string + slug: slug + original_build_params: + - 6 + - 6 + is_processed: true + triggered_at: triggered_at + commit_view_url: + valid: true + string: string + is_on_hold: true + started_on_worker_at: started_on_worker_at + pull_request_id: 1 + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + status_text: status_text + status: 5 + paging: "{}" + properties: + data: + items: + $ref: '#/components/schemas/v0.BuildListAllResponseItemModel' + type: array + paging: + allOf: + - $ref: '#/components/schemas/v0.PagingResponseModel' + description: pagination + type: object + type: object + v0.BuildListResponseModel: + example: + data: + - environment_prepare_finished_at: environment_prepare_finished_at + log_format: log_format + finished_at: finished_at + commit_message: + valid: true + string: string + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + commit_hash: + valid: true + string: string + pull_request_view_url: + valid: true + string: string + stack_identifier: + valid: true + string: string + is_status_sent: true + pull_request_target_branch: + valid: true + string: string + machine_type_id: + valid: true + string: string + abort_reason: + valid: true + string: string + tag: + valid: true + string: string + slug: slug + original_build_params: + - 1 + - 1 + is_processed: true + triggered_at: triggered_at + commit_view_url: + valid: true + string: string + is_on_hold: true + started_on_worker_at: started_on_worker_at + pipeline_workflow_id: pipeline_workflow_id + pull_request_id: 5 + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + status_text: status_text + status: 5 + - environment_prepare_finished_at: environment_prepare_finished_at + log_format: log_format + finished_at: finished_at + commit_message: + valid: true + string: string + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + commit_hash: + valid: true + string: string + pull_request_view_url: + valid: true + string: string + stack_identifier: + valid: true + string: string + is_status_sent: true + pull_request_target_branch: + valid: true + string: string + machine_type_id: + valid: true + string: string + abort_reason: + valid: true + string: string + tag: + valid: true + string: string + slug: slug + original_build_params: + - 1 + - 1 + is_processed: true + triggered_at: triggered_at + commit_view_url: + valid: true + string: string + is_on_hold: true + started_on_worker_at: started_on_worker_at + pipeline_workflow_id: pipeline_workflow_id + pull_request_id: 5 + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + status_text: status_text + status: 5 + paging: "{}" + properties: + data: + items: + $ref: '#/components/schemas/v0.BuildResponseItemModel' + type: array + paging: + allOf: + - $ref: '#/components/schemas/v0.PagingResponseModel' + description: pagination + type: object + type: object + v0.BuildParamsEnvironment: + properties: + is_expand: + type: boolean + mapped_to: + type: string + value: + type: string + type: object + v0.BuildRequestListResponseModel: + example: + data: + - build_params: + - 0 + - 0 + created_at: created_at + pull_request_url: pull_request_url + slug: slug + - build_params: + - 0 + - 0 + created_at: created_at + pull_request_url: pull_request_url + slug: slug + properties: + data: + items: + $ref: '#/components/schemas/v0.BuildRequestResponseItemModel' + type: array + type: object + v0.BuildRequestResponseItemModel: + example: + build_params: + - 0 + - 0 + created_at: created_at + pull_request_url: pull_request_url + slug: slug + properties: + build_params: + items: + type: integer + type: array + created_at: + type: string + pull_request_url: + type: string + slug: + type: string + type: object + v0.BuildRequestUpdateParams: + properties: + is_approved: + type: boolean + required: + - is_approved + type: object + v0.BuildRequestUpdateResponseModel: + example: + data: + build_params: + - 0 + - 0 + created_at: created_at + pull_request_url: pull_request_url + slug: slug + properties: + data: + $ref: '#/components/schemas/v0.BuildRequestResponseItemModel' + type: object + v0.BuildResponseItemModel: + example: + environment_prepare_finished_at: environment_prepare_finished_at + log_format: log_format + finished_at: finished_at + commit_message: + valid: true + string: string + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + commit_hash: + valid: true + string: string + pull_request_view_url: + valid: true + string: string + stack_identifier: + valid: true + string: string + is_status_sent: true + pull_request_target_branch: + valid: true + string: string + machine_type_id: + valid: true + string: string + abort_reason: + valid: true + string: string + tag: + valid: true + string: string + slug: slug + original_build_params: + - 1 + - 1 + is_processed: true + triggered_at: triggered_at + commit_view_url: + valid: true + string: string + is_on_hold: true + started_on_worker_at: started_on_worker_at + pipeline_workflow_id: pipeline_workflow_id + pull_request_id: 5 + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + status_text: status_text + status: 5 + properties: + abort_reason: + $ref: '#/components/schemas/nulls.String' + branch: + $ref: '#/components/schemas/nulls.String' + build_number: + type: integer + commit_hash: + $ref: '#/components/schemas/nulls.String' + commit_message: + $ref: '#/components/schemas/nulls.String' + commit_view_url: + $ref: '#/components/schemas/nulls.String' + credit_cost: + $ref: '#/components/schemas/nulls.Int64' + environment_prepare_finished_at: + type: string + finished_at: + type: string + is_on_hold: + type: boolean + is_processed: + type: boolean + is_status_sent: + type: boolean + log_format: + type: string + machine_type_id: + $ref: '#/components/schemas/nulls.String' + original_build_params: + items: + type: integer + type: array + pipeline_workflow_id: + type: string + pull_request_id: + type: integer + pull_request_target_branch: + $ref: '#/components/schemas/nulls.String' + pull_request_view_url: + $ref: '#/components/schemas/nulls.String' + slug: + type: string + stack_identifier: + $ref: '#/components/schemas/nulls.String' + started_on_worker_at: + type: string + status: + type: integer + status_text: + type: string + tag: + $ref: '#/components/schemas/nulls.String' + triggered_at: + type: string + triggered_by: + $ref: '#/components/schemas/nulls.String' + triggered_workflow: + type: string + type: object + v0.BuildShowResponseModel: + example: + data: + environment_prepare_finished_at: environment_prepare_finished_at + log_format: log_format + finished_at: finished_at + commit_message: + valid: true + string: string + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + commit_hash: + valid: true + string: string + pull_request_view_url: + valid: true + string: string + stack_identifier: + valid: true + string: string + is_status_sent: true + pull_request_target_branch: + valid: true + string: string + machine_type_id: + valid: true + string: string + abort_reason: + valid: true + string: string + tag: + valid: true + string: string + slug: slug + original_build_params: + - 1 + - 1 + is_processed: true + triggered_at: triggered_at + commit_view_url: + valid: true + string: string + is_on_hold: true + started_on_worker_at: started_on_worker_at + pipeline_workflow_id: pipeline_workflow_id + pull_request_id: 5 + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + status_text: status_text + status: 5 + properties: + data: + $ref: '#/components/schemas/v0.BuildResponseItemModel' + type: object + v0.BuildTriggerParams: + properties: + build_params: + allOf: + - $ref: '#/components/schemas/v0.BuildTriggerParamsBuildParams' + description: The public part of the SSH key you would like to use + type: object + hook_info: + $ref: '#/components/schemas/v0.BuildTriggerParamsHookInfo' + type: object + v0.BuildTriggerParamsBuildParams: + properties: + base_repository_url: + type: string + branch: + type: string + branch_dest: + type: string + branch_dest_repo_owner: + type: string + branch_repo_owner: + type: string + build_request_slug: + type: string + commit_hash: + type: string + commit_message: + type: string + commit_paths: + items: + $ref: '#/components/schemas/v0.CommitPaths' + type: array + diff_url: + type: string + environments: + items: + $ref: '#/components/schemas/v0.BuildParamsEnvironment' + type: array + head_repository_url: + type: string + pipeline_id: + type: string + pull_request_author: + type: string + pull_request_head_branch: + type: string + pull_request_id: + type: object + pull_request_merge_branch: + type: string + pull_request_repository_url: + type: string + pull_request_unverified_merge_branch: + type: string + skip_git_status_report: + type: boolean + tag: + type: string + workflow_id: + type: string + type: object + v0.BuildTriggerParamsHookInfo: + properties: + type: + description: Should be "bitrise" + example: bitrise + type: string + type: object + v0.BuildTriggerRespModel: + example: + service: service + triggered_workflow: triggered_workflow + build_number: 0 + build_slug: build_slug + message: message + build_url: build_url + slug: slug + status: status + properties: + build_number: + type: integer + build_slug: + type: string + build_url: + type: string + message: + type: string + service: + type: string + slug: + type: string + status: + type: string + triggered_workflow: + type: string + type: object + v0.BuildWorkflowListResponseModel: + example: + data: + - data + - data + properties: + data: + items: + type: string + type: array + type: object + v0.CacheItemDownloadResponseModel: + example: + data: + download_url: download_url + properties: + data: + $ref: '#/components/schemas/v0.CacheItemDownloadURLResponseModel' + type: object + v0.CacheItemDownloadURLResponseModel: + example: + download_url: download_url + properties: + download_url: + type: string + type: object + v0.CacheItemListResponseItemModel: + example: + archive_filename: archive_filename + archive_size: 0 + last_used_at: last_used_at + expires_at: expires_at + cache_key: cache_key + created_at: created_at + id: id + app_id: app_id + properties: + app_id: + type: string + archive_filename: + type: string + archive_size: + type: integer + cache_key: + type: string + created_at: + type: string + expires_at: + type: string + id: + type: string + last_used_at: + type: string + type: object + v0.CacheItemListResponseModel: + example: + data: + - archive_filename: archive_filename + archive_size: 0 + last_used_at: last_used_at + expires_at: expires_at + cache_key: cache_key + created_at: created_at + id: id + app_id: app_id + - archive_filename: archive_filename + archive_size: 0 + last_used_at: last_used_at + expires_at: expires_at + cache_key: cache_key + created_at: created_at + id: id + app_id: app_id + paging: + next: next + page_item_limit: 6 + total_item_count: 1 + properties: + data: + items: + $ref: '#/components/schemas/v0.CacheItemListResponseItemModel' + type: array + paging: + $ref: '#/components/schemas/v0.PagingResponseModel' + type: object + v0.CommitPaths: + properties: + added: + items: + type: string + type: array + modified: + items: + type: string + type: array + removed: + items: + type: string + type: array + type: object + v0.OrganizationDataModel: + example: + avatar_icon_url: + valid: true + string: string + name: name + owners: + - email: email + slug: slug + username: username + - email: email + slug: slug + username: username + concurrency_count: 0 + slug: slug + properties: + avatar_icon_url: + $ref: '#/components/schemas/nulls.String' + concurrency_count: + type: integer + name: + type: string + owners: + items: + $ref: '#/components/schemas/v0.OrganizationOwner' + type: array + slug: + type: string + type: object + v0.OrganizationListRespModel: + example: + data: + - avatar_icon_url: + valid: true + string: string + name: name + owners: + - email: email + slug: slug + username: username + - email: email + slug: slug + username: username + concurrency_count: 0 + slug: slug + - avatar_icon_url: + valid: true + string: string + name: name + owners: + - email: email + slug: slug + username: username + - email: email + slug: slug + username: username + concurrency_count: 0 + slug: slug + properties: + data: + items: + $ref: '#/components/schemas/v0.OrganizationDataModel' + type: array + type: object + v0.OrganizationOwner: + example: + email: email + slug: slug + username: username + properties: + email: + type: string + slug: + type: string + username: + type: string + type: object + v0.OrganizationRespModel: + example: + data: + avatar_icon_url: + valid: true + string: string + name: name + owners: + - email: email + slug: slug + username: username + - email: email + slug: slug + username: username + concurrency_count: 0 + slug: slug + properties: + data: + $ref: '#/components/schemas/v0.OrganizationDataModel' + type: object + v0.OrganizationUpdateMachineTypeParams: + properties: + from_machine: + description: Machine type to migrate from + type: string + to_machine: + description: Machine type to migrate to + type: string + type: object + v0.OrganizationUpdateMachineTypeResponse: + example: + message: message + errors: + - app: app + error: error + - app: app + error: error + migrated_apps: + - migrated_apps + - migrated_apps + properties: + errors: + items: + $ref: '#/components/schemas/v0_OrganizationUpdateMachineTypeResponse_errors_inner' + type: array + message: + description: The result of the migration + type: string + migrated_apps: + description: "The migrated apps' identifiers in the following format \"\ + #{app.title} (#{app.slug})\"" + items: + type: string + type: array + type: object + v0.OwnerAccountResponseModel: + example: + account_type: account_type + name: name + slug: slug + properties: + account_type: + type: string + name: + type: string + slug: + type: string + type: object + v0.OwnerAddOnResponseItemModel: + example: + summary: summary + is_beta: true + icon: icon + id: id + documentation_url: documentation_url + title: title + has_ui: true + apps: + - plan_started_at: plan_started_at + icon: + valid: true + string: string + title: title + plan: + features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + slug: slug + - plan_started_at: plan_started_at + icon: + valid: true + string: string + title: title + plan: + features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + slug: slug + properties: + apps: + items: + $ref: '#/components/schemas/v0.AddOnAppResponseItemModel' + type: array + documentation_url: + type: string + has_ui: + type: boolean + icon: + type: string + id: + type: string + is_beta: + type: boolean + summary: + type: string + title: + type: string + type: object + v0.OwnerAddOnsListResponseModel: + example: + data: + - summary: summary + is_beta: true + icon: icon + id: id + documentation_url: documentation_url + title: title + has_ui: true + apps: + - plan_started_at: plan_started_at + icon: + valid: true + string: string + title: title + plan: + features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + slug: slug + - plan_started_at: plan_started_at + icon: + valid: true + string: string + title: title + plan: + features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + slug: slug + - summary: summary + is_beta: true + icon: icon + id: id + documentation_url: documentation_url + title: title + has_ui: true + apps: + - plan_started_at: plan_started_at + icon: + valid: true + string: string + title: title + plan: + features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + slug: slug + - plan_started_at: plan_started_at + icon: + valid: true + string: string + title: title + plan: + features: + - quantity: quantity + available: true + description: description + - quantity: quantity + available: true + description: description + price: 0 + name: name + id: id + slug: slug + properties: + data: + items: + $ref: '#/components/schemas/v0.OwnerAddOnResponseItemModel' + type: array + type: object + v0.PagingResponseModel: + example: + next: next + page_item_limit: 6 + total_item_count: 1 + properties: + next: + description: |- + Next is the "anchor" for pagination. This value should be passed to the same endpoint + to get the next page. Empty/not included if there's no "next" page. + Stop paging when there's no "Next" item in the response! + type: string + page_item_limit: + description: |- + PageItemLimit - per-page item count. A given page might include + less items if there's not enough items. This value is the "max item count per page". + type: integer + total_item_count: + description: "TotalItemCount - total item count, through \"all pages\"" + type: integer + type: object + v0.PipelineAbortParams: + properties: + abort_reason: + type: string + abort_with_success: + type: boolean + skip_notifications: + type: boolean + required: + - abort_reason + - abort_with_success + - skip_notifications + type: object + v0.PipelineListAllResponseItemModel: + example: + is_processed: true + finished_at: finished_at + triggered_at: triggered_at + commit_message: + valid: true + string: string + is_on_hold: true + repository: + owner: + account_type: account_type + name: name + slug: slug + project_type: + valid: true + string: string + repo_url: + valid: true + string: string + is_disabled: true + title: title + avatar_url: + valid: true + string: string + provider: + valid: true + string: string + is_public: true + repo_slug: + valid: true + string: string + repo_owner: + valid: true + string: string + slug: slug + is_github_checks_enabled: true + status: 0 + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + pull_request_id: 6 + commit_hash: + valid: true + string: string + pull_request_target_branch: + valid: true + string: string + is_pipeline: true + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + started_at: started_at + tag: + valid: true + string: string + slug: slug + status: 1 + properties: + branch: + $ref: '#/components/schemas/nulls.String' + build_number: + type: integer + commit_hash: + $ref: '#/components/schemas/nulls.String' + commit_message: + $ref: '#/components/schemas/nulls.String' + credit_cost: + $ref: '#/components/schemas/nulls.Int64' + finished_at: + type: string + is_on_hold: + type: boolean + is_pipeline: + type: boolean + is_processed: + type: boolean + pull_request_id: + type: integer + pull_request_target_branch: + $ref: '#/components/schemas/nulls.String' + repository: + $ref: '#/components/schemas/v0.AppResponseItemModel' + slug: + type: string + started_at: + type: string + status: + type: integer + tag: + $ref: '#/components/schemas/nulls.String' + triggered_at: + type: string + triggered_by: + $ref: '#/components/schemas/nulls.String' + triggered_workflow: + type: string + type: object + v0.PipelineListAllResponseModel: + example: + data: + - is_processed: true + finished_at: finished_at + triggered_at: triggered_at + commit_message: + valid: true + string: string + is_on_hold: true + repository: + owner: + account_type: account_type + name: name + slug: slug + project_type: + valid: true + string: string + repo_url: + valid: true + string: string + is_disabled: true + title: title + avatar_url: + valid: true + string: string + provider: + valid: true + string: string + is_public: true + repo_slug: + valid: true + string: string + repo_owner: + valid: true + string: string + slug: slug + is_github_checks_enabled: true + status: 0 + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + pull_request_id: 6 + commit_hash: + valid: true + string: string + pull_request_target_branch: + valid: true + string: string + is_pipeline: true + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + started_at: started_at + tag: + valid: true + string: string + slug: slug + status: 1 + - is_processed: true + finished_at: finished_at + triggered_at: triggered_at + commit_message: + valid: true + string: string + is_on_hold: true + repository: + owner: + account_type: account_type + name: name + slug: slug + project_type: + valid: true + string: string + repo_url: + valid: true + string: string + is_disabled: true + title: title + avatar_url: + valid: true + string: string + provider: + valid: true + string: string + is_public: true + repo_slug: + valid: true + string: string + repo_owner: + valid: true + string: string + slug: slug + is_github_checks_enabled: true + status: 0 + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + pull_request_id: 6 + commit_hash: + valid: true + string: string + pull_request_target_branch: + valid: true + string: string + is_pipeline: true + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + started_at: started_at + tag: + valid: true + string: string + slug: slug + status: 1 + paging: + next: next + page_item_limit: 6 + total_item_count: 1 + properties: + data: + items: + $ref: '#/components/schemas/v0.PipelineListAllResponseItemModel' + type: array + paging: + $ref: '#/components/schemas/v0.PagingResponseModel' + type: object + v0.PipelineListResponseItemModel: + example: + is_processed: true + finished_at: finished_at + local_config: + host: host + username: username + triggered_at: triggered_at + build_tool_invocations: + - tool_version: tool_version + invocation_id: invocation_id + tool: tool + - tool_version: tool_version + invocation_id: invocation_id + tool: tool + commit_message: + valid: true + string: string + is_on_hold: true + trigger_params: + pull_request_merge_branch: pull_request_merge_branch + branch_dest: branch_dest + environments: + - value: "{}" + is_expand: "{}" + key: key + - value: "{}" + is_expand: "{}" + key: key + pull_request_head_branch: pull_request_head_branch + commit_message: commit_message + branch: branch + pull_request_author: pull_request_author + pull_request_id: "{}" + commit_hash: commit_hash + pull_request_unverified_merge_branch: pull_request_unverified_merge_branch + branch_dest_repo_owner: branch_dest_repo_owner + pull_request_repository_url: pull_request_repository_url + tag: "{}" + branch_repo_owner: branch_repo_owner + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + pull_request_id: 6 + commit_hash: + valid: true + string: string + pull_request_target_branch: + valid: true + string: string + is_pipeline: true + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + started_at: started_at + tag: + valid: true + string: string + slug: slug + artifacts: + - artifact_type: artifact_type + version_name: version_name + version_code: version_code + id: id + title: title + - artifact_type: artifact_type + version_name: version_name + version_code: version_code + id: id + title: title + status: 1 + properties: + artifacts: + items: + $ref: '#/components/schemas/pipelineabledomain.ArtifactMeta' + type: array + branch: + $ref: '#/components/schemas/nulls.String' + build_number: + type: integer + build_tool_invocations: + items: + $ref: '#/components/schemas/pipelineabledomain.BuildToolInvocation' + type: array + commit_hash: + $ref: '#/components/schemas/nulls.String' + commit_message: + $ref: '#/components/schemas/nulls.String' + credit_cost: + $ref: '#/components/schemas/nulls.Int64' + finished_at: + type: string + is_on_hold: + type: boolean + is_pipeline: + type: boolean + is_processed: + type: boolean + local_config: + $ref: '#/components/schemas/pipelineabledomain.LocalConfig' + pull_request_id: + type: integer + pull_request_target_branch: + $ref: '#/components/schemas/nulls.String' + slug: + type: string + started_at: + type: string + status: + type: integer + tag: + $ref: '#/components/schemas/nulls.String' + trigger_params: + $ref: '#/components/schemas/pipelineabledomain.TriggerParams' + triggered_at: + type: string + triggered_by: + $ref: '#/components/schemas/nulls.String' + triggered_workflow: + type: string + type: object + v0.PipelineListResponseModel: + example: + data: + - is_processed: true + finished_at: finished_at + local_config: + host: host + username: username + triggered_at: triggered_at + build_tool_invocations: + - tool_version: tool_version + invocation_id: invocation_id + tool: tool + - tool_version: tool_version + invocation_id: invocation_id + tool: tool + commit_message: + valid: true + string: string + is_on_hold: true + trigger_params: + pull_request_merge_branch: pull_request_merge_branch + branch_dest: branch_dest + environments: + - value: "{}" + is_expand: "{}" + key: key + - value: "{}" + is_expand: "{}" + key: key + pull_request_head_branch: pull_request_head_branch + commit_message: commit_message + branch: branch + pull_request_author: pull_request_author + pull_request_id: "{}" + commit_hash: commit_hash + pull_request_unverified_merge_branch: pull_request_unverified_merge_branch + branch_dest_repo_owner: branch_dest_repo_owner + pull_request_repository_url: pull_request_repository_url + tag: "{}" + branch_repo_owner: branch_repo_owner + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + pull_request_id: 6 + commit_hash: + valid: true + string: string + pull_request_target_branch: + valid: true + string: string + is_pipeline: true + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + started_at: started_at + tag: + valid: true + string: string + slug: slug + artifacts: + - artifact_type: artifact_type + version_name: version_name + version_code: version_code + id: id + title: title + - artifact_type: artifact_type + version_name: version_name + version_code: version_code + id: id + title: title + status: 1 + - is_processed: true + finished_at: finished_at + local_config: + host: host + username: username + triggered_at: triggered_at + build_tool_invocations: + - tool_version: tool_version + invocation_id: invocation_id + tool: tool + - tool_version: tool_version + invocation_id: invocation_id + tool: tool + commit_message: + valid: true + string: string + is_on_hold: true + trigger_params: + pull_request_merge_branch: pull_request_merge_branch + branch_dest: branch_dest + environments: + - value: "{}" + is_expand: "{}" + key: key + - value: "{}" + is_expand: "{}" + key: key + pull_request_head_branch: pull_request_head_branch + commit_message: commit_message + branch: branch + pull_request_author: pull_request_author + pull_request_id: "{}" + commit_hash: commit_hash + pull_request_unverified_merge_branch: pull_request_unverified_merge_branch + branch_dest_repo_owner: branch_dest_repo_owner + pull_request_repository_url: pull_request_repository_url + tag: "{}" + branch_repo_owner: branch_repo_owner + triggered_by: + valid: true + string: string + branch: + valid: true + string: string + pull_request_id: 6 + commit_hash: + valid: true + string: string + pull_request_target_branch: + valid: true + string: string + is_pipeline: true + credit_cost: + valid: true + int64: 6 + triggered_workflow: triggered_workflow + build_number: 0 + started_at: started_at + tag: + valid: true + string: string + slug: slug + artifacts: + - artifact_type: artifact_type + version_name: version_name + version_code: version_code + id: id + title: title + - artifact_type: artifact_type + version_name: version_name + version_code: version_code + id: id + title: title + status: 1 + paging: "{}" + properties: + data: + items: + $ref: '#/components/schemas/v0.PipelineListResponseItemModel' + type: array + paging: + allOf: + - $ref: '#/components/schemas/v0.PagingResponseModel' + description: pagination + type: object + type: object + v0.PipelineRebuildParams: + properties: + partial: + type: boolean + triggered_by: + type: string + type: object + v0.PipelineShowAppResponseModel: + example: + slug: slug + properties: + slug: + type: string + type: object + v0.PipelineShowAttemptResponseModel: + example: + number_in_pipeline_build_scope: 0 + triggered_at: triggered_at + id: id + status: status + properties: + id: + type: string + number_in_pipeline_build_scope: + type: integer + status: + type: string + triggered_at: + type: string + type: object + v0.PipelineShowEnvironmentsResponseModel: + example: + value: "{}" + is_expand: true + key: key + properties: + is_expand: + type: boolean + key: + type: string + value: + type: object + type: object + v0.PipelineShowResponseModel: + example: + app: + slug: slug + finished_at: finished_at + current_attempt_id: current_attempt_id + triggered_at: triggered_at + put_on_hold_at: "{}" + trigger_params: + pull_request_merge_branch: pull_request_merge_branch + branch_dest: branch_dest + environments: + - value: "{}" + is_expand: true + key: key + - value: "{}" + is_expand: true + key: key + pull_request_head_branch: pull_request_head_branch + commit_message: commit_message + branch: branch + pull_request_author: pull_request_author + pull_request_id: pull_request_id + commit_hash: commit_hash + pull_request_unverified_merge_branch: pull_request_unverified_merge_branch + branch_dest_repo_owner: branch_dest_repo_owner + pull_request_repository_url: pull_request_repository_url + tag: tag + branch_repo_owner: branch_repo_owner + triggered_by: triggered_by + credit_cost: "{}" + abort_reason: abort_reason + name: name + stages: + - name: name + id: id + workflows: + - finished_at: finished_at + credit_cost: "{}" + name: name + started_at: started_at + external_id: external_id + id: id + startFailureReason: startFailureReason + status: status + - finished_at: finished_at + credit_cost: "{}" + name: name + started_at: started_at + external_id: external_id + id: id + startFailureReason: startFailureReason + status: status + - name: name + id: id + workflows: + - finished_at: finished_at + credit_cost: "{}" + name: name + started_at: started_at + external_id: external_id + id: id + startFailureReason: startFailureReason + status: status + - finished_at: finished_at + credit_cost: "{}" + name: name + started_at: started_at + external_id: external_id + id: id + startFailureReason: startFailureReason + status: status + started_at: started_at + id: id + number_in_app_scope: 6 + attempts: + - number_in_pipeline_build_scope: 0 + triggered_at: triggered_at + id: id + status: status + - number_in_pipeline_build_scope: 0 + triggered_at: triggered_at + id: id + status: status + status: aborted + properties: + abort_reason: + type: string + app: + $ref: '#/components/schemas/v0.PipelineShowAppResponseModel' + attempts: + items: + $ref: '#/components/schemas/v0.PipelineShowAttemptResponseModel' + type: array + credit_cost: + type: object + current_attempt_id: + type: string + finished_at: + type: string + id: + type: string + name: + type: string + number_in_app_scope: + type: integer + put_on_hold_at: + type: object + stages: + items: + $ref: '#/components/schemas/v0.PipelineShowStageResponseModel' + type: array + started_at: + type: string + status: + enum: + - aborted + - failed + - initializing + - on_hold + - running + - succeeded + - succeeded_with_abort + type: string + trigger_params: + $ref: '#/components/schemas/v0.PipelineShowTriggerParamsResponseModel' + triggered_at: + type: string + triggered_by: + type: string + type: object + v0.PipelineShowStageResponseModel: + example: + name: name + id: id + workflows: + - finished_at: finished_at + credit_cost: "{}" + name: name + started_at: started_at + external_id: external_id + id: id + startFailureReason: startFailureReason + status: status + - finished_at: finished_at + credit_cost: "{}" + name: name + started_at: started_at + external_id: external_id + id: id + startFailureReason: startFailureReason + status: status + properties: + id: + type: string + name: + type: string + workflows: + items: + $ref: '#/components/schemas/v0.PipelineShowWorkflowResponseModel' + type: array + type: object + v0.PipelineShowTriggerParamsResponseModel: + example: + pull_request_merge_branch: pull_request_merge_branch + branch_dest: branch_dest + environments: + - value: "{}" + is_expand: true + key: key + - value: "{}" + is_expand: true + key: key + pull_request_head_branch: pull_request_head_branch + commit_message: commit_message + branch: branch + pull_request_author: pull_request_author + pull_request_id: pull_request_id + commit_hash: commit_hash + pull_request_unverified_merge_branch: pull_request_unverified_merge_branch + branch_dest_repo_owner: branch_dest_repo_owner + pull_request_repository_url: pull_request_repository_url + tag: tag + branch_repo_owner: branch_repo_owner + properties: + branch: + type: string + branch_dest: + type: string + branch_dest_repo_owner: + type: string + branch_repo_owner: + type: string + commit_hash: + type: string + commit_message: + type: string + environments: + items: + $ref: '#/components/schemas/v0.PipelineShowEnvironmentsResponseModel' + type: array + pull_request_author: + type: string + pull_request_head_branch: + type: string + pull_request_id: + type: string + pull_request_merge_branch: + type: string + pull_request_repository_url: + type: string + pull_request_unverified_merge_branch: + type: string + tag: + type: string + type: object + v0.PipelineShowWorkflowResponseModel: + example: + finished_at: finished_at + credit_cost: "{}" + name: name + started_at: started_at + external_id: external_id + id: id + startFailureReason: startFailureReason + status: status + properties: + credit_cost: + type: object + external_id: + type: string + finished_at: + type: string + id: + type: string + name: + type: string + startFailureReason: + type: string + started_at: + type: string + status: + type: string + type: object + v0.PlanDataModel: + example: + expires_at: expires_at + price: + valid: true + int64: 6 + name: name + id: id + container_count: 0 + properties: + container_count: + type: integer + expires_at: + type: string + id: + type: string + name: + type: string + price: + $ref: '#/components/schemas/nulls.Int64' + type: object + v0.ProjectFileStorageDocumentUpdateParams: + properties: + exposed_meta_datastore: + items: + type: integer + type: array + is_expose: + type: boolean + is_protected: + type: boolean + processed: + type: boolean + user_env_key: + type: string + type: object + v0.ProjectFileStorageListResponseModel: + example: + data: + - processed: true + download_url: download_url + is_expose: true + upload_file_name: upload_file_name + upload_url: upload_url + upload_file_size: 6 + user_env_key: user_env_key + exposed_meta_datastore: + - 0 + - 0 + is_protected: true + slug: slug + - processed: true + download_url: download_url + is_expose: true + upload_file_name: upload_file_name + upload_url: upload_url + upload_file_size: 6 + user_env_key: user_env_key + exposed_meta_datastore: + - 0 + - 0 + is_protected: true + slug: slug + paging: "{}" + properties: + data: + items: + $ref: '#/components/schemas/v0.ProjectFileStorageResponseItemModel' + type: array + paging: + allOf: + - $ref: '#/components/schemas/v0.PagingResponseModel' + description: pagination + type: object + type: object + v0.ProjectFileStorageResponseItemModel: + example: + processed: true + download_url: download_url + is_expose: true + upload_file_name: upload_file_name + upload_url: upload_url + upload_file_size: 6 + user_env_key: user_env_key + exposed_meta_datastore: + - 0 + - 0 + is_protected: true + slug: slug + properties: + download_url: + type: string + exposed_meta_datastore: + items: + type: integer + type: array + is_expose: + type: boolean + is_protected: + type: boolean + processed: + type: boolean + slug: + type: string + upload_file_name: + type: string + upload_file_size: + type: integer + upload_url: + type: string + user_env_key: + type: string + type: object + v0.ProjectFileStorageResponseModel: + example: + data: + processed: true + download_url: download_url + is_expose: true + upload_file_name: upload_file_name + upload_url: upload_url + upload_file_size: 6 + user_env_key: user_env_key + exposed_meta_datastore: + - 0 + - 0 + is_protected: true + slug: slug + properties: + data: + $ref: '#/components/schemas/v0.ProjectFileStorageResponseItemModel' + type: object + v0.ProjectFileStorageUploadParams: + properties: + upload_file_name: + type: string + upload_file_size: + type: integer + user_env_key: + type: string + required: + - upload_file_name + - upload_file_size + - user_env_key + type: object + v0.ProvProfileDocumentUpdateParams: + properties: + is_expose: + type: boolean + is_protected: + type: boolean + processed: + type: boolean + type: object + v0.ProvisionProfileListResponseModel: + example: + data: + - processed: true + download_url: download_url + is_expose: true + upload_file_name: upload_file_name + upload_url: upload_url + upload_file_size: 0 + is_protected: true + slug: slug + - processed: true + download_url: download_url + is_expose: true + upload_file_name: upload_file_name + upload_url: upload_url + upload_file_size: 0 + is_protected: true + slug: slug + paging: "{}" + properties: + data: + items: + $ref: '#/components/schemas/v0.ProvisionProfileResponseItemModel' + type: array + paging: + allOf: + - $ref: '#/components/schemas/v0.PagingResponseModel' + description: pagination + type: object + type: object + v0.ProvisionProfileResponseItemModel: + example: + processed: true + download_url: download_url + is_expose: true + upload_file_name: upload_file_name + upload_url: upload_url + upload_file_size: 0 + is_protected: true + slug: slug + properties: + download_url: + type: string + is_expose: + type: boolean + is_protected: + type: boolean + processed: + type: boolean + slug: + type: string + upload_file_name: + type: string + upload_file_size: + type: integer + upload_url: + type: string + type: object + v0.ProvisionProfileResponseModel: + example: + data: + processed: true + download_url: download_url + is_expose: true + upload_file_name: upload_file_name + upload_url: upload_url + upload_file_size: 0 + is_protected: true + slug: slug + properties: + data: + $ref: '#/components/schemas/v0.ProvisionProfileResponseItemModel' + type: object + v0.ProvisionProfileUploadParams: + properties: + upload_file_name: + type: string + upload_file_size: + type: integer + required: + - upload_file_name + - upload_file_size + type: object + v0.ReleaseCreateAppStoreParams: + properties: + automatic_testflight_upload: + description: "@Deprecated use `automatic_store_upload` instead. Indicates\ + \ whether or not to upload every release candidate build automatically\ + \ to TestFlight (default: `false`)" + type: boolean + bundle_id: + description: The bundle ID of the app to be released + type: string + description: + description: "An internal description of the release; it won't be propagated\ + \ to the App Store (default: empty)" + type: string + name: + description: The name/version of the release (e.g. `1.2`) + type: string + release_branch: + description: "The branch used for building the release candidate (default:\ + \ empty)" + type: string + slack_webhook_url: + description: "The Slack webhook URL to use for sending Slack notifications\ + \ (default: empty)" + type: string + teams_webhook_url: + description: "The Teams webhook URL to use for sending MS Teams notifications\ + \ (default: empty)" + type: string + workflow: + description: "The workflow used for building the release candidate (default:\ + \ empty)" + type: string + required: + - bundle_id + - name + type: object + v0.ReleaseCreateAppStoreRespModel: + example: + bundle_id: bundle_id + name: name + id: id + platform: platform + status: status + properties: + bundle_id: + description: The bundle ID of the app + type: string + id: + description: The ID of the newly created release + type: string + name: + description: The name/version of the release (e.g. `1.2`) + type: string + platform: + description: The platform of the release (`ios`) + type: string + status: + description: "The status of the newly created release (`scheduled` or `in-progress`,\ + \ depending on whether or not the release candidate settings were specified)" + type: string + type: object + v0.ReleaseCreateGooglePlayParams: + properties: + automatic_play_console_upload: + description: "Indicates whether or not to upload every release candidate\ + \ build automatically to the Google Play Console (default: `false`)" + type: boolean + description: + description: "An internal description of the release; it won't be propagated\ + \ to the App Store (default: empty)" + type: string + name: + description: The name/version of the release (e.g. `1.2`) + type: string + package_name: + description: The package name of the app to be released + type: string + release_branch: + description: "The branch used for building the release candidate (default:\ + \ empty)" + type: string + slack_webhook_url: + description: "The Slack webhook URL to use for sending Slack notifications\ + \ (default: empty)" + type: string + teams_webhook_url: + description: "The Teams webhook URL to use for sending MS Teams notifications\ + \ (default: empty)" + type: string + workflow: + description: "The workflow used for building the release candidate (default:\ + \ empty)" + type: string + required: + - name + - package_name + type: object + v0.ReleaseCreateGooglePlayRespModel: + example: + name: name + package_name: package_name + id: id + platform: platform + status: status + properties: + id: + description: The ID of the newly created release + type: string + name: + description: The name/version of the release (e.g. `1.2`) + type: string + package_name: + description: The package name of the app + type: string + platform: + description: The platform of the release (`android`) + type: string + status: + description: "The status of the newly created release (`scheduled` or `in-progress`,\ + \ depending on whether or not the release candidate settings were specified)" + type: string + type: object + v0.SSHKeyRespModel: + example: + status: status + properties: + status: + type: string + type: object + v0.SSHKeyUploadParams: + properties: + auth_ssh_private_key: + description: The private part of the SSH key you would like to use + type: string + auth_ssh_public_key: + description: The public part of the SSH key you would like to use + type: string + is_register_key_into_provider_service: + description: "If it's set to true, the provided SSH key will be registered\ + \ at the provider of the application" + type: boolean + required: + - auth_ssh_private_key + - auth_ssh_public_key + type: object + v0.TestDeviceListResponseModel: + example: + data: + - owner: owner + device_id: device_id + device_type: device_type + - owner: owner + device_id: device_id + device_type: device_type + properties: + data: + items: + $ref: '#/components/schemas/v0.TestDeviceResponseItemModel' + type: array + type: object + v0.TestDeviceResponseItemModel: + example: + owner: owner + device_id: device_id + device_type: device_type + properties: + device_id: + type: string + device_type: + type: string + owner: + type: string + type: object + v0.UserPlanDataModel: + example: + current_plan: + expires_at: expires_at + price: + valid: true + int64: 6 + name: name + id: id + container_count: 0 + pending_plan: + expires_at: expires_at + price: + valid: true + int64: 6 + name: name + id: id + container_count: 0 + trial_expires_at: trial_expires_at + properties: + current_plan: + $ref: '#/components/schemas/v0.PlanDataModel' + pending_plan: + $ref: '#/components/schemas/v0.PlanDataModel' + trial_expires_at: + type: string + type: object + v0.UserPlanRespModel: + example: + data: + current_plan: + expires_at: expires_at + price: + valid: true + int64: 6 + name: name + id: id + container_count: 0 + pending_plan: + expires_at: expires_at + price: + valid: true + int64: 6 + name: name + id: id + container_count: 0 + trial_expires_at: trial_expires_at + properties: + data: + $ref: '#/components/schemas/v0.UserPlanDataModel' + type: object + v0.UserProfileDataModel: + example: + unconfirmed_email: unconfirmed_email + avatar_url: avatar_url + data_id: 0 + created_at: created_at + payment_processor: payment_processor + email: email + slug: slug + has_used_organization_trial: true + username: username + properties: + avatar_url: + type: string + created_at: + type: string + data_id: + type: integer + email: + type: string + has_used_organization_trial: + type: boolean + payment_processor: + type: string + slug: + type: string + unconfirmed_email: + type: string + username: + type: string + type: object + v0.UserProfileRespModel: + example: + data: + unconfirmed_email: unconfirmed_email + avatar_url: avatar_url + data_id: 0 + created_at: created_at + payment_processor: payment_processor + email: email + slug: slug + has_used_organization_trial: true + username: username + properties: + data: + $ref: '#/components/schemas/v0.UserProfileDataModel' + type: object + v0.WebhookDeliveryItemResponseModel: + example: + response_seconds: + valid: true + int64: 6 + response_headers: + valid: true + string: string + updated_at: updated_at + response_http_status: + valid: true + int64: 6 + request_headers: request_headers + created_at: created_at + response_body: + valid: true + string: string + request_payload: request_payload + request_url: request_url + slug: slug + properties: + created_at: + type: string + request_headers: + type: string + request_payload: + type: string + request_url: + type: string + response_body: + $ref: '#/components/schemas/nulls.String' + response_headers: + $ref: '#/components/schemas/nulls.String' + response_http_status: + $ref: '#/components/schemas/nulls.Int64' + response_seconds: + $ref: '#/components/schemas/nulls.Int64' + slug: + type: string + updated_at: + type: string + type: object + v0.WebhookDeliveryItemShowResponseModel: + example: + data: + response_seconds: + valid: true + int64: 6 + response_headers: + valid: true + string: string + updated_at: updated_at + response_http_status: + valid: true + int64: 6 + request_headers: request_headers + created_at: created_at + response_body: + valid: true + string: string + request_payload: request_payload + request_url: request_url + slug: slug + properties: + data: + $ref: '#/components/schemas/v0.WebhookDeliveryItemResponseModel' + type: object + v0.WebhookRespModel: + example: + status: status + properties: + status: + type: string + type: object + website.BitriseYMLLocation: + enum: + - bitrise.io + - repository + type: string + x-enum-varnames: + - LocationBitriseIo + - LocationRepository + app_roles_query_200_response: + allOf: + - type: object + - properties: + groups: + items: + type: string + type: array + type: object + organzation_groups_list_200_response_inner: + allOf: + - properties: {} + type: object + - properties: + name: + type: string + slug: + type: string + type: object + type: object + v0_OrganizationUpdateMachineTypeResponse_errors_inner: + example: + app: app + error: error + properties: + app: + description: "The apps which had an error's identifiers in the following\ + \ format \"#{app.title} (#{app.slug})\"" + type: string + error: + type: string + type: object + securitySchemes: + AddonAuthToken: + in: header + name: Bitrise-Addon-Auth-Token + type: apiKey + PersonalAccessToken: + in: header + name: Authorization + type: apiKey +x-original-swagger-version: "2.0" diff --git a/go2/api_activity.go b/go2/api_activity.go new file mode 100644 index 0000000..50acb29 --- /dev/null +++ b/go2/api_activity.go @@ -0,0 +1,200 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// ActivityAPIService ActivityAPI service +type ActivityAPIService service + +type ApiActivityListRequest struct { + ctx context.Context + ApiService *ActivityAPIService + next *string + limit *int32 +} + +// Slug of the first activity event in the response +func (r ApiActivityListRequest) Next(next string) ApiActivityListRequest { + r.next = &next + return r +} + +// Max number of elements per page (default: 50) +func (r ApiActivityListRequest) Limit(limit int32) ApiActivityListRequest { + r.limit = &limit + return r +} + +func (r ApiActivityListRequest) Execute() (*V0ActivityEventListResponseModel, *http.Response, error) { + return r.ApiService.ActivityListExecute(r) +} + +/* +ActivityList Get list of Bitrise activity events + +List all the Bitrise activity events + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiActivityListRequest +*/ +func (a *ActivityAPIService) ActivityList(ctx context.Context) ApiActivityListRequest { + return ApiActivityListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V0ActivityEventListResponseModel +func (a *ActivityAPIService) ActivityListExecute(r ApiActivityListRequest) (*V0ActivityEventListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ActivityEventListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityAPIService.ActivityList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/me/activities" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_addons.go b/go2/api_addons.go new file mode 100644 index 0000000..c9b59e7 --- /dev/null +++ b/go2/api_addons.go @@ -0,0 +1,807 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// AddonsAPIService AddonsAPI service +type AddonsAPIService service + +type ApiAddonListByAppRequest struct { + ctx context.Context + ApiService *AddonsAPIService + appSlug string +} + +func (r ApiAddonListByAppRequest) Execute() (*V0AppAddOnsListResponseModel, *http.Response, error) { + return r.ApiService.AddonListByAppExecute(r) +} + +/* +AddonListByApp Get list of the addons for apps + +List all the provisioned addons for the authorized apps + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAddonListByAppRequest +*/ +func (a *AddonsAPIService) AddonListByApp(ctx context.Context, appSlug string) ApiAddonListByAppRequest { + return ApiAddonListByAppRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0AppAddOnsListResponseModel +func (a *AddonsAPIService) AddonListByAppExecute(r ApiAddonListByAppRequest) (*V0AppAddOnsListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppAddOnsListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AddonsAPIService.AddonListByApp") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/addons" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAddonListByOrganizationRequest struct { + ctx context.Context + ApiService *AddonsAPIService + organizationSlug string +} + +func (r ApiAddonListByOrganizationRequest) Execute() (*V0OwnerAddOnsListResponseModel, *http.Response, error) { + return r.ApiService.AddonListByOrganizationExecute(r) +} + +/* +AddonListByOrganization Get list of the addons for organization + +List all the provisioned addons for organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param organizationSlug Organization slug + @return ApiAddonListByOrganizationRequest +*/ +func (a *AddonsAPIService) AddonListByOrganization(ctx context.Context, organizationSlug string) ApiAddonListByOrganizationRequest { + return ApiAddonListByOrganizationRequest{ + ApiService: a, + ctx: ctx, + organizationSlug: organizationSlug, + } +} + +// Execute executes the request +// @return V0OwnerAddOnsListResponseModel +func (a *AddonsAPIService) AddonListByOrganizationExecute(r ApiAddonListByOrganizationRequest) (*V0OwnerAddOnsListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0OwnerAddOnsListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AddonsAPIService.AddonListByOrganization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/organizations/{organization-slug}/addons" + localVarPath = strings.Replace(localVarPath, "{"+"organization-slug"+"}", url.PathEscape(parameterValueToString(r.organizationSlug, "organizationSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAddonListByUserRequest struct { + ctx context.Context + ApiService *AddonsAPIService + userSlug string +} + +func (r ApiAddonListByUserRequest) Execute() (*V0OwnerAddOnsListResponseModel, *http.Response, error) { + return r.ApiService.AddonListByUserExecute(r) +} + +/* +AddonListByUser Get list of the addons for user + +List all the provisioned addons for the authenticated user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userSlug User slug + @return ApiAddonListByUserRequest +*/ +func (a *AddonsAPIService) AddonListByUser(ctx context.Context, userSlug string) ApiAddonListByUserRequest { + return ApiAddonListByUserRequest{ + ApiService: a, + ctx: ctx, + userSlug: userSlug, + } +} + +// Execute executes the request +// @return V0OwnerAddOnsListResponseModel +func (a *AddonsAPIService) AddonListByUserExecute(r ApiAddonListByUserRequest) (*V0OwnerAddOnsListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0OwnerAddOnsListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AddonsAPIService.AddonListByUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/{user-slug}/addons" + localVarPath = strings.Replace(localVarPath, "{"+"user-slug"+"}", url.PathEscape(parameterValueToString(r.userSlug, "userSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAddonsListRequest struct { + ctx context.Context + ApiService *AddonsAPIService +} + +func (r ApiAddonsListRequest) Execute() (*V0AddonsListResponseModel, *http.Response, error) { + return r.ApiService.AddonsListExecute(r) +} + +/* +AddonsList Get list of available Bitrise addons + +List all the available Bitrise addons + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddonsListRequest +*/ +func (a *AddonsAPIService) AddonsList(ctx context.Context) ApiAddonsListRequest { + return ApiAddonsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V0AddonsListResponseModel +func (a *AddonsAPIService) AddonsListExecute(r ApiAddonsListRequest) (*V0AddonsListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AddonsListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AddonsAPIService.AddonsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/addons" + + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAddonsShowRequest struct { + ctx context.Context + ApiService *AddonsAPIService + addonId string +} + +func (r ApiAddonsShowRequest) Execute() (*V0AddonsShowResponseModel, *http.Response, error) { + return r.ApiService.AddonsShowExecute(r) +} + +/* +AddonsShow Get a specific Bitrise addon + +Show details of a specific Bitrise addon + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param addonId Addon ID + @return ApiAddonsShowRequest +*/ +func (a *AddonsAPIService) AddonsShow(ctx context.Context, addonId string) ApiAddonsShowRequest { + return ApiAddonsShowRequest{ + ApiService: a, + ctx: ctx, + addonId: addonId, + } +} + +// Execute executes the request +// @return V0AddonsShowResponseModel +func (a *AddonsAPIService) AddonsShowExecute(r ApiAddonsShowRequest) (*V0AddonsShowResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AddonsShowResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AddonsAPIService.AddonsShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/addons/{addon-id}" + localVarPath = strings.Replace(localVarPath, "{"+"addon-id"+"}", url.PathEscape(parameterValueToString(r.addonId, "addonId")), -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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_android_keystore_file.go b/go2/api_android_keystore_file.go new file mode 100644 index 0000000..1c3f6e2 --- /dev/null +++ b/go2/api_android_keystore_file.go @@ -0,0 +1,719 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// AndroidKeystoreFileAPIService AndroidKeystoreFileAPI service +type AndroidKeystoreFileAPIService service + +type ApiAndroidKeystoreFileConfirmRequest struct { + ctx context.Context + ApiService *AndroidKeystoreFileAPIService + appSlug string + androidKeystoreFileSlug string +} + +func (r ApiAndroidKeystoreFileConfirmRequest) Execute() (*V0ProjectFileStorageResponseModel, *http.Response, error) { + return r.ApiService.AndroidKeystoreFileConfirmExecute(r) +} + +/* +AndroidKeystoreFileConfirm Confirm an android keystore file upload + +This is the last step of uploading an android keystore file to Bitrise. Confirm the android keystore file upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the upload](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#confirming-the-file-upload) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param androidKeystoreFileSlug Android keystore file slug + @return ApiAndroidKeystoreFileConfirmRequest +*/ +func (a *AndroidKeystoreFileAPIService) AndroidKeystoreFileConfirm(ctx context.Context, appSlug string, androidKeystoreFileSlug string) ApiAndroidKeystoreFileConfirmRequest { + return ApiAndroidKeystoreFileConfirmRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + androidKeystoreFileSlug: androidKeystoreFileSlug, + } +} + +// Execute executes the request +// @return V0ProjectFileStorageResponseModel +func (a *AndroidKeystoreFileAPIService) AndroidKeystoreFileConfirmExecute(r ApiAndroidKeystoreFileConfirmRequest) (*V0ProjectFileStorageResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProjectFileStorageResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AndroidKeystoreFileAPIService.AndroidKeystoreFileConfirm") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"android-keystore-file-slug"+"}", url.PathEscape(parameterValueToString(r.androidKeystoreFileSlug, "androidKeystoreFileSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAndroidKeystoreFileCreateRequest struct { + ctx context.Context + ApiService *AndroidKeystoreFileAPIService + appSlug string + androidKeystoreFile *V0AndroidKeystoreFileUploadParams +} + +// Android keystore file parameters +func (r ApiAndroidKeystoreFileCreateRequest) AndroidKeystoreFile(androidKeystoreFile V0AndroidKeystoreFileUploadParams) ApiAndroidKeystoreFileCreateRequest { + r.androidKeystoreFile = &androidKeystoreFile + return r +} + +func (r ApiAndroidKeystoreFileCreateRequest) Execute() (*V0ProjectFileStorageResponseModel, *http.Response, error) { + return r.ApiService.AndroidKeystoreFileCreateExecute(r) +} + +/* +AndroidKeystoreFileCreate Create an Android keystore file + +Add a new Android keystore file to an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAndroidKeystoreFileCreateRequest +*/ +func (a *AndroidKeystoreFileAPIService) AndroidKeystoreFileCreate(ctx context.Context, appSlug string) ApiAndroidKeystoreFileCreateRequest { + return ApiAndroidKeystoreFileCreateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0ProjectFileStorageResponseModel +func (a *AndroidKeystoreFileAPIService) AndroidKeystoreFileCreateExecute(r ApiAndroidKeystoreFileCreateRequest) (*V0ProjectFileStorageResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProjectFileStorageResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AndroidKeystoreFileAPIService.AndroidKeystoreFileCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/android-keystore-files" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.androidKeystoreFile == nil { + return localVarReturnValue, nil, reportError("androidKeystoreFile 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.androidKeystoreFile + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAndroidKeystoreFileDeleteRequest struct { + ctx context.Context + ApiService *AndroidKeystoreFileAPIService + appSlug string + androidKeystoreFileSlug string +} + +func (r ApiAndroidKeystoreFileDeleteRequest) Execute() (*V0ProjectFileStorageResponseModel, *http.Response, error) { + return r.ApiService.AndroidKeystoreFileDeleteExecute(r) +} + +/* +AndroidKeystoreFileDelete Delete an android keystore file + +Delete an app's android keystore file. You can fetch an app's android keystore file slug if you first list all the uploaded files with the [GET /apps/{app-slug}/android-keystore-files](https://api-docs.bitrise.io/#/android-keystore-file/android-keystore-file-list) endpoint. Read more in our [Deleting a file](https://devcenter.bitrise.io/api/managing-android-keystore-files.html) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param androidKeystoreFileSlug Android keystore file slug + @return ApiAndroidKeystoreFileDeleteRequest +*/ +func (a *AndroidKeystoreFileAPIService) AndroidKeystoreFileDelete(ctx context.Context, appSlug string, androidKeystoreFileSlug string) ApiAndroidKeystoreFileDeleteRequest { + return ApiAndroidKeystoreFileDeleteRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + androidKeystoreFileSlug: androidKeystoreFileSlug, + } +} + +// Execute executes the request +// @return V0ProjectFileStorageResponseModel +func (a *AndroidKeystoreFileAPIService) AndroidKeystoreFileDeleteExecute(r ApiAndroidKeystoreFileDeleteRequest) (*V0ProjectFileStorageResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProjectFileStorageResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AndroidKeystoreFileAPIService.AndroidKeystoreFileDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/android-keystore-files/{android-keystore-file-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"android-keystore-file-slug"+"}", url.PathEscape(parameterValueToString(r.androidKeystoreFileSlug, "androidKeystoreFileSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAndroidKeystoreFileListRequest struct { + ctx context.Context + ApiService *AndroidKeystoreFileAPIService + appSlug string + next *string + limit *int32 +} + +// Slug of the first android keystore file in the response +func (r ApiAndroidKeystoreFileListRequest) Next(next string) ApiAndroidKeystoreFileListRequest { + r.next = &next + return r +} + +// Max number of build certificates per page is 50. +func (r ApiAndroidKeystoreFileListRequest) Limit(limit int32) ApiAndroidKeystoreFileListRequest { + r.limit = &limit + return r +} + +func (r ApiAndroidKeystoreFileListRequest) Execute() (*V0ProjectFileStorageListResponseModel, *http.Response, error) { + return r.ApiService.AndroidKeystoreFileListExecute(r) +} + +/* +AndroidKeystoreFileList Get a list of the android keystore files + +List all the android keystore files that have been uploaded to a specific app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAndroidKeystoreFileListRequest +*/ +func (a *AndroidKeystoreFileAPIService) AndroidKeystoreFileList(ctx context.Context, appSlug string) ApiAndroidKeystoreFileListRequest { + return ApiAndroidKeystoreFileListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0ProjectFileStorageListResponseModel +func (a *AndroidKeystoreFileAPIService) AndroidKeystoreFileListExecute(r ApiAndroidKeystoreFileListRequest) (*V0ProjectFileStorageListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProjectFileStorageListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AndroidKeystoreFileAPIService.AndroidKeystoreFileList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/android-keystore-files" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_app_setup.go b/go2/api_app_setup.go new file mode 100644 index 0000000..e3e883a --- /dev/null +++ b/go2/api_app_setup.go @@ -0,0 +1,1190 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// AppSetupAPIService AppSetupAPI service +type AppSetupAPIService service + +type ApiAppConfigCreateRequest struct { + ctx context.Context + ApiService *AppSetupAPIService + appSlug string + appConfig *V0AppConfigRequestParam +} + +// App config parameters +func (r ApiAppConfigCreateRequest) AppConfig(appConfig V0AppConfigRequestParam) ApiAppConfigCreateRequest { + r.appConfig = &appConfig + return r +} + +func (r ApiAppConfigCreateRequest) Execute() (map[string]string, *http.Response, error) { + return r.ApiService.AppConfigCreateExecute(r) +} + +/* +AppConfigCreate Upload a new bitrise.yml for your application. + +Upload a new bitrise.yml for your application. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAppConfigCreateRequest +*/ +func (a *AppSetupAPIService) AppConfigCreate(ctx context.Context, appSlug string) ApiAppConfigCreateRequest { + return ApiAppConfigCreateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return map[string]string +func (a *AppSetupAPIService) AppConfigCreateExecute(r ApiAppConfigCreateRequest) (map[string]string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue map[string]string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppSetupAPIService.AppConfigCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/bitrise.yml" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.appConfig == nil { + return localVarReturnValue, nil, reportError("appConfig 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.appConfig + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceProxyErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppCreateRequest struct { + ctx context.Context + ApiService *AppSetupAPIService + app *V0AppUploadParams +} + +// App parameters +func (r ApiAppCreateRequest) App(app V0AppUploadParams) ApiAppCreateRequest { + r.app = &app + return r +} + +func (r ApiAppCreateRequest) Execute() (*V0AppRespModel, *http.Response, error) { + return r.ApiService.AppCreateExecute(r) +} + +/* +AppCreate Add a new app + +Add a new app to Bitrise. This is the first step of the app registration process. To successfully set it up, you need to provide the required app parameters: the repository URL and the isPublic field. Read more about the app creation process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAppCreateRequest +*/ +func (a *AppSetupAPIService) AppCreate(ctx context.Context) ApiAppCreateRequest { + return ApiAppCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V0AppRespModel +func (a *AppSetupAPIService) AppCreateExecute(r ApiAppCreateRequest) (*V0AppRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppSetupAPIService.AppCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/register" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.app == nil { + return localVarReturnValue, nil, reportError("app 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.app + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceProxyErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceProxyErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceProxyErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceProxyErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppFinishRequest struct { + ctx context.Context + ApiService *AppSetupAPIService + appSlug string + app *V0AppFinishParams +} + +// App finish parameters +func (r ApiAppFinishRequest) App(app V0AppFinishParams) ApiAppFinishRequest { + r.app = &app + return r +} + +func (r ApiAppFinishRequest) Execute() (*V0AppFinishRespModel, *http.Response, error) { + return r.ApiService.AppFinishExecute(r) +} + +/* +AppFinish Save the application at the end of the app registration process + +Save the application after registering it on Bitrise and registering an SSH key (and, optionally, adding a webhook). With this endpoint you can define the initial configuration, define application-level environment variables, determine the project type, and set an Organization to be the owner of the app. Read more about the app registration process in our [detailed guide](https://devcenter.bitrise.io/api/adding-and-managing-apps/#adding-a-new-app). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAppFinishRequest +*/ +func (a *AppSetupAPIService) AppFinish(ctx context.Context, appSlug string) ApiAppFinishRequest { + return ApiAppFinishRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0AppFinishRespModel +func (a *AppSetupAPIService) AppFinishExecute(r ApiAppFinishRequest) (*V0AppFinishRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppFinishRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppSetupAPIService.AppFinish") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/finish" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.app == nil { + return localVarReturnValue, nil, reportError("app 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.app + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppSetupBitriseYmlConfigGetRequest struct { + ctx context.Context + ApiService *AppSetupAPIService + appSlug string +} + +func (r ApiAppSetupBitriseYmlConfigGetRequest) Execute() (*V0BitriseYMLConfigGetResponse, *http.Response, error) { + return r.ApiService.AppSetupBitriseYmlConfigGetExecute(r) +} + +/* +AppSetupBitriseYmlConfigGet Getting the location of the application's bitrise.yaml + +Getting the location of the application's bitrise.yaml. Requires administrator level privileges to the app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAppSetupBitriseYmlConfigGetRequest +*/ +func (a *AppSetupAPIService) AppSetupBitriseYmlConfigGet(ctx context.Context, appSlug string) ApiAppSetupBitriseYmlConfigGetRequest { + return ApiAppSetupBitriseYmlConfigGetRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0BitriseYMLConfigGetResponse +func (a *AppSetupAPIService) AppSetupBitriseYmlConfigGetExecute(r ApiAppSetupBitriseYmlConfigGetRequest) (*V0BitriseYMLConfigGetResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BitriseYMLConfigGetResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppSetupAPIService.AppSetupBitriseYmlConfigGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/bitrise.yml/config" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppSetupBitriseYmlConfigUpdateRequest struct { + ctx context.Context + ApiService *AppSetupAPIService + appSlug string + app *V0BitriseYMLConfigUpdateParams +} + +// Bitrise YML Config Update Params +func (r ApiAppSetupBitriseYmlConfigUpdateRequest) App(app V0BitriseYMLConfigUpdateParams) ApiAppSetupBitriseYmlConfigUpdateRequest { + r.app = &app + return r +} + +func (r ApiAppSetupBitriseYmlConfigUpdateRequest) Execute() (*http.Response, error) { + return r.ApiService.AppSetupBitriseYmlConfigUpdateExecute(r) +} + +/* +AppSetupBitriseYmlConfigUpdate Changing the location of the application's bitrise.yaml + +Changing the location of the application's bitrise.yaml. Requires administrator level privileges to the app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAppSetupBitriseYmlConfigUpdateRequest +*/ +func (a *AppSetupAPIService) AppSetupBitriseYmlConfigUpdate(ctx context.Context, appSlug string) ApiAppSetupBitriseYmlConfigUpdateRequest { + return ApiAppSetupBitriseYmlConfigUpdateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +func (a *AppSetupAPIService) AppSetupBitriseYmlConfigUpdateExecute(r ApiAppSetupBitriseYmlConfigUpdateRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppSetupAPIService.AppSetupBitriseYmlConfigUpdate") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/bitrise.yml/config" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.app == nil { + return nil, reportError("app 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.app + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiAppWebhookCreateRequest struct { + ctx context.Context + ApiService *AppSetupAPIService + appSlug string +} + +func (r ApiAppWebhookCreateRequest) Execute() (*V0WebhookRespModel, *http.Response, error) { + return r.ApiService.AppWebhookCreateExecute(r) +} + +/* +AppWebhookCreate Register an incoming webhook for a specific application + +[Register an incoming webhook](https://devcenter.bitrise.io/api/incoming-and-outgoing-webhooks/#incoming-webhooks) for a specific application. You can do this during the app registration process or at any other time in an app's life. When calling this endpoint, a webhook is registered at your git provider: this is necessary to automatically trigger builds on Bitrise. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAppWebhookCreateRequest +*/ +func (a *AppSetupAPIService) AppWebhookCreate(ctx context.Context, appSlug string) ApiAppWebhookCreateRequest { + return ApiAppWebhookCreateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0WebhookRespModel +func (a *AppSetupAPIService) AppWebhookCreateExecute(r ApiAppWebhookCreateRequest) (*V0WebhookRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0WebhookRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppSetupAPIService.AppWebhookCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/register-webhook" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiSshKeyCreateRequest struct { + ctx context.Context + ApiService *AppSetupAPIService + appSlug string + sshKey *V0SSHKeyUploadParams +} + +// SSH key parameters +func (r ApiSshKeyCreateRequest) SshKey(sshKey V0SSHKeyUploadParams) ApiSshKeyCreateRequest { + r.sshKey = &sshKey + return r +} + +func (r ApiSshKeyCreateRequest) Execute() (*V0SSHKeyRespModel, *http.Response, error) { + return r.ApiService.SshKeyCreateExecute(r) +} + +/* +SshKeyCreate Add an SSH-key to a specific app + +Add an SSH-key to a specific app. After creating an app, you need to register the SSH key so that Bitrise will be able to access and clone your repository during the build process. This requires the app slug of your newly created app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiSshKeyCreateRequest +*/ +func (a *AppSetupAPIService) SshKeyCreate(ctx context.Context, appSlug string) ApiSshKeyCreateRequest { + return ApiSshKeyCreateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0SSHKeyRespModel +func (a *AppSetupAPIService) SshKeyCreateExecute(r ApiSshKeyCreateRequest) (*V0SSHKeyRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0SSHKeyRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppSetupAPIService.SshKeyCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/register-ssh-key" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.sshKey == nil { + return localVarReturnValue, nil, reportError("sshKey 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.sshKey + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_apple_api_credentials.go b/go2/api_apple_api_credentials.go new file mode 100644 index 0000000..3c1900d --- /dev/null +++ b/go2/api_apple_api_credentials.go @@ -0,0 +1,185 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// AppleApiCredentialsAPIService AppleApiCredentialsAPI service +type AppleApiCredentialsAPIService service + +type ApiAppleApiCredentialListRequest struct { + ctx context.Context + ApiService *AppleApiCredentialsAPIService + userSlug string +} + +func (r ApiAppleApiCredentialListRequest) Execute() (*V0AppleAPICredentialsListResponse, *http.Response, error) { + return r.ApiService.AppleApiCredentialListExecute(r) +} + +/* +AppleApiCredentialList List Apple API credentials for a specific user + +List Apple API credentials for a specific Bitrise user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userSlug User slug + @return ApiAppleApiCredentialListRequest +*/ +func (a *AppleApiCredentialsAPIService) AppleApiCredentialList(ctx context.Context, userSlug string) ApiAppleApiCredentialListRequest { + return ApiAppleApiCredentialListRequest{ + ApiService: a, + ctx: ctx, + userSlug: userSlug, + } +} + +// Execute executes the request +// @return V0AppleAPICredentialsListResponse +func (a *AppleApiCredentialsAPIService) AppleApiCredentialListExecute(r ApiAppleApiCredentialListRequest) (*V0AppleAPICredentialsListResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppleAPICredentialsListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AppleApiCredentialsAPIService.AppleApiCredentialList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/{user-slug}/apple-api-credentials" + localVarPath = strings.Replace(localVarPath, "{"+"user-slug"+"}", url.PathEscape(parameterValueToString(r.userSlug, "userSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_application.go b/go2/api_application.go new file mode 100644 index 0000000..f423a13 --- /dev/null +++ b/go2/api_application.go @@ -0,0 +1,1949 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// ApplicationAPIService ApplicationAPI service +type ApplicationAPIService service + +type ApiAppConfigDatastoreShowRequest struct { + ctx context.Context + ApiService *ApplicationAPIService + appSlug string +} + +func (r ApiAppConfigDatastoreShowRequest) Execute() (string, *http.Response, error) { + return r.ApiService.AppConfigDatastoreShowExecute(r) +} + +/* +AppConfigDatastoreShow Get bitrise.yml of a specific app + +Get the full `bitrise.yml` configuration of an application, by providing the app slug. It returns the current `bitrise.yml` that is stored on bitrise.io in full, including the trigger map, the different workflows and the Steps. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAppConfigDatastoreShowRequest +*/ +func (a *ApplicationAPIService) AppConfigDatastoreShow(ctx context.Context, appSlug string) ApiAppConfigDatastoreShowRequest { + return ApiAppConfigDatastoreShowRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return string +func (a *ApplicationAPIService) AppConfigDatastoreShowExecute(r ApiAppConfigDatastoreShowRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationAPIService.AppConfigDatastoreShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/bitrise.yml" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -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{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppDeleteRequest struct { + ctx context.Context + ApiService *ApplicationAPIService + appSlug string +} + +func (r ApiAppDeleteRequest) Execute() (*V0AppDeleteRespModel, *http.Response, error) { + return r.ApiService.AppDeleteExecute(r) +} + +/* +AppDelete Deletes an app + +Deletes an app by slug. Use with care, make sure you really want to delete the app. This action cannot be undone. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAppDeleteRequest +*/ +func (a *ApplicationAPIService) AppDelete(ctx context.Context, appSlug string) ApiAppDeleteRequest { + return ApiAppDeleteRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0AppDeleteRespModel +func (a *ApplicationAPIService) AppDeleteExecute(r ApiAppDeleteRequest) (*V0AppDeleteRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppDeleteRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationAPIService.AppDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppListRequest struct { + ctx context.Context + ApiService *ApplicationAPIService + sortBy *string + next *string + limit *int32 + title *string + projectType *string +} + +// Order of the applications: sort them based on when they were created or the time of their last build +func (r ApiAppListRequest) SortBy(sortBy string) ApiAppListRequest { + r.sortBy = &sortBy + return r +} + +// Slug of the first app in the response +func (r ApiAppListRequest) Next(next string) ApiAppListRequest { + r.next = &next + return r +} + +// Max number of elements per page (default: 50) +func (r ApiAppListRequest) Limit(limit int32) ApiAppListRequest { + r.limit = &limit + return r +} + +// The title of the app +func (r ApiAppListRequest) Title(title string) ApiAppListRequest { + r.title = &title + return r +} + +// The project type of the app (eg. 'ios', 'android') +func (r ApiAppListRequest) ProjectType(projectType string) ApiAppListRequest { + r.projectType = &projectType + return r +} + +func (r ApiAppListRequest) Execute() (*V0AppListResponseModel, *http.Response, error) { + return r.ApiService.AppListExecute(r) +} + +/* +AppList Get list of the apps + +List all the apps available for the authenticated account, including those that are owned by other users or Organizations. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAppListRequest +*/ +func (a *ApplicationAPIService) AppList(ctx context.Context) ApiAppListRequest { + return ApiAppListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V0AppListResponseModel +func (a *ApplicationAPIService) AppListExecute(r ApiAppListRequest) (*V0AppListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationAPIService.AppList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sortBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sort_by", r.sortBy, "") + } + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.title != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "title", r.title, "") + } + if r.projectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "project_type", r.projectType, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppListByOrganizationRequest struct { + ctx context.Context + ApiService *ApplicationAPIService + orgSlug string + sortBy *string + next *string + limit *int32 + title *string + projectType *string +} + +// Order of applications: sort them based on when they were created or the time of their last build +func (r ApiAppListByOrganizationRequest) SortBy(sortBy string) ApiAppListByOrganizationRequest { + r.sortBy = &sortBy + return r +} + +// Slug of the first app in the response +func (r ApiAppListByOrganizationRequest) Next(next string) ApiAppListByOrganizationRequest { + r.next = &next + return r +} + +// Max number of elements per page (default: 50) +func (r ApiAppListByOrganizationRequest) Limit(limit int32) ApiAppListByOrganizationRequest { + r.limit = &limit + return r +} + +// The title of the app +func (r ApiAppListByOrganizationRequest) Title(title string) ApiAppListByOrganizationRequest { + r.title = &title + return r +} + +// The project type of the app (eg. 'ios', 'android') +func (r ApiAppListByOrganizationRequest) ProjectType(projectType string) ApiAppListByOrganizationRequest { + r.projectType = &projectType + return r +} + +func (r ApiAppListByOrganizationRequest) Execute() (*V0AppListResponseModel, *http.Response, error) { + return r.ApiService.AppListByOrganizationExecute(r) +} + +/* +AppListByOrganization Get list of the apps for an organization + +List all the available apps owned by a given organization. [Find the organization URL](https://devcenter.bitrise.io/team-management/organizations/org-url/) of the organisations you are part of; be aware that the endpoint will not return any apps if the authenticated account is not a member of the given organisation. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgSlug Organization slug + @return ApiAppListByOrganizationRequest +*/ +func (a *ApplicationAPIService) AppListByOrganization(ctx context.Context, orgSlug string) ApiAppListByOrganizationRequest { + return ApiAppListByOrganizationRequest{ + ApiService: a, + ctx: ctx, + orgSlug: orgSlug, + } +} + +// Execute executes the request +// @return V0AppListResponseModel +func (a *ApplicationAPIService) AppListByOrganizationExecute(r ApiAppListByOrganizationRequest) (*V0AppListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationAPIService.AppListByOrganization") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/organizations/{org-slug}/apps" + localVarPath = strings.Replace(localVarPath, "{"+"org-slug"+"}", url.PathEscape(parameterValueToString(r.orgSlug, "orgSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sortBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sort_by", r.sortBy, "") + } + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.title != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "title", r.title, "") + } + if r.projectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "project_type", r.projectType, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppListByUserRequest struct { + ctx context.Context + ApiService *ApplicationAPIService + userSlug string + sortBy *string + next *string + limit *int32 + title *string + projectType *string +} + +// Order of applications +func (r ApiAppListByUserRequest) SortBy(sortBy string) ApiAppListByUserRequest { + r.sortBy = &sortBy + return r +} + +// Slug of the first app in the response +func (r ApiAppListByUserRequest) Next(next string) ApiAppListByUserRequest { + r.next = &next + return r +} + +// Max number of elements per page (default: 50) +func (r ApiAppListByUserRequest) Limit(limit int32) ApiAppListByUserRequest { + r.limit = &limit + return r +} + +// The title of the app +func (r ApiAppListByUserRequest) Title(title string) ApiAppListByUserRequest { + r.title = &title + return r +} + +// The project type of the app (eg. 'ios', 'android') +func (r ApiAppListByUserRequest) ProjectType(projectType string) ApiAppListByUserRequest { + r.projectType = &projectType + return r +} + +func (r ApiAppListByUserRequest) Execute() (*V0AppListResponseModel, *http.Response, error) { + return r.ApiService.AppListByUserExecute(r) +} + +/* +AppListByUser Get list of the apps for a user + +List all the available apps for the given user. It needs the user slug that you can get from the [GET /me](https://api-docs.bitrise.io/#/user/user-profile) endpoint. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userSlug User slug + @return ApiAppListByUserRequest +*/ +func (a *ApplicationAPIService) AppListByUser(ctx context.Context, userSlug string) ApiAppListByUserRequest { + return ApiAppListByUserRequest{ + ApiService: a, + ctx: ctx, + userSlug: userSlug, + } +} + +// Execute executes the request +// @return V0AppListResponseModel +func (a *ApplicationAPIService) AppListByUserExecute(r ApiAppListByUserRequest) (*V0AppListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationAPIService.AppListByUser") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/{user-slug}/apps" + localVarPath = strings.Replace(localVarPath, "{"+"user-slug"+"}", url.PathEscape(parameterValueToString(r.userSlug, "userSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sortBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sort_by", r.sortBy, "") + } + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.title != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "title", r.title, "") + } + if r.projectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "project_type", r.projectType, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppNotificationsRequest struct { + ctx context.Context + ApiService *ApplicationAPIService + appSlug string + notificationSettingsParams *V0AppNotificationSettingsParams +} + +// App notification settings parameters +func (r ApiAppNotificationsRequest) NotificationSettingsParams(notificationSettingsParams V0AppNotificationSettingsParams) ApiAppNotificationsRequest { + r.notificationSettingsParams = ¬ificationSettingsParams + return r +} + +func (r ApiAppNotificationsRequest) Execute() (*V0AppNotificationSettingsUpdateResponse, *http.Response, error) { + return r.ApiService.AppNotificationsExecute(r) +} + +/* +AppNotifications Updates the app's notification settings + +Updates the app's email notification settings with parameters + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAppNotificationsRequest +*/ +func (a *ApplicationAPIService) AppNotifications(ctx context.Context, appSlug string) ApiAppNotificationsRequest { + return ApiAppNotificationsRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0AppNotificationSettingsUpdateResponse +func (a *ApplicationAPIService) AppNotificationsExecute(r ApiAppNotificationsRequest) (*V0AppNotificationSettingsUpdateResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppNotificationSettingsUpdateResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationAPIService.AppNotifications") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/update-email-notifications" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationSettingsParams == nil { + return localVarReturnValue, nil, reportError("notificationSettingsParams 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.notificationSettingsParams + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppRolesQueryRequest struct { + ctx context.Context + ApiService *ApplicationAPIService + appSlug string + roleName string +} + +func (r ApiAppRolesQueryRequest) Execute() (*AppRolesQuery200Response, *http.Response, error) { + return r.ApiService.AppRolesQueryExecute(r) +} + +/* +AppRolesQuery Lists group roles for an app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug Slug of the app + @param roleName Name of the role being queried, supported values are: admin, manager (equals developer), and member (equals tester/qa) + @return ApiAppRolesQueryRequest +*/ +func (a *ApplicationAPIService) AppRolesQuery(ctx context.Context, appSlug string, roleName string) ApiAppRolesQueryRequest { + return ApiAppRolesQueryRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + roleName: roleName, + } +} + +// Execute executes the request +// @return AppRolesQuery200Response +func (a *ApplicationAPIService) AppRolesQueryExecute(r ApiAppRolesQueryRequest) (*AppRolesQuery200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AppRolesQuery200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationAPIService.AppRolesQuery") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/roles/{role-name}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceProxyErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppRolesUpdateRequest struct { + ctx context.Context + ApiService *ApplicationAPIService + appSlug string + roleName string + groups *AppRolesQuery200Response +} + +// List of group slugs +func (r ApiAppRolesUpdateRequest) Groups(groups AppRolesQuery200Response) ApiAppRolesUpdateRequest { + r.groups = &groups + return r +} + +func (r ApiAppRolesUpdateRequest) Execute() (*AppRolesQuery200Response, *http.Response, error) { + return r.ApiService.AppRolesUpdateExecute(r) +} + +/* +AppRolesUpdate Replaces group roles for an app + +Replaces the groups for a given role on an app. Only the given groups will be present for a role on the app after this call. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug Slug of the app + @param roleName Name of the role being modified, supported values are: admin, manager (equals developer), and member (equals tester/qa) + @return ApiAppRolesUpdateRequest +*/ +func (a *ApplicationAPIService) AppRolesUpdate(ctx context.Context, appSlug string, roleName string) ApiAppRolesUpdateRequest { + return ApiAppRolesUpdateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + roleName: roleName, + } +} + +// Execute executes the request +// @return AppRolesQuery200Response +func (a *ApplicationAPIService) AppRolesUpdateExecute(r ApiAppRolesUpdateRequest) (*AppRolesQuery200Response, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AppRolesQuery200Response + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationAPIService.AppRolesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/roles/{role-name}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"role-name"+"}", url.PathEscape(parameterValueToString(r.roleName, "roleName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.groups == nil { + return localVarReturnValue, nil, reportError("groups is required and must be specified") + } + + // 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 + } + // body params + localVarPostBody = r.groups + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 422 { + var v ServiceProxyErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppShowRequest struct { + ctx context.Context + ApiService *ApplicationAPIService + appSlug string +} + +func (r ApiAppShowRequest) Execute() (*V0AppShowResponseModel, *http.Response, error) { + return r.ApiService.AppShowExecute(r) +} + +/* +AppShow Get a specific app + +Get the details of a specific app by providing the app slug. You can get the app slug by calling the [/apps](https://api-docs.bitrise.io/#/application/app-list) endpoint or by opening the app on bitrise.io and copying the slug from the URL. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAppShowRequest +*/ +func (a *ApplicationAPIService) AppShow(ctx context.Context, appSlug string) ApiAppShowRequest { + return ApiAppShowRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0AppShowResponseModel +func (a *ApplicationAPIService) AppShowExecute(r ApiAppShowRequest) (*V0AppShowResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppShowResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationAPIService.AppShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiAppUpdateRequest struct { + ctx context.Context + ApiService *ApplicationAPIService + appSlug string + app *V0AppUpdateParams +} + +// App update params. All fields are optional, omit the fields you don't wish to update. +func (r ApiAppUpdateRequest) App(app V0AppUpdateParams) ApiAppUpdateRequest { + r.app = &app + return r +} + +func (r ApiAppUpdateRequest) Execute() (*V0AppUpdateRespModel, *http.Response, error) { + return r.ApiService.AppUpdateExecute(r) +} + +/* +AppUpdate Updates an app + +Updates an app by slug. Only updates the fields specified in the body. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiAppUpdateRequest +*/ +func (a *ApplicationAPIService) AppUpdate(ctx context.Context, appSlug string) ApiAppUpdateRequest { + return ApiAppUpdateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0AppUpdateRespModel +func (a *ApplicationAPIService) AppUpdateExecute(r ApiAppUpdateRequest) (*V0AppUpdateRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppUpdateRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationAPIService.AppUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.app == nil { + return localVarReturnValue, nil, reportError("app 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.app + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBranchListRequest struct { + ctx context.Context + ApiService *ApplicationAPIService + appSlug string +} + +func (r ApiBranchListRequest) Execute() (*V0BranchListResponseModel, *http.Response, error) { + return r.ApiService.BranchListExecute(r) +} + +/* +BranchList List the branches with existing builds of an app's repository + +Lists only those branches of a specified Bitrise app that have existing builds. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiBranchListRequest +*/ +func (a *ApplicationAPIService) BranchList(ctx context.Context, appSlug string) ApiBranchListRequest { + return ApiBranchListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0BranchListResponseModel +func (a *ApplicationAPIService) BranchListExecute(r ApiBranchListRequest) (*V0BranchListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BranchListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ApplicationAPIService.BranchList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/branches" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_build_artifact.go b/go2/api_build_artifact.go new file mode 100644 index 0000000..70f576a --- /dev/null +++ b/go2/api_build_artifact.go @@ -0,0 +1,763 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// BuildArtifactAPIService BuildArtifactAPI service +type BuildArtifactAPIService service + +type ApiArtifactDeleteRequest struct { + ctx context.Context + ApiService *BuildArtifactAPIService + appSlug string + buildSlug string + artifactSlug string +} + +func (r ApiArtifactDeleteRequest) Execute() (*V0ArtifactDeleteResponseModel, *http.Response, error) { + return r.ApiService.ArtifactDeleteExecute(r) +} + +/* +ArtifactDelete Delete a build artifact + +Delete a build artifact of an app's build. The required parameters are app slug, build slug and artifact slug. You can fetch the build artifact slug if you first list all build artifacts of an app with the [/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-list) endpoint. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildSlug Build slug + @param artifactSlug Artifact slug + @return ApiArtifactDeleteRequest +*/ +func (a *BuildArtifactAPIService) ArtifactDelete(ctx context.Context, appSlug string, buildSlug string, artifactSlug string) ApiArtifactDeleteRequest { + return ApiArtifactDeleteRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildSlug: buildSlug, + artifactSlug: artifactSlug, + } +} + +// Execute executes the request +// @return V0ArtifactDeleteResponseModel +func (a *BuildArtifactAPIService) ArtifactDeleteExecute(r ApiArtifactDeleteRequest) (*V0ArtifactDeleteResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ArtifactDeleteResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildArtifactAPIService.ArtifactDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-slug"+"}", url.PathEscape(parameterValueToString(r.buildSlug, "buildSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifact-slug"+"}", url.PathEscape(parameterValueToString(r.artifactSlug, "artifactSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiArtifactListRequest struct { + ctx context.Context + ApiService *BuildArtifactAPIService + appSlug string + buildSlug string + next *string + limit *int32 +} + +// Slug of the first build artifact in the response +func (r ApiArtifactListRequest) Next(next string) ApiArtifactListRequest { + r.next = &next + return r +} + +// Max number of build artifacts per page is 50. +func (r ApiArtifactListRequest) Limit(limit int32) ApiArtifactListRequest { + r.limit = &limit + return r +} + +func (r ApiArtifactListRequest) Execute() (*V0ArtifactListResponseModel, *http.Response, error) { + return r.ApiService.ArtifactListExecute(r) +} + +/* +ArtifactList Get a list of all build artifacts + +List all build artifacts that have been generated for an app's build. This endpoint can retrieve artifacts from the archive as well. You can use the created build artifact slugs from the response output to retrieve data of a specific build artifact with the [GET/apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-show) endpoint or update a build artifact with the [PATCH/apps](https://api-docs.bitrise.io/#/build-artifact/artifact-update) endpoint. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildSlug Build slug + @return ApiArtifactListRequest +*/ +func (a *BuildArtifactAPIService) ArtifactList(ctx context.Context, appSlug string, buildSlug string) ApiArtifactListRequest { + return ApiArtifactListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildSlug: buildSlug, + } +} + +// Execute executes the request +// @return V0ArtifactListResponseModel +func (a *BuildArtifactAPIService) ArtifactListExecute(r ApiArtifactListRequest) (*V0ArtifactListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ArtifactListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildArtifactAPIService.ArtifactList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/builds/{build-slug}/artifacts" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-slug"+"}", url.PathEscape(parameterValueToString(r.buildSlug, "buildSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiArtifactShowRequest struct { + ctx context.Context + ApiService *BuildArtifactAPIService + appSlug string + buildSlug string + artifactSlug string + download *int32 +} + +// Setting this will result in a redirect to the artifact download location +func (r ApiArtifactShowRequest) Download(download int32) ApiArtifactShowRequest { + r.download = &download + return r +} + +func (r ApiArtifactShowRequest) Execute() (*V0ArtifactShowResponseModel, *http.Response, error) { + return r.ApiService.ArtifactShowExecute(r) +} + +/* +ArtifactShow Get a specific build artifact + +Retrieve data of a specific build artifact. The endpoint can retrieve archived artifacts as well. The response output contains a time-limited download url (expires in 10 minutes) and a public install-page URL. You can view the build artifact with both URLs, but the public install-page url will not work unless you [enable it](https://devcenter.bitrise.io/tutorials/deploy/bitrise-app-deployment/#enabling-public-page-for-the-app). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildSlug Build slug + @param artifactSlug Artifact slug + @return ApiArtifactShowRequest +*/ +func (a *BuildArtifactAPIService) ArtifactShow(ctx context.Context, appSlug string, buildSlug string, artifactSlug string) ApiArtifactShowRequest { + return ApiArtifactShowRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildSlug: buildSlug, + artifactSlug: artifactSlug, + } +} + +// Execute executes the request +// @return V0ArtifactShowResponseModel +func (a *BuildArtifactAPIService) ArtifactShowExecute(r ApiArtifactShowRequest) (*V0ArtifactShowResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ArtifactShowResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildArtifactAPIService.ArtifactShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-slug"+"}", url.PathEscape(parameterValueToString(r.buildSlug, "buildSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifact-slug"+"}", url.PathEscape(parameterValueToString(r.artifactSlug, "artifactSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.download != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "download", r.download, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiArtifactUpdateRequest struct { + ctx context.Context + ApiService *BuildArtifactAPIService + appSlug string + buildSlug string + artifactSlug string + artifactParams *V0ArtifactUpdateParams +} + +// Artifact parameters +func (r ApiArtifactUpdateRequest) ArtifactParams(artifactParams V0ArtifactUpdateParams) ApiArtifactUpdateRequest { + r.artifactParams = &artifactParams + return r +} + +func (r ApiArtifactUpdateRequest) Execute() (*V0ArtifactShowResponseModel, *http.Response, error) { + return r.ApiService.ArtifactUpdateExecute(r) +} + +/* +ArtifactUpdate Update a build artifact + +Update the `is_public_page_enabled` attribute of your app's build. The required parameters are app slug, build slug and artifact slug. You can fetch the build artifact slug if you first list all build artifacts of an app with the [GET /apps/](https://api-docs.bitrise.io/#/build-artifact/artifact-list) endpoint. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildSlug Build slug + @param artifactSlug Artifact slug + @return ApiArtifactUpdateRequest +*/ +func (a *BuildArtifactAPIService) ArtifactUpdate(ctx context.Context, appSlug string, buildSlug string, artifactSlug string) ApiArtifactUpdateRequest { + return ApiArtifactUpdateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildSlug: buildSlug, + artifactSlug: artifactSlug, + } +} + +// Execute executes the request +// @return V0ArtifactShowResponseModel +func (a *BuildArtifactAPIService) ArtifactUpdateExecute(r ApiArtifactUpdateRequest) (*V0ArtifactShowResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ArtifactShowResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildArtifactAPIService.ArtifactUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-slug"+"}", url.PathEscape(parameterValueToString(r.buildSlug, "buildSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"artifact-slug"+"}", url.PathEscape(parameterValueToString(r.artifactSlug, "artifactSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.artifactParams == nil { + return localVarReturnValue, nil, reportError("artifactParams 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.artifactParams + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_build_certificate.go b/go2/api_build_certificate.go new file mode 100644 index 0000000..c5a08c7 --- /dev/null +++ b/go2/api_build_certificate.go @@ -0,0 +1,1059 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// BuildCertificateAPIService BuildCertificateAPI service +type BuildCertificateAPIService service + +type ApiBuildCertificateConfirmRequest struct { + ctx context.Context + ApiService *BuildCertificateAPIService + appSlug string + buildCertificateSlug string +} + +func (r ApiBuildCertificateConfirmRequest) Execute() (*V0BuildCertificateResponseModel, *http.Response, error) { + return r.ApiService.BuildCertificateConfirmExecute(r) +} + +/* +BuildCertificateConfirm Confirm a build certificate upload + +This is the last step of uploading a build certificate to Bitrise. Confirm the build certificate upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the iOS code signing file upload](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildCertificateSlug Build certificate slug + @return ApiBuildCertificateConfirmRequest +*/ +func (a *BuildCertificateAPIService) BuildCertificateConfirm(ctx context.Context, appSlug string, buildCertificateSlug string) ApiBuildCertificateConfirmRequest { + return ApiBuildCertificateConfirmRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildCertificateSlug: buildCertificateSlug, + } +} + +// Execute executes the request +// @return V0BuildCertificateResponseModel +func (a *BuildCertificateAPIService) BuildCertificateConfirmExecute(r ApiBuildCertificateConfirmRequest) (*V0BuildCertificateResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildCertificateResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildCertificateAPIService.BuildCertificateConfirm") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-certificate-slug"+"}", url.PathEscape(parameterValueToString(r.buildCertificateSlug, "buildCertificateSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildCertificateCreateRequest struct { + ctx context.Context + ApiService *BuildCertificateAPIService + appSlug string + buildCertificate *V0BuildCertificateUploadParams +} + +// Build certificate parameters such as file name and its file size +func (r ApiBuildCertificateCreateRequest) BuildCertificate(buildCertificate V0BuildCertificateUploadParams) ApiBuildCertificateCreateRequest { + r.buildCertificate = &buildCertificate + return r +} + +func (r ApiBuildCertificateCreateRequest) Execute() (*V0BuildCertificateResponseModel, *http.Response, error) { + return r.ApiService.BuildCertificateCreateExecute(r) +} + +/* +BuildCertificateCreate Create a build certificate + +Create a temporary pre-signed upload URL for the build certificate and upload the file to AWS with a simple `curl` request. To complete the uploading process and view your files on the Code Signing tab of your app, continue with the [POST /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded](https://api-docs.bitrise.io/#/build-certificate/build-certificate-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiBuildCertificateCreateRequest +*/ +func (a *BuildCertificateAPIService) BuildCertificateCreate(ctx context.Context, appSlug string) ApiBuildCertificateCreateRequest { + return ApiBuildCertificateCreateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0BuildCertificateResponseModel +func (a *BuildCertificateAPIService) BuildCertificateCreateExecute(r ApiBuildCertificateCreateRequest) (*V0BuildCertificateResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildCertificateResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildCertificateAPIService.BuildCertificateCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/build-certificates" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.buildCertificate == nil { + return localVarReturnValue, nil, reportError("buildCertificate 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.buildCertificate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildCertificateDeleteRequest struct { + ctx context.Context + ApiService *BuildCertificateAPIService + appSlug string + buildCertificateSlug string +} + +func (r ApiBuildCertificateDeleteRequest) Execute() (*V0BuildCertificateResponseModel, *http.Response, error) { + return r.ApiService.BuildCertificateDeleteExecute(r) +} + +/* +BuildCertificateDelete Delete a build certificate + +Delete an app's build certificate. You can fetch the build certificate slug for this endpoint if you first call the [GET /apps/{app-slug}/build-certificates](https://api-docs.bitrise.io/#/build-certificate/build-certificate-list) endpoint to list all available build certificates of an app. Read more in our [Deleting an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#deleting-an-ios-code-signing-file) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildCertificateSlug Build certificate slug + @return ApiBuildCertificateDeleteRequest +*/ +func (a *BuildCertificateAPIService) BuildCertificateDelete(ctx context.Context, appSlug string, buildCertificateSlug string) ApiBuildCertificateDeleteRequest { + return ApiBuildCertificateDeleteRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildCertificateSlug: buildCertificateSlug, + } +} + +// Execute executes the request +// @return V0BuildCertificateResponseModel +func (a *BuildCertificateAPIService) BuildCertificateDeleteExecute(r ApiBuildCertificateDeleteRequest) (*V0BuildCertificateResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildCertificateResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildCertificateAPIService.BuildCertificateDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/build-certificates/{build-certificate-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-certificate-slug"+"}", url.PathEscape(parameterValueToString(r.buildCertificateSlug, "buildCertificateSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildCertificateListRequest struct { + ctx context.Context + ApiService *BuildCertificateAPIService + appSlug string + next *string + limit *int32 +} + +// Slug of the first build certificate in the response +func (r ApiBuildCertificateListRequest) Next(next string) ApiBuildCertificateListRequest { + r.next = &next + return r +} + +// Max number of build certificates per page is 50. +func (r ApiBuildCertificateListRequest) Limit(limit int32) ApiBuildCertificateListRequest { + r.limit = &limit + return r +} + +func (r ApiBuildCertificateListRequest) Execute() (*V0BuildCertificateListResponseModel, *http.Response, error) { + return r.ApiService.BuildCertificateListExecute(r) +} + +/* +BuildCertificateList Get a list of the build certificates + +List all the build certificates that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiBuildCertificateListRequest +*/ +func (a *BuildCertificateAPIService) BuildCertificateList(ctx context.Context, appSlug string) ApiBuildCertificateListRequest { + return ApiBuildCertificateListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0BuildCertificateListResponseModel +func (a *BuildCertificateAPIService) BuildCertificateListExecute(r ApiBuildCertificateListRequest) (*V0BuildCertificateListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildCertificateListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildCertificateAPIService.BuildCertificateList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/build-certificates" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildCertificateShowRequest struct { + ctx context.Context + ApiService *BuildCertificateAPIService + appSlug string + buildCertificateSlug string +} + +func (r ApiBuildCertificateShowRequest) Execute() (*V0BuildCertificateResponseModel, *http.Response, error) { + return r.ApiService.BuildCertificateShowExecute(r) +} + +/* +BuildCertificateShow Get a specific build certificate + +Retrieve data of a specific build certificate. You can fetch the build certificate slug for this endpoint if you first call the [GET /apps/{app-slug}/build-certificates](https://api-docs.bitrise.io/#/build-certificate/build-certificate-list) endpoint to list all available build certificates of an app. Read more in our [Getting a specific iOS code signing file's data](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#getting-a-specific-ios-code-signing-files-data) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildCertificateSlug Build certificate slug + @return ApiBuildCertificateShowRequest +*/ +func (a *BuildCertificateAPIService) BuildCertificateShow(ctx context.Context, appSlug string, buildCertificateSlug string) ApiBuildCertificateShowRequest { + return ApiBuildCertificateShowRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildCertificateSlug: buildCertificateSlug, + } +} + +// Execute executes the request +// @return V0BuildCertificateResponseModel +func (a *BuildCertificateAPIService) BuildCertificateShowExecute(r ApiBuildCertificateShowRequest) (*V0BuildCertificateResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildCertificateResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildCertificateAPIService.BuildCertificateShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/build-certificates/{build-certificate-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-certificate-slug"+"}", url.PathEscape(parameterValueToString(r.buildCertificateSlug, "buildCertificateSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildCertificateUpdateRequest struct { + ctx context.Context + ApiService *BuildCertificateAPIService + appSlug string + buildCertificateSlug string + buildCertificate *V0BuildCertificateUpdateParams +} + +// Build certificate parameters +func (r ApiBuildCertificateUpdateRequest) BuildCertificate(buildCertificate V0BuildCertificateUpdateParams) ApiBuildCertificateUpdateRequest { + r.buildCertificate = &buildCertificate + return r +} + +func (r ApiBuildCertificateUpdateRequest) Execute() (*V0BuildCertificateResponseModel, *http.Response, error) { + return r.ApiService.BuildCertificateUpdateExecute(r) +} + +/* +BuildCertificateUpdate Update a build certificate + +Update an uploaded build certificate's attributes. You can fetch the build certificate slug for this endpoint if you first call the [GET /apps/{app-slug}/build-certificates](https://api-docs.bitrise.io/#/build-certificate/build-certificate-list) endpoint. Read more in our [Updating an uploaded iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildCertificateSlug Build certificate slug + @return ApiBuildCertificateUpdateRequest +*/ +func (a *BuildCertificateAPIService) BuildCertificateUpdate(ctx context.Context, appSlug string, buildCertificateSlug string) ApiBuildCertificateUpdateRequest { + return ApiBuildCertificateUpdateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildCertificateSlug: buildCertificateSlug, + } +} + +// Execute executes the request +// @return V0BuildCertificateResponseModel +func (a *BuildCertificateAPIService) BuildCertificateUpdateExecute(r ApiBuildCertificateUpdateRequest) (*V0BuildCertificateResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildCertificateResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildCertificateAPIService.BuildCertificateUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/build-certificates/{build-certificate-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-certificate-slug"+"}", url.PathEscape(parameterValueToString(r.buildCertificateSlug, "buildCertificateSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.buildCertificate == nil { + return localVarReturnValue, nil, reportError("buildCertificate 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.buildCertificate + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_build_request.go b/go2/api_build_request.go new file mode 100644 index 0000000..1901809 --- /dev/null +++ b/go2/api_build_request.go @@ -0,0 +1,375 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// BuildRequestAPIService BuildRequestAPI service +type BuildRequestAPIService service + +type ApiBuildRequestListRequest struct { + ctx context.Context + ApiService *BuildRequestAPIService + appSlug string +} + +func (r ApiBuildRequestListRequest) Execute() (*V0BuildRequestListResponseModel, *http.Response, error) { + return r.ApiService.BuildRequestListExecute(r) +} + +/* +BuildRequestList List the open build requests for an app + +List the existing open build requests of a specified Bitrise app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiBuildRequestListRequest +*/ +func (a *BuildRequestAPIService) BuildRequestList(ctx context.Context, appSlug string) ApiBuildRequestListRequest { + return ApiBuildRequestListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0BuildRequestListResponseModel +func (a *BuildRequestAPIService) BuildRequestListExecute(r ApiBuildRequestListRequest) (*V0BuildRequestListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildRequestListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildRequestAPIService.BuildRequestList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/build-requests" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildRequestUpdateRequest struct { + ctx context.Context + ApiService *BuildRequestAPIService + appSlug string + buildRequestSlug string + buildRequest *V0BuildRequestUpdateParams +} + +// Build request parameters +func (r ApiBuildRequestUpdateRequest) BuildRequest(buildRequest V0BuildRequestUpdateParams) ApiBuildRequestUpdateRequest { + r.buildRequest = &buildRequest + return r +} + +func (r ApiBuildRequestUpdateRequest) Execute() (*V0BuildRequestUpdateResponseModel, *http.Response, error) { + return r.ApiService.BuildRequestUpdateExecute(r) +} + +/* +BuildRequestUpdate Update a build request + +Update a specific build request of a specific app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildRequestSlug Build request slug + @return ApiBuildRequestUpdateRequest +*/ +func (a *BuildRequestAPIService) BuildRequestUpdate(ctx context.Context, appSlug string, buildRequestSlug string) ApiBuildRequestUpdateRequest { + return ApiBuildRequestUpdateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildRequestSlug: buildRequestSlug, + } +} + +// Execute executes the request +// @return V0BuildRequestUpdateResponseModel +func (a *BuildRequestAPIService) BuildRequestUpdateExecute(r ApiBuildRequestUpdateRequest) (*V0BuildRequestUpdateResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildRequestUpdateResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildRequestAPIService.BuildRequestUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/build-requests/{build-request-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-request-slug"+"}", url.PathEscape(parameterValueToString(r.buildRequestSlug, "buildRequestSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.buildRequest == nil { + return localVarReturnValue, nil, reportError("buildRequest 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.buildRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_builds.go b/go2/api_builds.go new file mode 100644 index 0000000..a90c0f4 --- /dev/null +++ b/go2/api_builds.go @@ -0,0 +1,1815 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// BuildsAPIService BuildsAPI service +type BuildsAPIService service + +type ApiArchivedBuildsListRequest struct { + ctx context.Context + ApiService *BuildsAPIService + appSlug string + after *int32 + before *int32 +} + +// Listed builds should only be the ones which ran after the given date (Unix Timestamp) +func (r ApiArchivedBuildsListRequest) After(after int32) ApiArchivedBuildsListRequest { + r.after = &after + return r +} + +// Listed builds should only be the ones which ran before the given date (Unix Timestamp) +func (r ApiArchivedBuildsListRequest) Before(before int32) ApiArchivedBuildsListRequest { + r.before = &before + return r +} + +func (r ApiArchivedBuildsListRequest) Execute() (*V0ArchivedBuildListResponseModel, *http.Response, error) { + return r.ApiService.ArchivedBuildsListExecute(r) +} + +/* +ArchivedBuildsList List 1000 archived builds of an app + +List the first 1000 archived builds of a specified Bitrise app. Set parameters to filter builds: + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiArchivedBuildsListRequest +*/ +func (a *BuildsAPIService) ArchivedBuildsList(ctx context.Context, appSlug string) ApiArchivedBuildsListRequest { + return ApiArchivedBuildsListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0ArchivedBuildListResponseModel +func (a *BuildsAPIService) ArchivedBuildsListExecute(r ApiArchivedBuildsListRequest) (*V0ArchivedBuildListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ArchivedBuildListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildsAPIService.ArchivedBuildsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/archived-builds" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.after == nil { + return localVarReturnValue, nil, reportError("after is required and must be specified") + } + if r.before == nil { + return localVarReturnValue, nil, reportError("before is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "after", r.after, "") + parameterAddToHeaderOrQuery(localVarQueryParams, "before", r.before, "") + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildAbortRequest struct { + ctx context.Context + ApiService *BuildsAPIService + appSlug string + buildSlug string + buildAbortParams *V0BuildAbortParams +} + +// Build abort parameters +func (r ApiBuildAbortRequest) BuildAbortParams(buildAbortParams V0BuildAbortParams) ApiBuildAbortRequest { + r.buildAbortParams = &buildAbortParams + return r +} + +func (r ApiBuildAbortRequest) Execute() (*V0BuildAbortResponseModel, *http.Response, error) { + return r.ApiService.BuildAbortExecute(r) +} + +/* +BuildAbort Abort a specific build + +Abort a specific build. Set an abort reason with the `abort_reason` parameter. Use the `abort_with_success` parameter to abort a build but still count it as a successful one. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildSlug Build slug + @return ApiBuildAbortRequest +*/ +func (a *BuildsAPIService) BuildAbort(ctx context.Context, appSlug string, buildSlug string) ApiBuildAbortRequest { + return ApiBuildAbortRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildSlug: buildSlug, + } +} + +// Execute executes the request +// @return V0BuildAbortResponseModel +func (a *BuildsAPIService) BuildAbortExecute(r ApiBuildAbortRequest) (*V0BuildAbortResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildAbortResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildsAPIService.BuildAbort") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/builds/{build-slug}/abort" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-slug"+"}", url.PathEscape(parameterValueToString(r.buildSlug, "buildSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.buildAbortParams == nil { + return localVarReturnValue, nil, reportError("buildAbortParams 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.buildAbortParams + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 429 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildBitriseYmlShowRequest struct { + ctx context.Context + ApiService *BuildsAPIService + appSlug string + buildSlug string +} + +func (r ApiBuildBitriseYmlShowRequest) Execute() (string, *http.Response, error) { + return r.ApiService.BuildBitriseYmlShowExecute(r) +} + +/* +BuildBitriseYmlShow Get the bitrise.yml of a build + +Get the bitrise.yml file of one of the builds of a given app. This will return the `bitrise.yml` configuration with which the build ran. You can compare it to [the current bitrise.yml configuration](https://api-docs.bitrise.io/#/application/app-config-datastore-show) of the app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildSlug Build slug + @return ApiBuildBitriseYmlShowRequest +*/ +func (a *BuildsAPIService) BuildBitriseYmlShow(ctx context.Context, appSlug string, buildSlug string) ApiBuildBitriseYmlShowRequest { + return ApiBuildBitriseYmlShowRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildSlug: buildSlug, + } +} + +// Execute executes the request +// @return string +func (a *BuildsAPIService) BuildBitriseYmlShowExecute(r ApiBuildBitriseYmlShowRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildsAPIService.BuildBitriseYmlShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/builds/{build-slug}/bitrise.yml" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-slug"+"}", url.PathEscape(parameterValueToString(r.buildSlug, "buildSlug")), -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{"text/plain"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildListRequest struct { + ctx context.Context + ApiService *BuildsAPIService + appSlug string + sortBy *string + branch *string + workflow *string + commitMessage *string + triggerEventType *string + pullRequestId *int32 + buildNumber *int32 + after *int32 + before *int32 + status *int32 + isPipelineBuild *bool + next *string + limit *int32 +} + +// Order of builds: sort them based on when they were created or the time when they were triggered +func (r ApiBuildListRequest) SortBy(sortBy string) ApiBuildListRequest { + r.sortBy = &sortBy + return r +} + +// The branch which was built +func (r ApiBuildListRequest) Branch(branch string) ApiBuildListRequest { + r.branch = &branch + return r +} + +// The name of the workflow used for the build +func (r ApiBuildListRequest) Workflow(workflow string) ApiBuildListRequest { + r.workflow = &workflow + return r +} + +// The commit message of the build +func (r ApiBuildListRequest) CommitMessage(commitMessage string) ApiBuildListRequest { + r.commitMessage = &commitMessage + return r +} + +// The event that triggered the build (push, pull-request, tag) +func (r ApiBuildListRequest) TriggerEventType(triggerEventType string) ApiBuildListRequest { + r.triggerEventType = &triggerEventType + return r +} + +// The id of the pull request that triggered the build +func (r ApiBuildListRequest) PullRequestId(pullRequestId int32) ApiBuildListRequest { + r.pullRequestId = &pullRequestId + return r +} + +// The build number +func (r ApiBuildListRequest) BuildNumber(buildNumber int32) ApiBuildListRequest { + r.buildNumber = &buildNumber + return r +} + +// List builds run after a given date (Unix Timestamp) +func (r ApiBuildListRequest) After(after int32) ApiBuildListRequest { + r.after = &after + return r +} + +// List builds run before a given date (Unix Timestamp) +func (r ApiBuildListRequest) Before(before int32) ApiBuildListRequest { + r.before = &before + return r +} + +// The status of the build: not finished (0), successful (1), failed (2), aborted with failure (3), aborted with success (4) +func (r ApiBuildListRequest) Status(status int32) ApiBuildListRequest { + r.status = &status + return r +} + +// Whether the builds are part of a pipeline or not +func (r ApiBuildListRequest) IsPipelineBuild(isPipelineBuild bool) ApiBuildListRequest { + r.isPipelineBuild = &isPipelineBuild + return r +} + +// Slug of the first build in the response +func (r ApiBuildListRequest) Next(next string) ApiBuildListRequest { + r.next = &next + return r +} + +// Max number of elements per page (default: 50) +func (r ApiBuildListRequest) Limit(limit int32) ApiBuildListRequest { + r.limit = &limit + return r +} + +func (r ApiBuildListRequest) Execute() (*V0BuildListResponseModel, *http.Response, error) { + return r.ApiService.BuildListExecute(r) +} + +/* +BuildList List all builds of an app + +List all the builds of a specified Bitrise app. Set parameters to filter builds: for example, you can search for builds run with a given workflow or all builds that were triggered by Pull Requests. It returns all the relevant data of the build. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiBuildListRequest +*/ +func (a *BuildsAPIService) BuildList(ctx context.Context, appSlug string) ApiBuildListRequest { + return ApiBuildListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0BuildListResponseModel +func (a *BuildsAPIService) BuildListExecute(r ApiBuildListRequest) (*V0BuildListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildsAPIService.BuildList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/builds" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.sortBy != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sort_by", r.sortBy, "") + } + if r.branch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "branch", r.branch, "") + } + if r.workflow != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "workflow", r.workflow, "") + } + if r.commitMessage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_message", r.commitMessage, "") + } + if r.triggerEventType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "trigger_event_type", r.triggerEventType, "") + } + if r.pullRequestId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pull_request_id", r.pullRequestId, "") + } + if r.buildNumber != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "build_number", r.buildNumber, "") + } + if r.after != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "after", r.after, "") + } + if r.before != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "before", r.before, "") + } + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "") + } + if r.isPipelineBuild != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_pipeline_build", r.isPipelineBuild, "") + } + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildListAllRequest struct { + ctx context.Context + ApiService *BuildsAPIService + ownerSlug *string + isOnHold *bool + status *int32 + next *string + limit *int32 +} + +// The slug of the owner of the app or apps +func (r ApiBuildListAllRequest) OwnerSlug(ownerSlug string) ApiBuildListAllRequest { + r.ownerSlug = &ownerSlug + return r +} + +// Indicates whether the build has started yet (true: the build hasn't started) +func (r ApiBuildListAllRequest) IsOnHold(isOnHold bool) ApiBuildListAllRequest { + r.isOnHold = &isOnHold + return r +} + +// The status of the build: not finished (0), successful (1), failed (2), aborted with failure (3), aborted with success (4) +func (r ApiBuildListAllRequest) Status(status int32) ApiBuildListAllRequest { + r.status = &status + return r +} + +// Slug of the first build in the response +func (r ApiBuildListAllRequest) Next(next string) ApiBuildListAllRequest { + r.next = &next + return r +} + +// Max number of elements per page (default: 50) +func (r ApiBuildListAllRequest) Limit(limit int32) ApiBuildListAllRequest { + r.limit = &limit + return r +} + +func (r ApiBuildListAllRequest) Execute() (*V0BuildListAllResponseModel, *http.Response, error) { + return r.ApiService.BuildListAllExecute(r) +} + +/* +BuildListAll List all builds + +List all the Bitrise builds that can be accessed with the authenticated account. Filter builds based on their owner, using the owner slug, or the status of the build. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiBuildListAllRequest +*/ +func (a *BuildsAPIService) BuildListAll(ctx context.Context) ApiBuildListAllRequest { + return ApiBuildListAllRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V0BuildListAllResponseModel +func (a *BuildsAPIService) BuildListAllExecute(r ApiBuildListAllRequest) (*V0BuildListAllResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildListAllResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildsAPIService.BuildListAll") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/builds" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.ownerSlug != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner_slug", r.ownerSlug, "") + } + if r.isOnHold != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_on_hold", r.isOnHold, "") + } + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "") + } + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildLogRequest struct { + ctx context.Context + ApiService *BuildsAPIService + appSlug string + buildSlug string +} + +func (r ApiBuildLogRequest) Execute() (*http.Response, error) { + return r.ApiService.BuildLogExecute(r) +} + +/* +BuildLog Get the build log of a build + +Get the build log of a specified build of a Bitrise app. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL. Preview of the log is returned in `log_chunks` field in JSON format. You can download the full raw log in txt by using the signed url returned in `expiring_raw_log_url`. Be aware that this url is expiring in 10 minutes! + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildSlug Build slug + @return ApiBuildLogRequest +*/ +func (a *BuildsAPIService) BuildLog(ctx context.Context, appSlug string, buildSlug string) ApiBuildLogRequest { + return ApiBuildLogRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildSlug: buildSlug, + } +} + +// Execute executes the request +func (a *BuildsAPIService) BuildLogExecute(r ApiBuildLogRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildsAPIService.BuildLog") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/builds/{build-slug}/log" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-slug"+"}", url.PathEscape(parameterValueToString(r.buildSlug, "buildSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiBuildShowRequest struct { + ctx context.Context + ApiService *BuildsAPIService + appSlug string + buildSlug string +} + +func (r ApiBuildShowRequest) Execute() (*V0BuildShowResponseModel, *http.Response, error) { + return r.ApiService.BuildShowExecute(r) +} + +/* +BuildShow Get a build of a given app + +Get the specified build of a given Bitrise app. You need to provide both an app slug and a build slug. You can get the build slug either by calling the [/builds](https://api-docs.bitrise.io/#/builds/build-list) endpoint or by clicking on the build on bitrise.io and copying the slug from the URL. The endpoint returns all the relevant data of the build. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param buildSlug Build slug + @return ApiBuildShowRequest +*/ +func (a *BuildsAPIService) BuildShow(ctx context.Context, appSlug string, buildSlug string) ApiBuildShowRequest { + return ApiBuildShowRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + buildSlug: buildSlug, + } +} + +// Execute executes the request +// @return V0BuildShowResponseModel +func (a *BuildsAPIService) BuildShowExecute(r ApiBuildShowRequest) (*V0BuildShowResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildShowResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildsAPIService.BuildShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/builds/{build-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"build-slug"+"}", url.PathEscape(parameterValueToString(r.buildSlug, "buildSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildTriggerRequest struct { + ctx context.Context + ApiService *BuildsAPIService + appSlug string + buildParams *V0BuildTriggerParams +} + +// Build trigger parameters +func (r ApiBuildTriggerRequest) BuildParams(buildParams V0BuildTriggerParams) ApiBuildTriggerRequest { + r.buildParams = &buildParams + return r +} + +func (r ApiBuildTriggerRequest) Execute() (*V0BuildTriggerRespModel, *http.Response, error) { + return r.ApiService.BuildTriggerExecute(r) +} + +/* +BuildTrigger Trigger a new build/pipeline + +Trigger a new build/pipeline. Specify an app slug and at least one parameter out of three: a git tag or git commit hash, a branch, or a workflow/pipeline ID. You can also set specific parameters for Pull Request builds/pipelines and define additional environment variables for your build/pipeline. [Check out our detailed guide](https://devcenter.bitrise.io/api/build-trigger/). + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiBuildTriggerRequest +*/ +func (a *BuildsAPIService) BuildTrigger(ctx context.Context, appSlug string) ApiBuildTriggerRequest { + return ApiBuildTriggerRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0BuildTriggerRespModel +func (a *BuildsAPIService) BuildTriggerExecute(r ApiBuildTriggerRequest) (*V0BuildTriggerRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildTriggerRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildsAPIService.BuildTrigger") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/builds" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.buildParams == nil { + return localVarReturnValue, nil, reportError("buildParams 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.buildParams + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiBuildWorkflowListRequest struct { + ctx context.Context + ApiService *BuildsAPIService + appSlug string +} + +func (r ApiBuildWorkflowListRequest) Execute() (*V0BuildWorkflowListResponseModel, *http.Response, error) { + return r.ApiService.BuildWorkflowListExecute(r) +} + +/* +BuildWorkflowList List the workflows of an app + +List the workflows that were triggered at any time for a given Bitrise app. Note that it might list workflows that are currently not defined in the app's `bitrise.yml` configuration - and conversely, workflows that were never triggered will not be listed even if they are defined in the `bitrise.yml` file. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiBuildWorkflowListRequest +*/ +func (a *BuildsAPIService) BuildWorkflowList(ctx context.Context, appSlug string) ApiBuildWorkflowListRequest { + return ApiBuildWorkflowListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0BuildWorkflowListResponseModel +func (a *BuildsAPIService) BuildWorkflowListExecute(r ApiBuildWorkflowListRequest) (*V0BuildWorkflowListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0BuildWorkflowListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BuildsAPIService.BuildWorkflowList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/build-workflows" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_generic_project_file.go b/go2/api_generic_project_file.go new file mode 100644 index 0000000..46fab31 --- /dev/null +++ b/go2/api_generic_project_file.go @@ -0,0 +1,1059 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// GenericProjectFileAPIService GenericProjectFileAPI service +type GenericProjectFileAPIService service + +type ApiGenericProjectFileConfirmRequest struct { + ctx context.Context + ApiService *GenericProjectFileAPIService + appSlug string + genericProjectFileSlug string +} + +func (r ApiGenericProjectFileConfirmRequest) Execute() (*V0ProjectFileStorageResponseModel, *http.Response, error) { + return r.ApiService.GenericProjectFileConfirmExecute(r) +} + +/* +GenericProjectFileConfirm Confirm a generic project file upload + +This is the last step of uploading a generic project file to Bitrise. Confirm the generic project file upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the upload](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#confirming-the-file-upload) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param genericProjectFileSlug Generic project file slug + @return ApiGenericProjectFileConfirmRequest +*/ +func (a *GenericProjectFileAPIService) GenericProjectFileConfirm(ctx context.Context, appSlug string, genericProjectFileSlug string) ApiGenericProjectFileConfirmRequest { + return ApiGenericProjectFileConfirmRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + genericProjectFileSlug: genericProjectFileSlug, + } +} + +// Execute executes the request +// @return V0ProjectFileStorageResponseModel +func (a *GenericProjectFileAPIService) GenericProjectFileConfirmExecute(r ApiGenericProjectFileConfirmRequest) (*V0ProjectFileStorageResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProjectFileStorageResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GenericProjectFileAPIService.GenericProjectFileConfirm") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"generic-project-file-slug"+"}", url.PathEscape(parameterValueToString(r.genericProjectFileSlug, "genericProjectFileSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiGenericProjectFileDeleteRequest struct { + ctx context.Context + ApiService *GenericProjectFileAPIService + appSlug string + genericProjectFileSlug string +} + +func (r ApiGenericProjectFileDeleteRequest) Execute() (*V0ProjectFileStorageResponseModel, *http.Response, error) { + return r.ApiService.GenericProjectFileDeleteExecute(r) +} + +/* +GenericProjectFileDelete Delete a generic project file + +Delete an app's generic project file. You can fetch an app's generic project file slug if you first list all the uploaded files with the [GET /apps/{app-slug}/generic-project-files](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-list) endpoint. Read more in our [Deleting a file](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#deleting-a-file) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param genericProjectFileSlug Generic project file slug + @return ApiGenericProjectFileDeleteRequest +*/ +func (a *GenericProjectFileAPIService) GenericProjectFileDelete(ctx context.Context, appSlug string, genericProjectFileSlug string) ApiGenericProjectFileDeleteRequest { + return ApiGenericProjectFileDeleteRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + genericProjectFileSlug: genericProjectFileSlug, + } +} + +// Execute executes the request +// @return V0ProjectFileStorageResponseModel +func (a *GenericProjectFileAPIService) GenericProjectFileDeleteExecute(r ApiGenericProjectFileDeleteRequest) (*V0ProjectFileStorageResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProjectFileStorageResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GenericProjectFileAPIService.GenericProjectFileDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/generic-project-files/{generic-project-file-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"generic-project-file-slug"+"}", url.PathEscape(parameterValueToString(r.genericProjectFileSlug, "genericProjectFileSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiGenericProjectFileListRequest struct { + ctx context.Context + ApiService *GenericProjectFileAPIService + appSlug string + next *string + limit *int32 +} + +// Slug of the first generic project file in the response +func (r ApiGenericProjectFileListRequest) Next(next string) ApiGenericProjectFileListRequest { + r.next = &next + return r +} + +// Max number of build certificates per page is 50. +func (r ApiGenericProjectFileListRequest) Limit(limit int32) ApiGenericProjectFileListRequest { + r.limit = &limit + return r +} + +func (r ApiGenericProjectFileListRequest) Execute() (*V0ProjectFileStorageListResponseModel, *http.Response, error) { + return r.ApiService.GenericProjectFileListExecute(r) +} + +/* +GenericProjectFileList Get a list of the generic project files + +List all the generic project files that have been uploaded to a specific app. Read more in our [Listing the uploaded files of an app](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#listing-the-uploaded-files-of-an-app) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiGenericProjectFileListRequest +*/ +func (a *GenericProjectFileAPIService) GenericProjectFileList(ctx context.Context, appSlug string) ApiGenericProjectFileListRequest { + return ApiGenericProjectFileListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0ProjectFileStorageListResponseModel +func (a *GenericProjectFileAPIService) GenericProjectFileListExecute(r ApiGenericProjectFileListRequest) (*V0ProjectFileStorageListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProjectFileStorageListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GenericProjectFileAPIService.GenericProjectFileList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/generic-project-files" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiGenericProjectFileShowRequest struct { + ctx context.Context + ApiService *GenericProjectFileAPIService + appSlug string + genericProjectFileSlug string +} + +func (r ApiGenericProjectFileShowRequest) Execute() (*V0ProjectFileStorageResponseModel, *http.Response, error) { + return r.ApiService.GenericProjectFileShowExecute(r) +} + +/* +GenericProjectFileShow Get a specific generic project file + +Retrieve data of a specific generic project file to check its attributes and optionally modify them with the [PATCH /apps/](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-update) endpoint. Read more in our [Retrieving a specific file's data](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#retrieving-a-specific-files-data) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param genericProjectFileSlug Generic project file slug + @return ApiGenericProjectFileShowRequest +*/ +func (a *GenericProjectFileAPIService) GenericProjectFileShow(ctx context.Context, appSlug string, genericProjectFileSlug string) ApiGenericProjectFileShowRequest { + return ApiGenericProjectFileShowRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + genericProjectFileSlug: genericProjectFileSlug, + } +} + +// Execute executes the request +// @return V0ProjectFileStorageResponseModel +func (a *GenericProjectFileAPIService) GenericProjectFileShowExecute(r ApiGenericProjectFileShowRequest) (*V0ProjectFileStorageResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProjectFileStorageResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GenericProjectFileAPIService.GenericProjectFileShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/generic-project-files/{generic-project-file-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"generic-project-file-slug"+"}", url.PathEscape(parameterValueToString(r.genericProjectFileSlug, "genericProjectFileSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiGenericProjectFileUpdateRequest struct { + ctx context.Context + ApiService *GenericProjectFileAPIService + appSlug string + genericProjectFileSlug string + genericProjectFile *V0ProjectFileStorageDocumentUpdateParams +} + +// Generic project file parameters +func (r ApiGenericProjectFileUpdateRequest) GenericProjectFile(genericProjectFile V0ProjectFileStorageDocumentUpdateParams) ApiGenericProjectFileUpdateRequest { + r.genericProjectFile = &genericProjectFile + return r +} + +func (r ApiGenericProjectFileUpdateRequest) Execute() (*V0ProjectFileStorageResponseModel, *http.Response, error) { + return r.ApiService.GenericProjectFileUpdateExecute(r) +} + +/* +GenericProjectFileUpdate Update a generic project file + +Update a generic project file's attributes. You can fetch an app's generic project file slug if you first list all the uploaded files with the [GET /apps/{app-slug}/generic-project-files](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-list) endpoint. Read more in our [Updating an uploaded file](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#updating-an-uploaded-file) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param genericProjectFileSlug Generic project file slug + @return ApiGenericProjectFileUpdateRequest +*/ +func (a *GenericProjectFileAPIService) GenericProjectFileUpdate(ctx context.Context, appSlug string, genericProjectFileSlug string) ApiGenericProjectFileUpdateRequest { + return ApiGenericProjectFileUpdateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + genericProjectFileSlug: genericProjectFileSlug, + } +} + +// Execute executes the request +// @return V0ProjectFileStorageResponseModel +func (a *GenericProjectFileAPIService) GenericProjectFileUpdateExecute(r ApiGenericProjectFileUpdateRequest) (*V0ProjectFileStorageResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProjectFileStorageResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GenericProjectFileAPIService.GenericProjectFileUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/generic-project-files/{generic-project-file-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"generic-project-file-slug"+"}", url.PathEscape(parameterValueToString(r.genericProjectFileSlug, "genericProjectFileSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.genericProjectFile == nil { + return localVarReturnValue, nil, reportError("genericProjectFile 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.genericProjectFile + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiGenericProjectFilesCreateRequest struct { + ctx context.Context + ApiService *GenericProjectFileAPIService + appSlug string + genericProjectFile *V0ProjectFileStorageUploadParams +} + +// Generic project file parameters +func (r ApiGenericProjectFilesCreateRequest) GenericProjectFile(genericProjectFile V0ProjectFileStorageUploadParams) ApiGenericProjectFilesCreateRequest { + r.genericProjectFile = &genericProjectFile + return r +} + +func (r ApiGenericProjectFilesCreateRequest) Execute() (*V0ProjectFileStorageResponseModel, *http.Response, error) { + return r.ApiService.GenericProjectFilesCreateExecute(r) +} + +/* +GenericProjectFilesCreate Create a generic project file + +Create a temporary pre-signed upload URL (expires in 10 minutes) for the generic project file and upload it to AWS with a simple `curl` request. To complete the uploading process and view your files on the Code Signing tab of your app, continue with the [POST /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded](https://api-docs.bitrise.io/#/generic-project-file/generic-project-file-confirm) endpoint. Read more in our [Creating and uploading files to Generic File Storage](https://devcenter.bitrise.io/api/managing-files-in-generic-file-storage/#creating-and-uploading-files-to-generic-file-storage) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiGenericProjectFilesCreateRequest +*/ +func (a *GenericProjectFileAPIService) GenericProjectFilesCreate(ctx context.Context, appSlug string) ApiGenericProjectFilesCreateRequest { + return ApiGenericProjectFilesCreateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0ProjectFileStorageResponseModel +func (a *GenericProjectFileAPIService) GenericProjectFilesCreateExecute(r ApiGenericProjectFilesCreateRequest) (*V0ProjectFileStorageResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProjectFileStorageResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GenericProjectFileAPIService.GenericProjectFilesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/generic-project-files" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.genericProjectFile == nil { + return localVarReturnValue, nil, reportError("genericProjectFile 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.genericProjectFile + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_key_value_cache.go b/go2/api_key_value_cache.go new file mode 100644 index 0000000..2d610c5 --- /dev/null +++ b/go2/api_key_value_cache.go @@ -0,0 +1,671 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// KeyValueCacheAPIService KeyValueCacheAPI service +type KeyValueCacheAPIService service + +type ApiCacheItemDeleteRequest struct { + ctx context.Context + ApiService *KeyValueCacheAPIService + appSlug string + cacheItemId string +} + +func (r ApiCacheItemDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.CacheItemDeleteExecute(r) +} + +/* +CacheItemDelete Deletes a key-value cache item + +Deletes a key-value cache item. Deleted cache items are no longer accessible and cannot be restored. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param cacheItemId The ID of the cache item to be deleted + @return ApiCacheItemDeleteRequest +*/ +func (a *KeyValueCacheAPIService) CacheItemDelete(ctx context.Context, appSlug string, cacheItemId string) ApiCacheItemDeleteRequest { + return ApiCacheItemDeleteRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + cacheItemId: cacheItemId, + } +} + +// Execute executes the request +func (a *KeyValueCacheAPIService) CacheItemDeleteExecute(r ApiCacheItemDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KeyValueCacheAPIService.CacheItemDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/cache-items/{cache-item-id}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"cache-item-id"+"}", url.PathEscape(parameterValueToString(r.cacheItemId, "cacheItemId")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCacheItemDeleteAllRequest struct { + ctx context.Context + ApiService *KeyValueCacheAPIService + appSlug string +} + +func (r ApiCacheItemDeleteAllRequest) Execute() (*http.Response, error) { + return r.ApiService.CacheItemDeleteAllExecute(r) +} + +/* +CacheItemDeleteAll Deletes all key-value cache items belonging to an app + +Deletes all key-value cache items created by the builds of an app. Deleted cache items are no longer accessible and cannot be restored. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiCacheItemDeleteAllRequest +*/ +func (a *KeyValueCacheAPIService) CacheItemDeleteAll(ctx context.Context, appSlug string) ApiCacheItemDeleteAllRequest { + return ApiCacheItemDeleteAllRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +func (a *KeyValueCacheAPIService) CacheItemDeleteAllExecute(r ApiCacheItemDeleteAllRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KeyValueCacheAPIService.CacheItemDeleteAll") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/cache-items" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCacheItemDownloadRequest struct { + ctx context.Context + ApiService *KeyValueCacheAPIService + appSlug string + cacheItemId string +} + +func (r ApiCacheItemDownloadRequest) Execute() (*V0CacheItemDownloadResponseModel, *http.Response, error) { + return r.ApiService.CacheItemDownloadExecute(r) +} + +/* +CacheItemDownload Gets the download URL of a key-value cache item + +Gets a download URL of a cache item. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param cacheItemId The ID of the cache item to be downloaded + @return ApiCacheItemDownloadRequest +*/ +func (a *KeyValueCacheAPIService) CacheItemDownload(ctx context.Context, appSlug string, cacheItemId string) ApiCacheItemDownloadRequest { + return ApiCacheItemDownloadRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + cacheItemId: cacheItemId, + } +} + +// Execute executes the request +// @return V0CacheItemDownloadResponseModel +func (a *KeyValueCacheAPIService) CacheItemDownloadExecute(r ApiCacheItemDownloadRequest) (*V0CacheItemDownloadResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0CacheItemDownloadResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KeyValueCacheAPIService.CacheItemDownload") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/cache-items/{cache-item-id}/download" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"cache-item-id"+"}", url.PathEscape(parameterValueToString(r.cacheItemId, "cacheItemId")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiCacheListRequest struct { + ctx context.Context + ApiService *KeyValueCacheAPIService + appSlug string + next *string + limit *int32 +} + +// Getting cache items created before the given parameter (RFC3339 time format, default: now) +func (r ApiCacheListRequest) Next(next string) ApiCacheListRequest { + r.next = &next + return r +} + +// Max number of elements per page (default: 100) +func (r ApiCacheListRequest) Limit(limit int32) ApiCacheListRequest { + r.limit = &limit + return r +} + +func (r ApiCacheListRequest) Execute() (*V0CacheItemListResponseModel, *http.Response, error) { + return r.ApiService.CacheListExecute(r) +} + +/* +CacheList List the key-value cache items belonging to an app + +List all the available cache items that the builds of the app created via the save-cache step. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiCacheListRequest +*/ +func (a *KeyValueCacheAPIService) CacheList(ctx context.Context, appSlug string) ApiCacheListRequest { + return ApiCacheListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0CacheItemListResponseModel +func (a *KeyValueCacheAPIService) CacheListExecute(r ApiCacheListRequest) (*V0CacheItemListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0CacheItemListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "KeyValueCacheAPIService.CacheList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/cache-items" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_local_builds.go b/go2/api_local_builds.go new file mode 100644 index 0000000..ca799a7 --- /dev/null +++ b/go2/api_local_builds.go @@ -0,0 +1,215 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// LocalBuildsAPIService LocalBuildsAPI service +type LocalBuildsAPIService service + +type ApiLocalBuildListRequest struct { + ctx context.Context + ApiService *LocalBuildsAPIService + appSlug string + after *string + before *string + limit *int32 +} + +// List local builds run after a given date (RFC3339 time format) +func (r ApiLocalBuildListRequest) After(after string) ApiLocalBuildListRequest { + r.after = &after + return r +} + +// List local builds run before a given date (RFC3339 time format) - was called 'next' earlier +func (r ApiLocalBuildListRequest) Before(before string) ApiLocalBuildListRequest { + r.before = &before + return r +} + +// Max number of elements per page (default: 10) +func (r ApiLocalBuildListRequest) Limit(limit int32) ApiLocalBuildListRequest { + r.limit = &limit + return r +} + +func (r ApiLocalBuildListRequest) Execute() (*V0PipelineListResponseModel, *http.Response, error) { + return r.ApiService.LocalBuildListExecute(r) +} + +/* +LocalBuildList List local builds of an app + +List all the local builds belonging to the specified Bitrise app. Set parameters to filter builds + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiLocalBuildListRequest +*/ +func (a *LocalBuildsAPIService) LocalBuildList(ctx context.Context, appSlug string) ApiLocalBuildListRequest { + return ApiLocalBuildListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0PipelineListResponseModel +func (a *LocalBuildsAPIService) LocalBuildListExecute(r ApiLocalBuildListRequest) (*V0PipelineListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0PipelineListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LocalBuildsAPIService.LocalBuildList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/local-builds" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.after != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "after", r.after, "") + } + if r.before != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "before", r.before, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_organizations.go b/go2/api_organizations.go new file mode 100644 index 0000000..33fd54a --- /dev/null +++ b/go2/api_organizations.go @@ -0,0 +1,640 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// OrganizationsAPIService OrganizationsAPI service +type OrganizationsAPIService service + +type ApiOrgListRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService +} + +func (r ApiOrgListRequest) Execute() (*V0OrganizationListRespModel, *http.Response, error) { + return r.ApiService.OrgListExecute(r) +} + +/* +OrgList List the organizations that the user is part of + +List all Bitrise organizations that the user is part of + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOrgListRequest +*/ +func (a *OrganizationsAPIService) OrgList(ctx context.Context) ApiOrgListRequest { + return ApiOrgListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V0OrganizationListRespModel +func (a *OrganizationsAPIService) OrgListExecute(r ApiOrgListRequest) (*V0OrganizationListRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0OrganizationListRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.OrgList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/organizations" + + 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiOrgShowRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + orgSlug string +} + +func (r ApiOrgShowRequest) Execute() (*V0OrganizationRespModel, *http.Response, error) { + return r.ApiService.OrgShowExecute(r) +} + +/* +OrgShow Get a specified organization. + +Get a specified Bitrise organization that the user is part of. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgSlug The organization slug + @return ApiOrgShowRequest +*/ +func (a *OrganizationsAPIService) OrgShow(ctx context.Context, orgSlug string) ApiOrgShowRequest { + return ApiOrgShowRequest{ + ApiService: a, + ctx: ctx, + orgSlug: orgSlug, + } +} + +// Execute executes the request +// @return V0OrganizationRespModel +func (a *OrganizationsAPIService) OrgShowExecute(r ApiOrgShowRequest) (*V0OrganizationRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0OrganizationRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.OrgShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/organizations/{org-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"org-slug"+"}", url.PathEscape(parameterValueToString(r.orgSlug, "orgSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiOrganizationMachineTypeUpdateRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + orgSlug string + types *V0OrganizationUpdateMachineTypeParams +} + +// Machine type to migrate from and to +func (r ApiOrganizationMachineTypeUpdateRequest) Types(types V0OrganizationUpdateMachineTypeParams) ApiOrganizationMachineTypeUpdateRequest { + r.types = &types + return r +} + +func (r ApiOrganizationMachineTypeUpdateRequest) Execute() (*V0OrganizationUpdateMachineTypeResponse, *http.Response, error) { + return r.ApiService.OrganizationMachineTypeUpdateExecute(r) +} + +/* +OrganizationMachineTypeUpdate Migrate machine types + +Migrates all apps' machine types of an organization from one machine type to another + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgSlug Organization slug + @return ApiOrganizationMachineTypeUpdateRequest +*/ +func (a *OrganizationsAPIService) OrganizationMachineTypeUpdate(ctx context.Context, orgSlug string) ApiOrganizationMachineTypeUpdateRequest { + return ApiOrganizationMachineTypeUpdateRequest{ + ApiService: a, + ctx: ctx, + orgSlug: orgSlug, + } +} + +// Execute executes the request +// @return V0OrganizationUpdateMachineTypeResponse +func (a *OrganizationsAPIService) OrganizationMachineTypeUpdateExecute(r ApiOrganizationMachineTypeUpdateRequest) (*V0OrganizationUpdateMachineTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0OrganizationUpdateMachineTypeResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.OrganizationMachineTypeUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/organizations/{org-slug}/apps/machine_types" + localVarPath = strings.Replace(localVarPath, "{"+"org-slug"+"}", url.PathEscape(parameterValueToString(r.orgSlug, "orgSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.types == nil { + return localVarReturnValue, nil, reportError("types 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.types + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiOrganzationGroupsListRequest struct { + ctx context.Context + ApiService *OrganizationsAPIService + orgSlug string +} + +func (r ApiOrganzationGroupsListRequest) Execute() ([]OrganzationGroupsList200ResponseInner, *http.Response, error) { + return r.ApiService.OrganzationGroupsListExecute(r) +} + +/* +OrganzationGroupsList List organizations groups + +Lists the groups of an organization + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orgSlug slug of the organization + @return ApiOrganzationGroupsListRequest +*/ +func (a *OrganizationsAPIService) OrganzationGroupsList(ctx context.Context, orgSlug string) ApiOrganzationGroupsListRequest { + return ApiOrganzationGroupsListRequest{ + ApiService: a, + ctx: ctx, + orgSlug: orgSlug, + } +} + +// Execute executes the request +// @return []OrganzationGroupsList200ResponseInner +func (a *OrganizationsAPIService) OrganzationGroupsListExecute(r ApiOrganzationGroupsListRequest) ([]OrganzationGroupsList200ResponseInner, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []OrganzationGroupsList200ResponseInner + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OrganizationsAPIService.OrganzationGroupsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/organizations/{org-slug}/groups" + localVarPath = strings.Replace(localVarPath, "{"+"org-slug"+"}", url.PathEscape(parameterValueToString(r.orgSlug, "orgSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceProxyErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_outgoing_webhook.go b/go2/api_outgoing_webhook.go new file mode 100644 index 0000000..3b30509 --- /dev/null +++ b/go2/api_outgoing_webhook.go @@ -0,0 +1,734 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// OutgoingWebhookAPIService OutgoingWebhookAPI service +type OutgoingWebhookAPIService service + +type ApiOutgoingWebhookCreateRequest struct { + ctx context.Context + ApiService *OutgoingWebhookAPIService + appSlug string + appWebhookCreateParams *V0AppWebhookCreateParams +} + +// App webhook creation params +func (r ApiOutgoingWebhookCreateRequest) AppWebhookCreateParams(appWebhookCreateParams V0AppWebhookCreateParams) ApiOutgoingWebhookCreateRequest { + r.appWebhookCreateParams = &appWebhookCreateParams + return r +} + +func (r ApiOutgoingWebhookCreateRequest) Execute() (*V0AppWebhookCreatedResponseModel, *http.Response, error) { + return r.ApiService.OutgoingWebhookCreateExecute(r) +} + +/* +OutgoingWebhookCreate Create an outgoing webhook for an app + +Create an outgoing webhook for a specified Bitrise app: this can be used to send build events to a specified URL with custom headers. Currently, only build events can trigger outgoing webhooks. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiOutgoingWebhookCreateRequest +*/ +func (a *OutgoingWebhookAPIService) OutgoingWebhookCreate(ctx context.Context, appSlug string) ApiOutgoingWebhookCreateRequest { + return ApiOutgoingWebhookCreateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0AppWebhookCreatedResponseModel +func (a *OutgoingWebhookAPIService) OutgoingWebhookCreateExecute(r ApiOutgoingWebhookCreateRequest) (*V0AppWebhookCreatedResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppWebhookCreatedResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OutgoingWebhookAPIService.OutgoingWebhookCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/outgoing-webhooks" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.appWebhookCreateParams == nil { + return localVarReturnValue, nil, reportError("appWebhookCreateParams is required and must be specified") + } + + // 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 + } + // body params + localVarPostBody = r.appWebhookCreateParams + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiOutgoingWebhookDeleteRequest struct { + ctx context.Context + ApiService *OutgoingWebhookAPIService + appSlug string + appWebhookSlug string +} + +func (r ApiOutgoingWebhookDeleteRequest) Execute() (*V0AppWebhookDeletedResponseModel, *http.Response, error) { + return r.ApiService.OutgoingWebhookDeleteExecute(r) +} + +/* +OutgoingWebhookDelete Delete an outgoing webhook of an app + +Delete an existing outgoing webhook for a specified Bitrise app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param appWebhookSlug App webhook slug + @return ApiOutgoingWebhookDeleteRequest +*/ +func (a *OutgoingWebhookAPIService) OutgoingWebhookDelete(ctx context.Context, appSlug string, appWebhookSlug string) ApiOutgoingWebhookDeleteRequest { + return ApiOutgoingWebhookDeleteRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + appWebhookSlug: appWebhookSlug, + } +} + +// Execute executes the request +// @return V0AppWebhookDeletedResponseModel +func (a *OutgoingWebhookAPIService) OutgoingWebhookDeleteExecute(r ApiOutgoingWebhookDeleteRequest) (*V0AppWebhookDeletedResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppWebhookDeletedResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OutgoingWebhookAPIService.OutgoingWebhookDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"app-webhook-slug"+"}", url.PathEscape(parameterValueToString(r.appWebhookSlug, "appWebhookSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiOutgoingWebhookListRequest struct { + ctx context.Context + ApiService *OutgoingWebhookAPIService + appSlug string + next *string + limit *int32 +} + +// Slug of the first webhook in the response +func (r ApiOutgoingWebhookListRequest) Next(next string) ApiOutgoingWebhookListRequest { + r.next = &next + return r +} + +// Max number of elements per page (default: 50) +func (r ApiOutgoingWebhookListRequest) Limit(limit int32) ApiOutgoingWebhookListRequest { + r.limit = &limit + return r +} + +func (r ApiOutgoingWebhookListRequest) Execute() (*V0AppWebhookListResponseModel, *http.Response, error) { + return r.ApiService.OutgoingWebhookListExecute(r) +} + +/* +OutgoingWebhookList List the outgoing webhooks of an app + +List all the outgoing webhooks registered for a specified Bitrise app. This returns all the relevant data of the webhook, including the slug of the webhook and its URL. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiOutgoingWebhookListRequest +*/ +func (a *OutgoingWebhookAPIService) OutgoingWebhookList(ctx context.Context, appSlug string) ApiOutgoingWebhookListRequest { + return ApiOutgoingWebhookListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0AppWebhookListResponseModel +func (a *OutgoingWebhookAPIService) OutgoingWebhookListExecute(r ApiOutgoingWebhookListRequest) (*V0AppWebhookListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppWebhookListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OutgoingWebhookAPIService.OutgoingWebhookList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/outgoing-webhooks" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiOutgoingWebhookUpdateRequest struct { + ctx context.Context + ApiService *OutgoingWebhookAPIService + appSlug string + appWebhookSlug string + appWebhookUpdateParams *V0AppWebhookUpdateParams +} + +// App webhook update params +func (r ApiOutgoingWebhookUpdateRequest) AppWebhookUpdateParams(appWebhookUpdateParams V0AppWebhookUpdateParams) ApiOutgoingWebhookUpdateRequest { + r.appWebhookUpdateParams = &appWebhookUpdateParams + return r +} + +func (r ApiOutgoingWebhookUpdateRequest) Execute() (*V0AppWebhookResponseModel, *http.Response, error) { + return r.ApiService.OutgoingWebhookUpdateExecute(r) +} + +/* +OutgoingWebhookUpdate Update an outgoing webhook of an app + +Update an existing outgoing webhook (URL, events, secrets and headers) for a specified Bitrise app. Even if you do not want to change one of the parameters, you still have to provide that parameter as well: simply use its existing value. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param appWebhookSlug App webhook slug + @return ApiOutgoingWebhookUpdateRequest +*/ +func (a *OutgoingWebhookAPIService) OutgoingWebhookUpdate(ctx context.Context, appSlug string, appWebhookSlug string) ApiOutgoingWebhookUpdateRequest { + return ApiOutgoingWebhookUpdateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + appWebhookSlug: appWebhookSlug, + } +} + +// Execute executes the request +// @return V0AppWebhookResponseModel +func (a *OutgoingWebhookAPIService) OutgoingWebhookUpdateExecute(r ApiOutgoingWebhookUpdateRequest) (*V0AppWebhookResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppWebhookResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OutgoingWebhookAPIService.OutgoingWebhookUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"app-webhook-slug"+"}", url.PathEscape(parameterValueToString(r.appWebhookSlug, "appWebhookSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.appWebhookUpdateParams == nil { + return localVarReturnValue, nil, reportError("appWebhookUpdateParams is required and must be specified") + } + + // 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 + } + // body params + localVarPostBody = r.appWebhookUpdateParams + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_pipelines.go b/go2/api_pipelines.go new file mode 100644 index 0000000..f70ff8b --- /dev/null +++ b/go2/api_pipelines.go @@ -0,0 +1,1048 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// PipelinesAPIService PipelinesAPI service +type PipelinesAPIService service + +type ApiPipelineAbortRequest struct { + ctx context.Context + ApiService *PipelinesAPIService + appSlug string + pipelineId string + pipelineAbortParams *V0PipelineAbortParams +} + +// Pipeline abort parameters +func (r ApiPipelineAbortRequest) PipelineAbortParams(pipelineAbortParams V0PipelineAbortParams) ApiPipelineAbortRequest { + r.pipelineAbortParams = &pipelineAbortParams + return r +} + +func (r ApiPipelineAbortRequest) Execute() (*http.Response, error) { + return r.ApiService.PipelineAbortExecute(r) +} + +/* +PipelineAbort Aborts a pipeline + +Aborts a pipeline. You need to provide the app slug and the id of the pipeline. You can add an abort reason, choose to skip notifications and make the abort with success state. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param pipelineId Pipeline id + @return ApiPipelineAbortRequest +*/ +func (a *PipelinesAPIService) PipelineAbort(ctx context.Context, appSlug string, pipelineId string) ApiPipelineAbortRequest { + return ApiPipelineAbortRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + pipelineId: pipelineId, + } +} + +// Execute executes the request +func (a *PipelinesAPIService) PipelineAbortExecute(r ApiPipelineAbortRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PipelinesAPIService.PipelineAbort") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/pipelines/{pipeline-id}/abort" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"pipeline-id"+"}", url.PathEscape(parameterValueToString(r.pipelineId, "pipelineId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.pipelineAbortParams == nil { + return nil, reportError("pipelineAbortParams is required and must be specified") + } + + // 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 + } + // body params + localVarPostBody = r.pipelineAbortParams + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPipelineListRequest struct { + ctx context.Context + ApiService *PipelinesAPIService + appSlug string + after *string + before *string + branch *string + buildNumber *int32 + buildEnvironment *string + commitMessage *string + limit *int32 + next *string + pipeline *string + status *string + triggerEventType *string + workflow *string +} + +// List pipelines/standalone builds run after a given date (RFC3339 time format) +func (r ApiPipelineListRequest) After(after string) ApiPipelineListRequest { + r.after = &after + return r +} + +// List pipelines/standalone builds run before a given date (RFC3339 time format) - was called 'next' earlier +func (r ApiPipelineListRequest) Before(before string) ApiPipelineListRequest { + r.before = &before + return r +} + +// The branch which was built +func (r ApiPipelineListRequest) Branch(branch string) ApiPipelineListRequest { + r.branch = &branch + return r +} + +// The pipeline/standalone build number +func (r ApiPipelineListRequest) BuildNumber(buildNumber int32) ApiPipelineListRequest { + r.buildNumber = &buildNumber + return r +} + +// The build environment of the listed builds (ci, local, all) - default: ci +func (r ApiPipelineListRequest) BuildEnvironment(buildEnvironment string) ApiPipelineListRequest { + r.buildEnvironment = &buildEnvironment + return r +} + +// The commit message of the pipeline/standalone build +func (r ApiPipelineListRequest) CommitMessage(commitMessage string) ApiPipelineListRequest { + r.commitMessage = &commitMessage + return r +} + +// Max number of elements per page - default: 10 +func (r ApiPipelineListRequest) Limit(limit int32) ApiPipelineListRequest { + r.limit = &limit + return r +} + +// List pipelines/standalone builds run before a given date (RFC3339 time format) - deprecated +func (r ApiPipelineListRequest) Next(next string) ApiPipelineListRequest { + r.next = &next + return r +} + +// Name of the pipeline +func (r ApiPipelineListRequest) Pipeline(pipeline string) ApiPipelineListRequest { + r.pipeline = &pipeline + return r +} + +// The status of the pipeline/standalone build: initializing, on_hold, running, succeeded, failed, aborted, succeeded_with_abort +func (r ApiPipelineListRequest) Status(status string) ApiPipelineListRequest { + r.status = &status + return r +} + +// The event that triggered the pipeline/standalone build (push, pull-request, tag) +func (r ApiPipelineListRequest) TriggerEventType(triggerEventType string) ApiPipelineListRequest { + r.triggerEventType = &triggerEventType + return r +} + +// The name of the workflow used for the pipeline/standalone build +func (r ApiPipelineListRequest) Workflow(workflow string) ApiPipelineListRequest { + r.workflow = &workflow + return r +} + +func (r ApiPipelineListRequest) Execute() (*V0PipelineListResponseModel, *http.Response, error) { + return r.ApiService.PipelineListExecute(r) +} + +/* +PipelineList List all pipelines and standalone builds of an app + +List all the pipelines and standalone builds of a specified Bitrise app. Set parameters to filter pipelines: for example, you can search for pipelines/standalone builds run with a given workflow name or all pipelines/standalone builds that were triggered by Pull Requests. It returns all the relevant data of the pipelines/standalone builds. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiPipelineListRequest +*/ +func (a *PipelinesAPIService) PipelineList(ctx context.Context, appSlug string) ApiPipelineListRequest { + return ApiPipelineListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0PipelineListResponseModel +func (a *PipelinesAPIService) PipelineListExecute(r ApiPipelineListRequest) (*V0PipelineListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0PipelineListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PipelinesAPIService.PipelineList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/pipelines" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.after != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "after", r.after, "") + } + if r.before != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "before", r.before, "") + } + if r.branch != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "branch", r.branch, "") + } + if r.buildNumber != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "build_number", r.buildNumber, "") + } + if r.buildEnvironment != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "build_environment", r.buildEnvironment, "") + } + if r.commitMessage != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "commit_message", r.commitMessage, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.pipeline != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "pipeline", r.pipeline, "") + } + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "") + } + if r.triggerEventType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "trigger_event_type", r.triggerEventType, "") + } + if r.workflow != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "workflow", r.workflow, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiPipelineListAllRequest struct { + ctx context.Context + ApiService *PipelinesAPIService + ownerSlug *string + status *int32 + next *string + limit *int32 +} + +// The slug of the owner of the app or apps +func (r ApiPipelineListAllRequest) OwnerSlug(ownerSlug string) ApiPipelineListAllRequest { + r.ownerSlug = &ownerSlug + return r +} + +// The status of the pipelines/standalone build: initializing, on_hold, running, succeeded, failed, aborted, succeeded_with_abort +func (r ApiPipelineListAllRequest) Status(status int32) ApiPipelineListAllRequest { + r.status = &status + return r +} + +// Getting pipelines/standalone builds before the given parameter (RFC3339 time format) +func (r ApiPipelineListAllRequest) Next(next string) ApiPipelineListAllRequest { + r.next = &next + return r +} + +// Max number of elements per page (default: 10) +func (r ApiPipelineListAllRequest) Limit(limit int32) ApiPipelineListAllRequest { + r.limit = &limit + return r +} + +func (r ApiPipelineListAllRequest) Execute() (*V0PipelineListAllResponseModel, *http.Response, error) { + return r.ApiService.PipelineListAllExecute(r) +} + +/* +PipelineListAll List all pipelines/standalone builds + +List all the Bitrise pipelines/standalone builds that can be accessed with the authenticated account. Filter pipelines/standalone builds based on their owner, using the owner slug, or the status of the pipeline/standalone build. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPipelineListAllRequest +*/ +func (a *PipelinesAPIService) PipelineListAll(ctx context.Context) ApiPipelineListAllRequest { + return ApiPipelineListAllRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V0PipelineListAllResponseModel +func (a *PipelinesAPIService) PipelineListAllExecute(r ApiPipelineListAllRequest) (*V0PipelineListAllResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0PipelineListAllResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PipelinesAPIService.PipelineListAll") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/pipelines" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.ownerSlug != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "owner_slug", r.ownerSlug, "") + } + if r.status != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status", r.status, "") + } + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiPipelineRebuildRequest struct { + ctx context.Context + ApiService *PipelinesAPIService + appSlug string + pipelineId string + pipelineRebuildParams *V0PipelineRebuildParams +} + +// Pipeline rebuild parameters +func (r ApiPipelineRebuildRequest) PipelineRebuildParams(pipelineRebuildParams V0PipelineRebuildParams) ApiPipelineRebuildRequest { + r.pipelineRebuildParams = &pipelineRebuildParams + return r +} + +func (r ApiPipelineRebuildRequest) Execute() (*http.Response, error) { + return r.ApiService.PipelineRebuildExecute(r) +} + +/* +PipelineRebuild Rebuilds a pipeline + +Rebuilds a pipeline. You can rebuild the whole pipeline or only the unsuccessful and subsequent workflows by setting the partial flag to true. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param pipelineId Pipeline id + @return ApiPipelineRebuildRequest +*/ +func (a *PipelinesAPIService) PipelineRebuild(ctx context.Context, appSlug string, pipelineId string) ApiPipelineRebuildRequest { + return ApiPipelineRebuildRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + pipelineId: pipelineId, + } +} + +// Execute executes the request +func (a *PipelinesAPIService) PipelineRebuildExecute(r ApiPipelineRebuildRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PipelinesAPIService.PipelineRebuild") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/pipelines/{pipeline-id}/rebuild" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"pipeline-id"+"}", url.PathEscape(parameterValueToString(r.pipelineId, "pipelineId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.pipelineRebuildParams == nil { + return nil, reportError("pipelineRebuildParams is required and must be specified") + } + + // 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 + } + // body params + localVarPostBody = r.pipelineRebuildParams + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 412 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiPipelineShowRequest struct { + ctx context.Context + ApiService *PipelinesAPIService + appSlug string + pipelineId string +} + +func (r ApiPipelineShowRequest) Execute() (*V0PipelineShowResponseModel, *http.Response, error) { + return r.ApiService.PipelineShowExecute(r) +} + +/* +PipelineShow Get a pipeline of a given app + +Get the specified pipeline of a given Bitrise app. You need to provide both an app slug and a pipeline id. You can get the pipeline id either by calling the [/pipelines](https://api-docs.bitrise.io/#/pipelines/pipeline-list) endpoint or by clicking on the pipeline on bitrise.io and copying the id from the URL. The endpoint returns all the relevant data of the pipeline. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param pipelineId Pipeline id + @return ApiPipelineShowRequest +*/ +func (a *PipelinesAPIService) PipelineShow(ctx context.Context, appSlug string, pipelineId string) ApiPipelineShowRequest { + return ApiPipelineShowRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + pipelineId: pipelineId, + } +} + +// Execute executes the request +// @return V0PipelineShowResponseModel +func (a *PipelinesAPIService) PipelineShowExecute(r ApiPipelineShowRequest) (*V0PipelineShowResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0PipelineShowResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PipelinesAPIService.PipelineShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/pipelines/{pipeline-id}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"pipeline-id"+"}", url.PathEscape(parameterValueToString(r.pipelineId, "pipelineId")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_provisioning_profile.go b/go2/api_provisioning_profile.go new file mode 100644 index 0000000..9aeba03 --- /dev/null +++ b/go2/api_provisioning_profile.go @@ -0,0 +1,1059 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// ProvisioningProfileAPIService ProvisioningProfileAPI service +type ProvisioningProfileAPIService service + +type ApiProvisioningProfileConfirmRequest struct { + ctx context.Context + ApiService *ProvisioningProfileAPIService + appSlug string + provisioningProfileSlug string +} + +func (r ApiProvisioningProfileConfirmRequest) Execute() (*V0ProvisionProfileResponseModel, *http.Response, error) { + return r.ApiService.ProvisioningProfileConfirmExecute(r) +} + +/* +ProvisioningProfileConfirm Confirm a provisioning profile upload + +This is the last step of the upload process. Confirm the provisioning profile upload and view the file on the Code Signing tab of a specific app. Read more in our [Confirming the iOS code signing file upload](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param provisioningProfileSlug Provisioning profile slug + @return ApiProvisioningProfileConfirmRequest +*/ +func (a *ProvisioningProfileAPIService) ProvisioningProfileConfirm(ctx context.Context, appSlug string, provisioningProfileSlug string) ApiProvisioningProfileConfirmRequest { + return ApiProvisioningProfileConfirmRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + provisioningProfileSlug: provisioningProfileSlug, + } +} + +// Execute executes the request +// @return V0ProvisionProfileResponseModel +func (a *ProvisioningProfileAPIService) ProvisioningProfileConfirmExecute(r ApiProvisioningProfileConfirmRequest) (*V0ProvisionProfileResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProvisionProfileResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProvisioningProfileAPIService.ProvisioningProfileConfirm") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"provisioning-profile-slug"+"}", url.PathEscape(parameterValueToString(r.provisioningProfileSlug, "provisioningProfileSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiProvisioningProfileCreateRequest struct { + ctx context.Context + ApiService *ProvisioningProfileAPIService + appSlug string + provisioningProfile *V0ProvisionProfileUploadParams +} + +// Provisioning profile parameters such as file name and file size +func (r ApiProvisioningProfileCreateRequest) ProvisioningProfile(provisioningProfile V0ProvisionProfileUploadParams) ApiProvisioningProfileCreateRequest { + r.provisioningProfile = &provisioningProfile + return r +} + +func (r ApiProvisioningProfileCreateRequest) Execute() (*V0ProvisionProfileResponseModel, *http.Response, error) { + return r.ApiService.ProvisioningProfileCreateExecute(r) +} + +/* +ProvisioningProfileCreate Create a provisioning profile + +Create a temporary pre-signed upload URL (expires in 10 minutes) for the provisioning profile and upload it to AWS with a simple `curl` request. To complete the upload process, continue with the [POST /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-confirm) endpoint. Read more in our [Creating and uploading an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#creating--uploading-an-ios-code-signing-file) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiProvisioningProfileCreateRequest +*/ +func (a *ProvisioningProfileAPIService) ProvisioningProfileCreate(ctx context.Context, appSlug string) ApiProvisioningProfileCreateRequest { + return ApiProvisioningProfileCreateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0ProvisionProfileResponseModel +func (a *ProvisioningProfileAPIService) ProvisioningProfileCreateExecute(r ApiProvisioningProfileCreateRequest) (*V0ProvisionProfileResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProvisionProfileResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProvisioningProfileAPIService.ProvisioningProfileCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/provisioning-profiles" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.provisioningProfile == nil { + return localVarReturnValue, nil, reportError("provisioningProfile 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.provisioningProfile + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiProvisioningProfileDeleteRequest struct { + ctx context.Context + ApiService *ProvisioningProfileAPIService + appSlug string + provisioningProfileSlug string +} + +func (r ApiProvisioningProfileDeleteRequest) Execute() (*V0ProvisionProfileResponseModel, *http.Response, error) { + return r.ApiService.ProvisioningProfileDeleteExecute(r) +} + +/* +ProvisioningProfileDelete Delete a provisioning profile + +Delete an app's provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Deleting an iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#deleting-an-ios-code-signing-file) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param provisioningProfileSlug Provisioning profile slug + @return ApiProvisioningProfileDeleteRequest +*/ +func (a *ProvisioningProfileAPIService) ProvisioningProfileDelete(ctx context.Context, appSlug string, provisioningProfileSlug string) ApiProvisioningProfileDeleteRequest { + return ApiProvisioningProfileDeleteRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + provisioningProfileSlug: provisioningProfileSlug, + } +} + +// Execute executes the request +// @return V0ProvisionProfileResponseModel +func (a *ProvisioningProfileAPIService) ProvisioningProfileDeleteExecute(r ApiProvisioningProfileDeleteRequest) (*V0ProvisionProfileResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProvisionProfileResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProvisioningProfileAPIService.ProvisioningProfileDelete") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"provisioning-profile-slug"+"}", url.PathEscape(parameterValueToString(r.provisioningProfileSlug, "provisioningProfileSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiProvisioningProfileListRequest struct { + ctx context.Context + ApiService *ProvisioningProfileAPIService + appSlug string + next *string + limit *int32 +} + +// Slug of the first provisioning profile in the response +func (r ApiProvisioningProfileListRequest) Next(next string) ApiProvisioningProfileListRequest { + r.next = &next + return r +} + +// Max number of elements per page (default: 50) +func (r ApiProvisioningProfileListRequest) Limit(limit int32) ApiProvisioningProfileListRequest { + r.limit = &limit + return r +} + +func (r ApiProvisioningProfileListRequest) Execute() (*V0ProvisionProfileListResponseModel, *http.Response, error) { + return r.ApiService.ProvisioningProfileListExecute(r) +} + +/* +ProvisioningProfileList Get a list of the provisioning profiles + +List all the provisioning profiles that have been uploaded to a specific app. Read more in our [Listing the uploaded iOS code signing files of an app](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#listing-the-uploaded-ios-code-signing-files-of-an-app) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiProvisioningProfileListRequest +*/ +func (a *ProvisioningProfileAPIService) ProvisioningProfileList(ctx context.Context, appSlug string) ApiProvisioningProfileListRequest { + return ApiProvisioningProfileListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0ProvisionProfileListResponseModel +func (a *ProvisioningProfileAPIService) ProvisioningProfileListExecute(r ApiProvisioningProfileListRequest) (*V0ProvisionProfileListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProvisionProfileListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProvisioningProfileAPIService.ProvisioningProfileList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/provisioning-profiles" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiProvisioningProfileShowRequest struct { + ctx context.Context + ApiService *ProvisioningProfileAPIService + appSlug string + provisioningProfileSlug string +} + +func (r ApiProvisioningProfileShowRequest) Execute() (*V0ProvisionProfileResponseModel, *http.Response, error) { + return r.ApiService.ProvisioningProfileShowExecute(r) +} + +/* +ProvisioningProfileShow Get a specific provisioning profile + +Retrieve data of a specific provisioning profile. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Getting a specific iOS code signing file's data](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#getting-a-specific-ios-code-signing-files-data) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param provisioningProfileSlug Provisioning profile slug + @return ApiProvisioningProfileShowRequest +*/ +func (a *ProvisioningProfileAPIService) ProvisioningProfileShow(ctx context.Context, appSlug string, provisioningProfileSlug string) ApiProvisioningProfileShowRequest { + return ApiProvisioningProfileShowRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + provisioningProfileSlug: provisioningProfileSlug, + } +} + +// Execute executes the request +// @return V0ProvisionProfileResponseModel +func (a *ProvisioningProfileAPIService) ProvisioningProfileShowExecute(r ApiProvisioningProfileShowRequest) (*V0ProvisionProfileResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProvisionProfileResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProvisioningProfileAPIService.ProvisioningProfileShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"provisioning-profile-slug"+"}", url.PathEscape(parameterValueToString(r.provisioningProfileSlug, "provisioningProfileSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiProvisioningProfileUpdateRequest struct { + ctx context.Context + ApiService *ProvisioningProfileAPIService + appSlug string + provisioningProfileSlug string + provisioningProfile *V0ProvProfileDocumentUpdateParams +} + +// Provisioning profile parameters +func (r ApiProvisioningProfileUpdateRequest) ProvisioningProfile(provisioningProfile V0ProvProfileDocumentUpdateParams) ApiProvisioningProfileUpdateRequest { + r.provisioningProfile = &provisioningProfile + return r +} + +func (r ApiProvisioningProfileUpdateRequest) Execute() (*V0ProvisionProfileResponseModel, *http.Response, error) { + return r.ApiService.ProvisioningProfileUpdateExecute(r) +} + +/* +ProvisioningProfileUpdate Update a provisioning profile + +Update an uploaded provisioning profile's attributes. You can fetch the provisioning profile's slug if you call the [GET /apps/{app-slug}/provisioning-profiles](https://api-docs.bitrise.io/#/provisioning-profile/provisioning-profile-list) endpoint. Read more in our [Updating an uploaded iOS code signing file](https://devcenter.bitrise.io/api/managing-ios-code-signing-files/#confirming-the-ios-code-signing-file-upload) guide. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param provisioningProfileSlug Provisioning profile slug + @return ApiProvisioningProfileUpdateRequest +*/ +func (a *ProvisioningProfileAPIService) ProvisioningProfileUpdate(ctx context.Context, appSlug string, provisioningProfileSlug string) ApiProvisioningProfileUpdateRequest { + return ApiProvisioningProfileUpdateRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + provisioningProfileSlug: provisioningProfileSlug, + } +} + +// Execute executes the request +// @return V0ProvisionProfileResponseModel +func (a *ProvisioningProfileAPIService) ProvisioningProfileUpdateExecute(r ApiProvisioningProfileUpdateRequest) (*V0ProvisionProfileResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ProvisionProfileResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProvisioningProfileAPIService.ProvisioningProfileUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"provisioning-profile-slug"+"}", url.PathEscape(parameterValueToString(r.provisioningProfileSlug, "provisioningProfileSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.provisioningProfile == nil { + return localVarReturnValue, nil, reportError("provisioningProfile 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.provisioningProfile + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_releases.go b/go2/api_releases.go new file mode 100644 index 0000000..03bb1e1 --- /dev/null +++ b/go2/api_releases.go @@ -0,0 +1,391 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// ReleasesAPIService ReleasesAPI service +type ReleasesAPIService service + +type ApiReleaseCreateAppStoreRequest struct { + ctx context.Context + ApiService *ReleasesAPIService + appSlug string + app *V0ReleaseCreateAppStoreParams +} + +// App Store release parameters +func (r ApiReleaseCreateAppStoreRequest) App(app V0ReleaseCreateAppStoreParams) ApiReleaseCreateAppStoreRequest { + r.app = &app + return r +} + +func (r ApiReleaseCreateAppStoreRequest) Execute() (*V0ReleaseCreateAppStoreRespModel, *http.Response, error) { + return r.ApiService.ReleaseCreateAppStoreExecute(r) +} + +/* +ReleaseCreateAppStore Create a new Apple App Store release for the app. + +Create a new iOS release for the specified app. If the release candidate parameters (`release_branch` and `workflow`) are specified then the latest successful build is automatically picked up as release candidate and if `automatic_testflight_upload` is also turned on, then an upload to TestFlight is started immediately. You can use this endpoint to set up a fully automated release flow. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiReleaseCreateAppStoreRequest +*/ +func (a *ReleasesAPIService) ReleaseCreateAppStore(ctx context.Context, appSlug string) ApiReleaseCreateAppStoreRequest { + return ApiReleaseCreateAppStoreRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0ReleaseCreateAppStoreRespModel +func (a *ReleasesAPIService) ReleaseCreateAppStoreExecute(r ApiReleaseCreateAppStoreRequest) (*V0ReleaseCreateAppStoreRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ReleaseCreateAppStoreRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReleasesAPIService.ReleaseCreateAppStore") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/releases/app-store" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.app == nil { + return localVarReturnValue, nil, reportError("app 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.app + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiReleaseCreateGooglePlayRequest struct { + ctx context.Context + ApiService *ReleasesAPIService + appSlug string + app *V0ReleaseCreateGooglePlayParams +} + +// Google Play release parameters +func (r ApiReleaseCreateGooglePlayRequest) App(app V0ReleaseCreateGooglePlayParams) ApiReleaseCreateGooglePlayRequest { + r.app = &app + return r +} + +func (r ApiReleaseCreateGooglePlayRequest) Execute() (*V0ReleaseCreateGooglePlayRespModel, *http.Response, error) { + return r.ApiService.ReleaseCreateGooglePlayExecute(r) +} + +/* +ReleaseCreateGooglePlay Create a new Google Play Store release for the app. + +Create a new android release for the specified app. If the release candidate parameters (`release_branch` and `workflow`) are specified then the latest successful build is automatically picked up as release candidate and if `automatic_play_console_upload` is also turned on, then an upload to Google Play Console is started immediately. You can use this endpoint to set up a fully automated release flow. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiReleaseCreateGooglePlayRequest +*/ +func (a *ReleasesAPIService) ReleaseCreateGooglePlay(ctx context.Context, appSlug string) ApiReleaseCreateGooglePlayRequest { + return ApiReleaseCreateGooglePlayRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0ReleaseCreateGooglePlayRespModel +func (a *ReleasesAPIService) ReleaseCreateGooglePlayExecute(r ApiReleaseCreateGooglePlayRequest) (*V0ReleaseCreateGooglePlayRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0ReleaseCreateGooglePlayRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReleasesAPIService.ReleaseCreateGooglePlay") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/releases/google-play" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.app == nil { + return localVarReturnValue, nil, reportError("app 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.app + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 422 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_secrets.go b/go2/api_secrets.go new file mode 100644 index 0000000..7ea5200 --- /dev/null +++ b/go2/api_secrets.go @@ -0,0 +1,667 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// SecretsAPIService SecretsAPI service +type SecretsAPIService service + +type ApiSecretDeleteRequest struct { + ctx context.Context + ApiService *SecretsAPIService + appSlug string + secretName string +} + +func (r ApiSecretDeleteRequest) Execute() (*http.Response, error) { + return r.ApiService.SecretDeleteExecute(r) +} + +/* +SecretDelete Delete an application secret + +Delete an application secret. Requires administrator level privileges to the app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param secretName Secret name + @return ApiSecretDeleteRequest +*/ +func (a *SecretsAPIService) SecretDelete(ctx context.Context, appSlug string, secretName string) ApiSecretDeleteRequest { + return ApiSecretDeleteRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + secretName: secretName, + } +} + +// Execute executes the request +func (a *SecretsAPIService) SecretDeleteExecute(r ApiSecretDeleteRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretsAPIService.SecretDelete") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/secrets/{secret-name}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"secret-name"+"}", url.PathEscape(parameterValueToString(r.secretName, "secretName")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiSecretListRequest struct { + ctx context.Context + ApiService *SecretsAPIService + appSlug string +} + +func (r ApiSecretListRequest) Execute() (*V0AppSecretListResponse, *http.Response, error) { + return r.ApiService.SecretListExecute(r) +} + +/* +SecretList List the application secrets (with no values) + +List the application secrets (with no values). Requires administrator level privileges to the app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiSecretListRequest +*/ +func (a *SecretsAPIService) SecretList(ctx context.Context, appSlug string) ApiSecretListRequest { + return ApiSecretListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0AppSecretListResponse +func (a *SecretsAPIService) SecretListExecute(r ApiSecretListRequest) (*V0AppSecretListResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppSecretListResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretsAPIService.SecretList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/secrets" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiSecretUpsertRequest struct { + ctx context.Context + ApiService *SecretsAPIService + appSlug string + secretName string + app *V0AppSecretUpsertParams +} + +// Secret parameters +func (r ApiSecretUpsertRequest) App(app V0AppSecretUpsertParams) ApiSecretUpsertRequest { + r.app = &app + return r +} + +func (r ApiSecretUpsertRequest) Execute() (*http.Response, error) { + return r.ApiService.SecretUpsertExecute(r) +} + +/* +SecretUpsert Upsert an application secret + +Upsert an application secret. Requires administrator level privileges to the app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param secretName Secret name + @return ApiSecretUpsertRequest +*/ +func (a *SecretsAPIService) SecretUpsert(ctx context.Context, appSlug string, secretName string) ApiSecretUpsertRequest { + return ApiSecretUpsertRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + secretName: secretName, + } +} + +// Execute executes the request +func (a *SecretsAPIService) SecretUpsertExecute(r ApiSecretUpsertRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretsAPIService.SecretUpsert") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/secrets/{secret-name}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"secret-name"+"}", url.PathEscape(parameterValueToString(r.secretName, "secretName")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.app == nil { + return nil, reportError("app 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.app + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiSecretValueGetRequest struct { + ctx context.Context + ApiService *SecretsAPIService + appSlug string + secretName string +} + +func (r ApiSecretValueGetRequest) Execute() (*V0AppSecretGetValueResponse, *http.Response, error) { + return r.ApiService.SecretValueGetExecute(r) +} + +/* +SecretValueGet Get the value of an (unprotected) application secrets + +Get the value of an (unprotected) application secrets. Requires administrator level privileges to the app. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param secretName Secret name + @return ApiSecretValueGetRequest +*/ +func (a *SecretsAPIService) SecretValueGet(ctx context.Context, appSlug string, secretName string) ApiSecretValueGetRequest { + return ApiSecretValueGetRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + secretName: secretName, + } +} + +// Execute executes the request +// @return V0AppSecretGetValueResponse +func (a *SecretsAPIService) SecretValueGetExecute(r ApiSecretValueGetRequest) (*V0AppSecretGetValueResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0AppSecretGetValueResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SecretsAPIService.SecretValueGet") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/secrets/{secret-name}/value" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"secret-name"+"}", url.PathEscape(parameterValueToString(r.secretName, "secretName")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_test_devices.go b/go2/api_test_devices.go new file mode 100644 index 0000000..54a7d82 --- /dev/null +++ b/go2/api_test_devices.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// TestDevicesAPIService TestDevicesAPI service +type TestDevicesAPIService service + +type ApiTestDeviceListRequest struct { + ctx context.Context + ApiService *TestDevicesAPIService + appSlug string +} + +func (r ApiTestDeviceListRequest) Execute() (*V0TestDeviceListResponseModel, *http.Response, error) { + return r.ApiService.TestDeviceListExecute(r) +} + +/* +TestDeviceList List the test devices for an app + +List registered test devices of all members of a specified Bitrise app + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @return ApiTestDeviceListRequest +*/ +func (a *TestDevicesAPIService) TestDeviceList(ctx context.Context, appSlug string) ApiTestDeviceListRequest { + return ApiTestDeviceListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + } +} + +// Execute executes the request +// @return V0TestDeviceListResponseModel +func (a *TestDevicesAPIService) TestDeviceListExecute(r ApiTestDeviceListRequest) (*V0TestDeviceListResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0TestDeviceListResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TestDevicesAPIService.TestDeviceList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/test-devices" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["AddonAuthToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Bitrise-Addon-Auth-Token"] = key + } + } + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_user.go b/go2/api_user.go new file mode 100644 index 0000000..88c05e5 --- /dev/null +++ b/go2/api_user.go @@ -0,0 +1,658 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// UserAPIService UserAPI service +type UserAPIService service + +type ApiUserMachineTypeUpdateRequest struct { + ctx context.Context + ApiService *UserAPIService + userSlug string + types *V0OrganizationUpdateMachineTypeParams +} + +// Machine type to migrate from and to +func (r ApiUserMachineTypeUpdateRequest) Types(types V0OrganizationUpdateMachineTypeParams) ApiUserMachineTypeUpdateRequest { + r.types = &types + return r +} + +func (r ApiUserMachineTypeUpdateRequest) Execute() (*V0OrganizationUpdateMachineTypeResponse, *http.Response, error) { + return r.ApiService.UserMachineTypeUpdateExecute(r) +} + +/* +UserMachineTypeUpdate Migrate machine types + +Migrates all apps' machine types of a user from one machine type to another + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userSlug User slug + @return ApiUserMachineTypeUpdateRequest +*/ +func (a *UserAPIService) UserMachineTypeUpdate(ctx context.Context, userSlug string) ApiUserMachineTypeUpdateRequest { + return ApiUserMachineTypeUpdateRequest{ + ApiService: a, + ctx: ctx, + userSlug: userSlug, + } +} + +// Execute executes the request +// @return V0OrganizationUpdateMachineTypeResponse +func (a *UserAPIService) UserMachineTypeUpdateExecute(r ApiUserMachineTypeUpdateRequest) (*V0OrganizationUpdateMachineTypeResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0OrganizationUpdateMachineTypeResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.UserMachineTypeUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/user/{user-slug}/apps/machine_types" + localVarPath = strings.Replace(localVarPath, "{"+"user-slug"+"}", url.PathEscape(parameterValueToString(r.userSlug, "userSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.types == nil { + return localVarReturnValue, nil, reportError("types 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.types + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiUserPlanRequest struct { + ctx context.Context + ApiService *UserAPIService +} + +func (r ApiUserPlanRequest) Execute() (*V0UserPlanRespModel, *http.Response, error) { + return r.ApiService.UserPlanExecute(r) +} + +/* +UserPlan The subscription plan of the user + +Get the subscription of the user: the current plan, any pending plans, and the duration of a trial period if applicable + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUserPlanRequest +*/ +func (a *UserAPIService) UserPlan(ctx context.Context) ApiUserPlanRequest { + return ApiUserPlanRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V0UserPlanRespModel +func (a *UserAPIService) UserPlanExecute(r ApiUserPlanRequest) (*V0UserPlanRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0UserPlanRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.UserPlan") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/me/plan" + + 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiUserProfileRequest struct { + ctx context.Context + ApiService *UserAPIService +} + +func (r ApiUserProfileRequest) Execute() (*V0UserProfileRespModel, *http.Response, error) { + return r.ApiService.UserProfileExecute(r) +} + +/* +UserProfile Get your profile info + +Shows the authenticated users profile info + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUserProfileRequest +*/ +func (a *UserAPIService) UserProfile(ctx context.Context) ApiUserProfileRequest { + return ApiUserProfileRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return V0UserProfileRespModel +func (a *UserAPIService) UserProfileExecute(r ApiUserProfileRequest) (*V0UserProfileRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0UserProfileRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.UserProfile") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/me" + + 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiUserShowRequest struct { + ctx context.Context + ApiService *UserAPIService + userSlug string +} + +func (r ApiUserShowRequest) Execute() (*V0UserProfileRespModel, *http.Response, error) { + return r.ApiService.UserShowExecute(r) +} + +/* +UserShow Get a specific user + +Show information about a specific user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param userSlug User slug + @return ApiUserShowRequest +*/ +func (a *UserAPIService) UserShow(ctx context.Context, userSlug string) ApiUserShowRequest { + return ApiUserShowRequest{ + ApiService: a, + ctx: ctx, + userSlug: userSlug, + } +} + +// Execute executes the request +// @return V0UserProfileRespModel +func (a *UserAPIService) UserShowExecute(r ApiUserShowRequest) (*V0UserProfileRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0UserProfileRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UserAPIService.UserShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/users/{user-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"user-slug"+"}", url.PathEscape(parameterValueToString(r.userSlug, "userSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/api_webhook_delivery_item.go b/go2/api_webhook_delivery_item.go new file mode 100644 index 0000000..d09e7fe --- /dev/null +++ b/go2/api_webhook_delivery_item.go @@ -0,0 +1,512 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// WebhookDeliveryItemAPIService WebhookDeliveryItemAPI service +type WebhookDeliveryItemAPIService service + +type ApiWebhookDeliveryItemListRequest struct { + ctx context.Context + ApiService *WebhookDeliveryItemAPIService + appSlug string + appWebhookSlug string + next *string + limit *int32 +} + +// Slug of the first delivery item in the response +func (r ApiWebhookDeliveryItemListRequest) Next(next string) ApiWebhookDeliveryItemListRequest { + r.next = &next + return r +} + +// Max number of elements per page (default: 50) +func (r ApiWebhookDeliveryItemListRequest) Limit(limit int32) ApiWebhookDeliveryItemListRequest { + r.limit = &limit + return r +} + +func (r ApiWebhookDeliveryItemListRequest) Execute() (*V0WebhookDeliveryItemShowResponseModel, *http.Response, error) { + return r.ApiService.WebhookDeliveryItemListExecute(r) +} + +/* +WebhookDeliveryItemList List the webhook delivery items of an app + +List all the delivery items of an outgoing webhook of a Bitrise application + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param appWebhookSlug App webhook slug + @return ApiWebhookDeliveryItemListRequest +*/ +func (a *WebhookDeliveryItemAPIService) WebhookDeliveryItemList(ctx context.Context, appSlug string, appWebhookSlug string) ApiWebhookDeliveryItemListRequest { + return ApiWebhookDeliveryItemListRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + appWebhookSlug: appWebhookSlug, + } +} + +// Execute executes the request +// @return V0WebhookDeliveryItemShowResponseModel +func (a *WebhookDeliveryItemAPIService) WebhookDeliveryItemListExecute(r ApiWebhookDeliveryItemListRequest) (*V0WebhookDeliveryItemShowResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0WebhookDeliveryItemShowResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhookDeliveryItemAPIService.WebhookDeliveryItemList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"app-webhook-slug"+"}", url.PathEscape(parameterValueToString(r.appWebhookSlug, "appWebhookSlug")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.next != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "next", r.next, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + // 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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiWebhookDeliveryItemRedeliverRequest struct { + ctx context.Context + ApiService *WebhookDeliveryItemAPIService + appSlug string + appWebhookSlug string + webhookDeliveryItemSlug string +} + +func (r ApiWebhookDeliveryItemRedeliverRequest) Execute() (*ServiceStandardErrorRespModel, *http.Response, error) { + return r.ApiService.WebhookDeliveryItemRedeliverExecute(r) +} + +/* +WebhookDeliveryItemRedeliver Re-deliver the webhook delivery items of an app + +Re-deliver the delivery item of a specified webhook of a Bitrise application + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param appWebhookSlug App webhook slug + @param webhookDeliveryItemSlug Webhook delivery item slug + @return ApiWebhookDeliveryItemRedeliverRequest +*/ +func (a *WebhookDeliveryItemAPIService) WebhookDeliveryItemRedeliver(ctx context.Context, appSlug string, appWebhookSlug string, webhookDeliveryItemSlug string) ApiWebhookDeliveryItemRedeliverRequest { + return ApiWebhookDeliveryItemRedeliverRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + appWebhookSlug: appWebhookSlug, + webhookDeliveryItemSlug: webhookDeliveryItemSlug, + } +} + +// Execute executes the request +// @return ServiceStandardErrorRespModel +func (a *WebhookDeliveryItemAPIService) WebhookDeliveryItemRedeliverExecute(r ApiWebhookDeliveryItemRedeliverRequest) (*ServiceStandardErrorRespModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ServiceStandardErrorRespModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhookDeliveryItemAPIService.WebhookDeliveryItemRedeliver") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}/redeliver" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"app-webhook-slug"+"}", url.PathEscape(parameterValueToString(r.appWebhookSlug, "appWebhookSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"webhook-delivery-item-slug"+"}", url.PathEscape(parameterValueToString(r.webhookDeliveryItemSlug, "webhookDeliveryItemSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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 ApiWebhookDeliveryItemShowRequest struct { + ctx context.Context + ApiService *WebhookDeliveryItemAPIService + appSlug string + appWebhookSlug string + webhookDeliveryItemSlug string +} + +func (r ApiWebhookDeliveryItemShowRequest) Execute() (*V0WebhookDeliveryItemResponseModel, *http.Response, error) { + return r.ApiService.WebhookDeliveryItemShowExecute(r) +} + +/* +WebhookDeliveryItemShow Get a specific delivery item of a webhook + +Get the specified delivery item of an outgoing webhook of a Bitrise application + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param appSlug App slug + @param appWebhookSlug App webhook slug + @param webhookDeliveryItemSlug Webhook delivery item slug + @return ApiWebhookDeliveryItemShowRequest +*/ +func (a *WebhookDeliveryItemAPIService) WebhookDeliveryItemShow(ctx context.Context, appSlug string, appWebhookSlug string, webhookDeliveryItemSlug string) ApiWebhookDeliveryItemShowRequest { + return ApiWebhookDeliveryItemShowRequest{ + ApiService: a, + ctx: ctx, + appSlug: appSlug, + appWebhookSlug: appWebhookSlug, + webhookDeliveryItemSlug: webhookDeliveryItemSlug, + } +} + +// Execute executes the request +// @return V0WebhookDeliveryItemResponseModel +func (a *WebhookDeliveryItemAPIService) WebhookDeliveryItemShowExecute(r ApiWebhookDeliveryItemShowRequest) (*V0WebhookDeliveryItemResponseModel, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *V0WebhookDeliveryItemResponseModel + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WebhookDeliveryItemAPIService.WebhookDeliveryItemShow") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}" + localVarPath = strings.Replace(localVarPath, "{"+"app-slug"+"}", url.PathEscape(parameterValueToString(r.appSlug, "appSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"app-webhook-slug"+"}", url.PathEscape(parameterValueToString(r.appWebhookSlug, "appWebhookSlug")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"webhook-delivery-item-slug"+"}", url.PathEscape(parameterValueToString(r.webhookDeliveryItemSlug, "webhookDeliveryItemSlug")), -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 + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["PersonalAccessToken"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + 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, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ServiceStandardErrorRespModel + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + 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/go2/client.go b/go2/client.go new file mode 100644 index 0000000..869bbf4 --- /dev/null +++ b/go2/client.go @@ -0,0 +1,724 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +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 Bitrise API API v0.1 +// 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 + + ActivityAPI *ActivityAPIService + + AddonsAPI *AddonsAPIService + + AndroidKeystoreFileAPI *AndroidKeystoreFileAPIService + + AppSetupAPI *AppSetupAPIService + + AppleApiCredentialsAPI *AppleApiCredentialsAPIService + + ApplicationAPI *ApplicationAPIService + + BuildArtifactAPI *BuildArtifactAPIService + + BuildCertificateAPI *BuildCertificateAPIService + + BuildRequestAPI *BuildRequestAPIService + + BuildsAPI *BuildsAPIService + + GenericProjectFileAPI *GenericProjectFileAPIService + + KeyValueCacheAPI *KeyValueCacheAPIService + + LocalBuildsAPI *LocalBuildsAPIService + + OrganizationsAPI *OrganizationsAPIService + + OutgoingWebhookAPI *OutgoingWebhookAPIService + + PipelinesAPI *PipelinesAPIService + + ProvisioningProfileAPI *ProvisioningProfileAPIService + + ReleasesAPI *ReleasesAPIService + + SecretsAPI *SecretsAPIService + + TestDevicesAPI *TestDevicesAPIService + + UserAPI *UserAPIService + + WebhookDeliveryItemAPI *WebhookDeliveryItemAPIService +} + +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.ActivityAPI = (*ActivityAPIService)(&c.common) + c.AddonsAPI = (*AddonsAPIService)(&c.common) + c.AndroidKeystoreFileAPI = (*AndroidKeystoreFileAPIService)(&c.common) + c.AppSetupAPI = (*AppSetupAPIService)(&c.common) + c.AppleApiCredentialsAPI = (*AppleApiCredentialsAPIService)(&c.common) + c.ApplicationAPI = (*ApplicationAPIService)(&c.common) + c.BuildArtifactAPI = (*BuildArtifactAPIService)(&c.common) + c.BuildCertificateAPI = (*BuildCertificateAPIService)(&c.common) + c.BuildRequestAPI = (*BuildRequestAPIService)(&c.common) + c.BuildsAPI = (*BuildsAPIService)(&c.common) + c.GenericProjectFileAPI = (*GenericProjectFileAPIService)(&c.common) + c.KeyValueCacheAPI = (*KeyValueCacheAPIService)(&c.common) + c.LocalBuildsAPI = (*LocalBuildsAPIService)(&c.common) + c.OrganizationsAPI = (*OrganizationsAPIService)(&c.common) + c.OutgoingWebhookAPI = (*OutgoingWebhookAPIService)(&c.common) + c.PipelinesAPI = (*PipelinesAPIService)(&c.common) + c.ProvisioningProfileAPI = (*ProvisioningProfileAPIService)(&c.common) + c.ReleasesAPI = (*ReleasesAPIService)(&c.common) + c.SecretsAPI = (*SecretsAPIService)(&c.common) + c.TestDevicesAPI = (*TestDevicesAPIService)(&c.common) + c.UserAPI = (*UserAPIService)(&c.common) + c.WebhookDeliveryItemAPI = (*WebhookDeliveryItemAPIService)(&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{}, 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, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), 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. + + } + + 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 +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// 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/go2/configuration.go b/go2/configuration.go new file mode 100644 index 0000000..b1e5a7a --- /dev/null +++ b/go2/configuration.go @@ -0,0 +1,219 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +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 ( + // ContextAPIKeys takes a string apikey as authentication for the request + ContextAPIKeys = contextKey("apiKeys") + + // 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: "https://api.bitrise.io/v0.1", + 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/go2/docs/ActivityAPI.md b/go2/docs/ActivityAPI.md new file mode 100644 index 0000000..1b414cf --- /dev/null +++ b/go2/docs/ActivityAPI.md @@ -0,0 +1,77 @@ +# \ActivityAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ActivityList**](ActivityAPI.md#ActivityList) | **Get** /me/activities | Get list of Bitrise activity events + + + +## ActivityList + +> V0ActivityEventListResponseModel ActivityList(ctx).Next(next).Limit(limit).Execute() + +Get list of Bitrise activity events + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + next := "next_example" // string | Slug of the first activity event in the response (optional) + limit := int32(56) // int32 | Max number of elements per page (default: 50) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ActivityAPI.ActivityList(context.Background()).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ActivityAPI.ActivityList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ActivityList`: V0ActivityEventListResponseModel + fmt.Fprintf(os.Stdout, "Response from `ActivityAPI.ActivityList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiActivityListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **next** | **string** | Slug of the first activity event in the response | + **limit** | **int32** | Max number of elements per page (default: 50) | + +### Return type + +[**V0ActivityEventListResponseModel**](V0ActivityEventListResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/AddonsAPI.md b/go2/docs/AddonsAPI.md new file mode 100644 index 0000000..5387ffc --- /dev/null +++ b/go2/docs/AddonsAPI.md @@ -0,0 +1,354 @@ +# \AddonsAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AddonListByApp**](AddonsAPI.md#AddonListByApp) | **Get** /apps/{app-slug}/addons | Get list of the addons for apps +[**AddonListByOrganization**](AddonsAPI.md#AddonListByOrganization) | **Get** /organizations/{organization-slug}/addons | Get list of the addons for organization +[**AddonListByUser**](AddonsAPI.md#AddonListByUser) | **Get** /users/{user-slug}/addons | Get list of the addons for user +[**AddonsList**](AddonsAPI.md#AddonsList) | **Get** /addons | Get list of available Bitrise addons +[**AddonsShow**](AddonsAPI.md#AddonsShow) | **Get** /addons/{addon-id} | Get a specific Bitrise addon + + + +## AddonListByApp + +> V0AppAddOnsListResponseModel AddonListByApp(ctx, appSlug).Execute() + +Get list of the addons for apps + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AddonsAPI.AddonListByApp(context.Background(), appSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AddonsAPI.AddonListByApp``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddonListByApp`: V0AppAddOnsListResponseModel + fmt.Fprintf(os.Stdout, "Response from `AddonsAPI.AddonListByApp`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAddonListByAppRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0AppAddOnsListResponseModel**](V0AppAddOnsListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AddonListByOrganization + +> V0OwnerAddOnsListResponseModel AddonListByOrganization(ctx, organizationSlug).Execute() + +Get list of the addons for organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + organizationSlug := "organizationSlug_example" // string | Organization slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AddonsAPI.AddonListByOrganization(context.Background(), organizationSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AddonsAPI.AddonListByOrganization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddonListByOrganization`: V0OwnerAddOnsListResponseModel + fmt.Fprintf(os.Stdout, "Response from `AddonsAPI.AddonListByOrganization`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**organizationSlug** | **string** | Organization slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAddonListByOrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0OwnerAddOnsListResponseModel**](V0OwnerAddOnsListResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AddonListByUser + +> V0OwnerAddOnsListResponseModel AddonListByUser(ctx, userSlug).Execute() + +Get list of the addons for user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + userSlug := "userSlug_example" // string | User slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AddonsAPI.AddonListByUser(context.Background(), userSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AddonsAPI.AddonListByUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddonListByUser`: V0OwnerAddOnsListResponseModel + fmt.Fprintf(os.Stdout, "Response from `AddonsAPI.AddonListByUser`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userSlug** | **string** | User slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAddonListByUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0OwnerAddOnsListResponseModel**](V0OwnerAddOnsListResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AddonsList + +> V0AddonsListResponseModel AddonsList(ctx).Execute() + +Get list of available Bitrise addons + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AddonsAPI.AddonsList(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AddonsAPI.AddonsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddonsList`: V0AddonsListResponseModel + fmt.Fprintf(os.Stdout, "Response from `AddonsAPI.AddonsList`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiAddonsListRequest struct via the builder pattern + + +### Return type + +[**V0AddonsListResponseModel**](V0AddonsListResponseModel.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) + + +## AddonsShow + +> V0AddonsShowResponseModel AddonsShow(ctx, addonId).Execute() + +Get a specific Bitrise addon + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + addonId := "addonId_example" // string | Addon ID + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AddonsAPI.AddonsShow(context.Background(), addonId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AddonsAPI.AddonsShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AddonsShow`: V0AddonsShowResponseModel + fmt.Fprintf(os.Stdout, "Response from `AddonsAPI.AddonsShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**addonId** | **string** | Addon ID | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAddonsShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0AddonsShowResponseModel**](V0AddonsShowResponseModel.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) + diff --git a/go2/docs/AddonsAddon.md b/go2/docs/AddonsAddon.md new file mode 100644 index 0000000..e0ba6c2 --- /dev/null +++ b/go2/docs/AddonsAddon.md @@ -0,0 +1,472 @@ +# AddonsAddon + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BannerImage** | Pointer to **string** | | [optional] +**CardHeaderColors** | Pointer to **[]string** | | [optional] +**Categories** | Pointer to **[]string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**DeveloperLinks** | Pointer to [**[]AddonsDeveloperLink**](AddonsDeveloperLink.md) | | [optional] +**DocumentationUrl** | Pointer to **string** | | [optional] +**HasUi** | Pointer to **bool** | | [optional] +**Icon** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**IsBeta** | Pointer to **bool** | | [optional] +**Plans** | Pointer to [**[]AddonsPlan**](AddonsPlan.md) | | [optional] +**Platforms** | Pointer to **[]string** | | [optional] +**PreviewImages** | Pointer to **[]string** | | [optional] +**SetupGuide** | Pointer to [**AddonsSetupGuide**](AddonsSetupGuide.md) | | [optional] +**Subtitle** | Pointer to **string** | | [optional] +**Summary** | Pointer to **string** | | [optional] +**Title** | Pointer to **string** | | [optional] + +## Methods + +### NewAddonsAddon + +`func NewAddonsAddon() *AddonsAddon` + +NewAddonsAddon instantiates a new AddonsAddon object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddonsAddonWithDefaults + +`func NewAddonsAddonWithDefaults() *AddonsAddon` + +NewAddonsAddonWithDefaults instantiates a new AddonsAddon object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBannerImage + +`func (o *AddonsAddon) GetBannerImage() string` + +GetBannerImage returns the BannerImage field if non-nil, zero value otherwise. + +### GetBannerImageOk + +`func (o *AddonsAddon) GetBannerImageOk() (*string, bool)` + +GetBannerImageOk returns a tuple with the BannerImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBannerImage + +`func (o *AddonsAddon) SetBannerImage(v string)` + +SetBannerImage sets BannerImage field to given value. + +### HasBannerImage + +`func (o *AddonsAddon) HasBannerImage() bool` + +HasBannerImage returns a boolean if a field has been set. + +### GetCardHeaderColors + +`func (o *AddonsAddon) GetCardHeaderColors() []string` + +GetCardHeaderColors returns the CardHeaderColors field if non-nil, zero value otherwise. + +### GetCardHeaderColorsOk + +`func (o *AddonsAddon) GetCardHeaderColorsOk() (*[]string, bool)` + +GetCardHeaderColorsOk returns a tuple with the CardHeaderColors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCardHeaderColors + +`func (o *AddonsAddon) SetCardHeaderColors(v []string)` + +SetCardHeaderColors sets CardHeaderColors field to given value. + +### HasCardHeaderColors + +`func (o *AddonsAddon) HasCardHeaderColors() bool` + +HasCardHeaderColors returns a boolean if a field has been set. + +### GetCategories + +`func (o *AddonsAddon) GetCategories() []string` + +GetCategories returns the Categories field if non-nil, zero value otherwise. + +### GetCategoriesOk + +`func (o *AddonsAddon) GetCategoriesOk() (*[]string, bool)` + +GetCategoriesOk returns a tuple with the Categories field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCategories + +`func (o *AddonsAddon) SetCategories(v []string)` + +SetCategories sets Categories field to given value. + +### HasCategories + +`func (o *AddonsAddon) HasCategories() bool` + +HasCategories returns a boolean if a field has been set. + +### GetDescription + +`func (o *AddonsAddon) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AddonsAddon) 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 *AddonsAddon) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *AddonsAddon) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDeveloperLinks + +`func (o *AddonsAddon) GetDeveloperLinks() []AddonsDeveloperLink` + +GetDeveloperLinks returns the DeveloperLinks field if non-nil, zero value otherwise. + +### GetDeveloperLinksOk + +`func (o *AddonsAddon) GetDeveloperLinksOk() (*[]AddonsDeveloperLink, bool)` + +GetDeveloperLinksOk returns a tuple with the DeveloperLinks field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeveloperLinks + +`func (o *AddonsAddon) SetDeveloperLinks(v []AddonsDeveloperLink)` + +SetDeveloperLinks sets DeveloperLinks field to given value. + +### HasDeveloperLinks + +`func (o *AddonsAddon) HasDeveloperLinks() bool` + +HasDeveloperLinks returns a boolean if a field has been set. + +### GetDocumentationUrl + +`func (o *AddonsAddon) GetDocumentationUrl() string` + +GetDocumentationUrl returns the DocumentationUrl field if non-nil, zero value otherwise. + +### GetDocumentationUrlOk + +`func (o *AddonsAddon) 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 *AddonsAddon) SetDocumentationUrl(v string)` + +SetDocumentationUrl sets DocumentationUrl field to given value. + +### HasDocumentationUrl + +`func (o *AddonsAddon) HasDocumentationUrl() bool` + +HasDocumentationUrl returns a boolean if a field has been set. + +### GetHasUi + +`func (o *AddonsAddon) GetHasUi() bool` + +GetHasUi returns the HasUi field if non-nil, zero value otherwise. + +### GetHasUiOk + +`func (o *AddonsAddon) GetHasUiOk() (*bool, bool)` + +GetHasUiOk returns a tuple with the HasUi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasUi + +`func (o *AddonsAddon) SetHasUi(v bool)` + +SetHasUi sets HasUi field to given value. + +### HasHasUi + +`func (o *AddonsAddon) HasHasUi() bool` + +HasHasUi returns a boolean if a field has been set. + +### GetIcon + +`func (o *AddonsAddon) GetIcon() string` + +GetIcon returns the Icon field if non-nil, zero value otherwise. + +### GetIconOk + +`func (o *AddonsAddon) GetIconOk() (*string, bool)` + +GetIconOk returns a tuple with the Icon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIcon + +`func (o *AddonsAddon) SetIcon(v string)` + +SetIcon sets Icon field to given value. + +### HasIcon + +`func (o *AddonsAddon) HasIcon() bool` + +HasIcon returns a boolean if a field has been set. + +### GetId + +`func (o *AddonsAddon) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AddonsAddon) 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 *AddonsAddon) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AddonsAddon) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIsBeta + +`func (o *AddonsAddon) GetIsBeta() bool` + +GetIsBeta returns the IsBeta field if non-nil, zero value otherwise. + +### GetIsBetaOk + +`func (o *AddonsAddon) GetIsBetaOk() (*bool, bool)` + +GetIsBetaOk returns a tuple with the IsBeta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsBeta + +`func (o *AddonsAddon) SetIsBeta(v bool)` + +SetIsBeta sets IsBeta field to given value. + +### HasIsBeta + +`func (o *AddonsAddon) HasIsBeta() bool` + +HasIsBeta returns a boolean if a field has been set. + +### GetPlans + +`func (o *AddonsAddon) GetPlans() []AddonsPlan` + +GetPlans returns the Plans field if non-nil, zero value otherwise. + +### GetPlansOk + +`func (o *AddonsAddon) GetPlansOk() (*[]AddonsPlan, bool)` + +GetPlansOk returns a tuple with the Plans field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlans + +`func (o *AddonsAddon) SetPlans(v []AddonsPlan)` + +SetPlans sets Plans field to given value. + +### HasPlans + +`func (o *AddonsAddon) HasPlans() bool` + +HasPlans returns a boolean if a field has been set. + +### GetPlatforms + +`func (o *AddonsAddon) GetPlatforms() []string` + +GetPlatforms returns the Platforms field if non-nil, zero value otherwise. + +### GetPlatformsOk + +`func (o *AddonsAddon) GetPlatformsOk() (*[]string, bool)` + +GetPlatformsOk returns a tuple with the Platforms field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatforms + +`func (o *AddonsAddon) SetPlatforms(v []string)` + +SetPlatforms sets Platforms field to given value. + +### HasPlatforms + +`func (o *AddonsAddon) HasPlatforms() bool` + +HasPlatforms returns a boolean if a field has been set. + +### GetPreviewImages + +`func (o *AddonsAddon) GetPreviewImages() []string` + +GetPreviewImages returns the PreviewImages field if non-nil, zero value otherwise. + +### GetPreviewImagesOk + +`func (o *AddonsAddon) GetPreviewImagesOk() (*[]string, bool)` + +GetPreviewImagesOk returns a tuple with the PreviewImages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPreviewImages + +`func (o *AddonsAddon) SetPreviewImages(v []string)` + +SetPreviewImages sets PreviewImages field to given value. + +### HasPreviewImages + +`func (o *AddonsAddon) HasPreviewImages() bool` + +HasPreviewImages returns a boolean if a field has been set. + +### GetSetupGuide + +`func (o *AddonsAddon) GetSetupGuide() AddonsSetupGuide` + +GetSetupGuide returns the SetupGuide field if non-nil, zero value otherwise. + +### GetSetupGuideOk + +`func (o *AddonsAddon) GetSetupGuideOk() (*AddonsSetupGuide, bool)` + +GetSetupGuideOk returns a tuple with the SetupGuide field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSetupGuide + +`func (o *AddonsAddon) SetSetupGuide(v AddonsSetupGuide)` + +SetSetupGuide sets SetupGuide field to given value. + +### HasSetupGuide + +`func (o *AddonsAddon) HasSetupGuide() bool` + +HasSetupGuide returns a boolean if a field has been set. + +### GetSubtitle + +`func (o *AddonsAddon) GetSubtitle() string` + +GetSubtitle returns the Subtitle field if non-nil, zero value otherwise. + +### GetSubtitleOk + +`func (o *AddonsAddon) GetSubtitleOk() (*string, bool)` + +GetSubtitleOk returns a tuple with the Subtitle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubtitle + +`func (o *AddonsAddon) SetSubtitle(v string)` + +SetSubtitle sets Subtitle field to given value. + +### HasSubtitle + +`func (o *AddonsAddon) HasSubtitle() bool` + +HasSubtitle returns a boolean if a field has been set. + +### GetSummary + +`func (o *AddonsAddon) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *AddonsAddon) GetSummaryOk() (*string, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *AddonsAddon) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *AddonsAddon) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### GetTitle + +`func (o *AddonsAddon) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *AddonsAddon) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *AddonsAddon) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *AddonsAddon) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/AddonsDeveloperLink.md b/go2/docs/AddonsDeveloperLink.md new file mode 100644 index 0000000..f6d69dd --- /dev/null +++ b/go2/docs/AddonsDeveloperLink.md @@ -0,0 +1,82 @@ +# AddonsDeveloperLink + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Title** | Pointer to **string** | | [optional] +**Url** | Pointer to **string** | | [optional] + +## Methods + +### NewAddonsDeveloperLink + +`func NewAddonsDeveloperLink() *AddonsDeveloperLink` + +NewAddonsDeveloperLink instantiates a new AddonsDeveloperLink object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddonsDeveloperLinkWithDefaults + +`func NewAddonsDeveloperLinkWithDefaults() *AddonsDeveloperLink` + +NewAddonsDeveloperLinkWithDefaults instantiates a new AddonsDeveloperLink object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTitle + +`func (o *AddonsDeveloperLink) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *AddonsDeveloperLink) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *AddonsDeveloperLink) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *AddonsDeveloperLink) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetUrl + +`func (o *AddonsDeveloperLink) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *AddonsDeveloperLink) 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 *AddonsDeveloperLink) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *AddonsDeveloperLink) 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/go2/docs/AddonsFeature.md b/go2/docs/AddonsFeature.md new file mode 100644 index 0000000..d13e7ec --- /dev/null +++ b/go2/docs/AddonsFeature.md @@ -0,0 +1,108 @@ +# AddonsFeature + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | Pointer to **bool** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Quantity** | Pointer to **string** | | [optional] + +## Methods + +### NewAddonsFeature + +`func NewAddonsFeature() *AddonsFeature` + +NewAddonsFeature instantiates a new AddonsFeature object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddonsFeatureWithDefaults + +`func NewAddonsFeatureWithDefaults() *AddonsFeature` + +NewAddonsFeatureWithDefaults instantiates a new AddonsFeature object +This 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 *AddonsFeature) GetAvailable() bool` + +GetAvailable returns the Available field if non-nil, zero value otherwise. + +### GetAvailableOk + +`func (o *AddonsFeature) 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 *AddonsFeature) SetAvailable(v bool)` + +SetAvailable sets Available field to given value. + +### HasAvailable + +`func (o *AddonsFeature) HasAvailable() bool` + +HasAvailable returns a boolean if a field has been set. + +### GetDescription + +`func (o *AddonsFeature) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AddonsFeature) 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 *AddonsFeature) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *AddonsFeature) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetQuantity + +`func (o *AddonsFeature) GetQuantity() string` + +GetQuantity returns the Quantity field if non-nil, zero value otherwise. + +### GetQuantityOk + +`func (o *AddonsFeature) GetQuantityOk() (*string, bool)` + +GetQuantityOk returns a tuple with the Quantity field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetQuantity + +`func (o *AddonsFeature) SetQuantity(v string)` + +SetQuantity sets Quantity field to given value. + +### HasQuantity + +`func (o *AddonsFeature) HasQuantity() bool` + +HasQuantity returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/AddonsPlan.md b/go2/docs/AddonsPlan.md new file mode 100644 index 0000000..c7ffb86 --- /dev/null +++ b/go2/docs/AddonsPlan.md @@ -0,0 +1,134 @@ +# AddonsPlan + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Features** | Pointer to [**[]AddonsFeature**](AddonsFeature.md) | | [optional] +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Price** | Pointer to **int32** | | [optional] + +## Methods + +### NewAddonsPlan + +`func NewAddonsPlan() *AddonsPlan` + +NewAddonsPlan instantiates a new AddonsPlan object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddonsPlanWithDefaults + +`func NewAddonsPlanWithDefaults() *AddonsPlan` + +NewAddonsPlanWithDefaults instantiates a new AddonsPlan object +This 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 *AddonsPlan) GetFeatures() []AddonsFeature` + +GetFeatures returns the Features field if non-nil, zero value otherwise. + +### GetFeaturesOk + +`func (o *AddonsPlan) GetFeaturesOk() (*[]AddonsFeature, 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 *AddonsPlan) SetFeatures(v []AddonsFeature)` + +SetFeatures sets Features field to given value. + +### HasFeatures + +`func (o *AddonsPlan) HasFeatures() bool` + +HasFeatures returns a boolean if a field has been set. + +### GetId + +`func (o *AddonsPlan) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AddonsPlan) 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 *AddonsPlan) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AddonsPlan) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *AddonsPlan) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *AddonsPlan) 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 *AddonsPlan) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *AddonsPlan) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPrice + +`func (o *AddonsPlan) GetPrice() int32` + +GetPrice returns the Price field if non-nil, zero value otherwise. + +### GetPriceOk + +`func (o *AddonsPlan) GetPriceOk() (*int32, bool)` + +GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrice + +`func (o *AddonsPlan) SetPrice(v int32)` + +SetPrice sets Price field to given value. + +### HasPrice + +`func (o *AddonsPlan) HasPrice() bool` + +HasPrice returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/AddonsSetupGuide.md b/go2/docs/AddonsSetupGuide.md new file mode 100644 index 0000000..7e7d6ce --- /dev/null +++ b/go2/docs/AddonsSetupGuide.md @@ -0,0 +1,82 @@ +# AddonsSetupGuide + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Instructions** | Pointer to [**[]AddonsSetupInstruction**](AddonsSetupInstruction.md) | | [optional] +**Notification** | Pointer to **string** | | [optional] + +## Methods + +### NewAddonsSetupGuide + +`func NewAddonsSetupGuide() *AddonsSetupGuide` + +NewAddonsSetupGuide instantiates a new AddonsSetupGuide object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddonsSetupGuideWithDefaults + +`func NewAddonsSetupGuideWithDefaults() *AddonsSetupGuide` + +NewAddonsSetupGuideWithDefaults instantiates a new AddonsSetupGuide object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInstructions + +`func (o *AddonsSetupGuide) GetInstructions() []AddonsSetupInstruction` + +GetInstructions returns the Instructions field if non-nil, zero value otherwise. + +### GetInstructionsOk + +`func (o *AddonsSetupGuide) GetInstructionsOk() (*[]AddonsSetupInstruction, bool)` + +GetInstructionsOk returns a tuple with the Instructions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstructions + +`func (o *AddonsSetupGuide) SetInstructions(v []AddonsSetupInstruction)` + +SetInstructions sets Instructions field to given value. + +### HasInstructions + +`func (o *AddonsSetupGuide) HasInstructions() bool` + +HasInstructions returns a boolean if a field has been set. + +### GetNotification + +`func (o *AddonsSetupGuide) GetNotification() string` + +GetNotification returns the Notification field if non-nil, zero value otherwise. + +### GetNotificationOk + +`func (o *AddonsSetupGuide) GetNotificationOk() (*string, bool)` + +GetNotificationOk returns a tuple with the Notification field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNotification + +`func (o *AddonsSetupGuide) SetNotification(v string)` + +SetNotification sets Notification field to given value. + +### HasNotification + +`func (o *AddonsSetupGuide) HasNotification() bool` + +HasNotification returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/AddonsSetupInstruction.md b/go2/docs/AddonsSetupInstruction.md new file mode 100644 index 0000000..5fa81fe --- /dev/null +++ b/go2/docs/AddonsSetupInstruction.md @@ -0,0 +1,108 @@ +# AddonsSetupInstruction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CardContent** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Type** | Pointer to **string** | | [optional] + +## Methods + +### NewAddonsSetupInstruction + +`func NewAddonsSetupInstruction() *AddonsSetupInstruction` + +NewAddonsSetupInstruction instantiates a new AddonsSetupInstruction object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAddonsSetupInstructionWithDefaults + +`func NewAddonsSetupInstructionWithDefaults() *AddonsSetupInstruction` + +NewAddonsSetupInstructionWithDefaults instantiates a new AddonsSetupInstruction object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCardContent + +`func (o *AddonsSetupInstruction) GetCardContent() string` + +GetCardContent returns the CardContent field if non-nil, zero value otherwise. + +### GetCardContentOk + +`func (o *AddonsSetupInstruction) GetCardContentOk() (*string, bool)` + +GetCardContentOk returns a tuple with the CardContent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCardContent + +`func (o *AddonsSetupInstruction) SetCardContent(v string)` + +SetCardContent sets CardContent field to given value. + +### HasCardContent + +`func (o *AddonsSetupInstruction) HasCardContent() bool` + +HasCardContent returns a boolean if a field has been set. + +### GetDescription + +`func (o *AddonsSetupInstruction) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *AddonsSetupInstruction) 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 *AddonsSetupInstruction) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *AddonsSetupInstruction) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetType + +`func (o *AddonsSetupInstruction) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *AddonsSetupInstruction) 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 *AddonsSetupInstruction) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *AddonsSetupInstruction) 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/go2/docs/AndroidKeystoreFileAPI.md b/go2/docs/AndroidKeystoreFileAPI.md new file mode 100644 index 0000000..0a0a453 --- /dev/null +++ b/go2/docs/AndroidKeystoreFileAPI.md @@ -0,0 +1,304 @@ +# \AndroidKeystoreFileAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AndroidKeystoreFileConfirm**](AndroidKeystoreFileAPI.md#AndroidKeystoreFileConfirm) | **Post** /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug} | Confirm an android keystore file upload +[**AndroidKeystoreFileCreate**](AndroidKeystoreFileAPI.md#AndroidKeystoreFileCreate) | **Post** /apps/{app-slug}/android-keystore-files | Create an Android keystore file +[**AndroidKeystoreFileDelete**](AndroidKeystoreFileAPI.md#AndroidKeystoreFileDelete) | **Delete** /apps/{app-slug}/android-keystore-files/{android-keystore-file-slug} | Delete an android keystore file +[**AndroidKeystoreFileList**](AndroidKeystoreFileAPI.md#AndroidKeystoreFileList) | **Get** /apps/{app-slug}/android-keystore-files | Get a list of the android keystore files + + + +## AndroidKeystoreFileConfirm + +> V0ProjectFileStorageResponseModel AndroidKeystoreFileConfirm(ctx, appSlug, androidKeystoreFileSlug).Execute() + +Confirm an android keystore file upload + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + androidKeystoreFileSlug := "androidKeystoreFileSlug_example" // string | Android keystore file slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AndroidKeystoreFileAPI.AndroidKeystoreFileConfirm(context.Background(), appSlug, androidKeystoreFileSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AndroidKeystoreFileAPI.AndroidKeystoreFileConfirm``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AndroidKeystoreFileConfirm`: V0ProjectFileStorageResponseModel + fmt.Fprintf(os.Stdout, "Response from `AndroidKeystoreFileAPI.AndroidKeystoreFileConfirm`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**androidKeystoreFileSlug** | **string** | Android keystore file slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAndroidKeystoreFileConfirmRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0ProjectFileStorageResponseModel**](V0ProjectFileStorageResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AndroidKeystoreFileCreate + +> V0ProjectFileStorageResponseModel AndroidKeystoreFileCreate(ctx, appSlug).AndroidKeystoreFile(androidKeystoreFile).Execute() + +Create an Android keystore file + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + androidKeystoreFile := *openapiclient.NewV0AndroidKeystoreFileUploadParams("Alias_example", "Password_example", "PrivateKeyPassword_example", "UploadFileName_example", int32(123)) // V0AndroidKeystoreFileUploadParams | Android keystore file parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AndroidKeystoreFileAPI.AndroidKeystoreFileCreate(context.Background(), appSlug).AndroidKeystoreFile(androidKeystoreFile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AndroidKeystoreFileAPI.AndroidKeystoreFileCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AndroidKeystoreFileCreate`: V0ProjectFileStorageResponseModel + fmt.Fprintf(os.Stdout, "Response from `AndroidKeystoreFileAPI.AndroidKeystoreFileCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAndroidKeystoreFileCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **androidKeystoreFile** | [**V0AndroidKeystoreFileUploadParams**](V0AndroidKeystoreFileUploadParams.md) | Android keystore file parameters | + +### Return type + +[**V0ProjectFileStorageResponseModel**](V0ProjectFileStorageResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AndroidKeystoreFileDelete + +> V0ProjectFileStorageResponseModel AndroidKeystoreFileDelete(ctx, appSlug, androidKeystoreFileSlug).Execute() + +Delete an android keystore file + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + androidKeystoreFileSlug := "androidKeystoreFileSlug_example" // string | Android keystore file slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AndroidKeystoreFileAPI.AndroidKeystoreFileDelete(context.Background(), appSlug, androidKeystoreFileSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AndroidKeystoreFileAPI.AndroidKeystoreFileDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AndroidKeystoreFileDelete`: V0ProjectFileStorageResponseModel + fmt.Fprintf(os.Stdout, "Response from `AndroidKeystoreFileAPI.AndroidKeystoreFileDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**androidKeystoreFileSlug** | **string** | Android keystore file slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAndroidKeystoreFileDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0ProjectFileStorageResponseModel**](V0ProjectFileStorageResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AndroidKeystoreFileList + +> V0ProjectFileStorageListResponseModel AndroidKeystoreFileList(ctx, appSlug).Next(next).Limit(limit).Execute() + +Get a list of the android keystore files + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + next := "next_example" // string | Slug of the first android keystore file in the response (optional) + limit := int32(56) // int32 | Max number of build certificates per page is 50. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AndroidKeystoreFileAPI.AndroidKeystoreFileList(context.Background(), appSlug).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AndroidKeystoreFileAPI.AndroidKeystoreFileList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AndroidKeystoreFileList`: V0ProjectFileStorageListResponseModel + fmt.Fprintf(os.Stdout, "Response from `AndroidKeystoreFileAPI.AndroidKeystoreFileList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAndroidKeystoreFileListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **next** | **string** | Slug of the first android keystore file in the response | + **limit** | **int32** | Max number of build certificates per page is 50. | + +### Return type + +[**V0ProjectFileStorageListResponseModel**](V0ProjectFileStorageListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/AppRolesQuery200Response.md b/go2/docs/AppRolesQuery200Response.md new file mode 100644 index 0000000..5504fcf --- /dev/null +++ b/go2/docs/AppRolesQuery200Response.md @@ -0,0 +1,56 @@ +# AppRolesQuery200Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Groups** | Pointer to **[]string** | | [optional] + +## Methods + +### NewAppRolesQuery200Response + +`func NewAppRolesQuery200Response() *AppRolesQuery200Response` + +NewAppRolesQuery200Response instantiates a new AppRolesQuery200Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAppRolesQuery200ResponseWithDefaults + +`func NewAppRolesQuery200ResponseWithDefaults() *AppRolesQuery200Response` + +NewAppRolesQuery200ResponseWithDefaults instantiates a new AppRolesQuery200Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroups + +`func (o *AppRolesQuery200Response) GetGroups() []string` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *AppRolesQuery200Response) GetGroupsOk() (*[]string, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *AppRolesQuery200Response) SetGroups(v []string)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *AppRolesQuery200Response) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/AppSetupAPI.md b/go2/docs/AppSetupAPI.md new file mode 100644 index 0000000..8335e90 --- /dev/null +++ b/go2/docs/AppSetupAPI.md @@ -0,0 +1,507 @@ +# \AppSetupAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AppConfigCreate**](AppSetupAPI.md#AppConfigCreate) | **Post** /apps/{app-slug}/bitrise.yml | Upload a new bitrise.yml for your application. +[**AppCreate**](AppSetupAPI.md#AppCreate) | **Post** /apps/register | Add a new app +[**AppFinish**](AppSetupAPI.md#AppFinish) | **Post** /apps/{app-slug}/finish | Save the application at the end of the app registration process +[**AppSetupBitriseYmlConfigGet**](AppSetupAPI.md#AppSetupBitriseYmlConfigGet) | **Get** /apps/{app-slug}/bitrise.yml/config | Getting the location of the application's bitrise.yaml +[**AppSetupBitriseYmlConfigUpdate**](AppSetupAPI.md#AppSetupBitriseYmlConfigUpdate) | **Put** /apps/{app-slug}/bitrise.yml/config | Changing the location of the application's bitrise.yaml +[**AppWebhookCreate**](AppSetupAPI.md#AppWebhookCreate) | **Post** /apps/{app-slug}/register-webhook | Register an incoming webhook for a specific application +[**SshKeyCreate**](AppSetupAPI.md#SshKeyCreate) | **Post** /apps/{app-slug}/register-ssh-key | Add an SSH-key to a specific app + + + +## AppConfigCreate + +> map[string]string AppConfigCreate(ctx, appSlug).AppConfig(appConfig).Execute() + +Upload a new bitrise.yml for your application. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + appConfig := *openapiclient.NewV0AppConfigRequestParam("AppConfigDatastoreYaml_example") // V0AppConfigRequestParam | App config parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppSetupAPI.AppConfigCreate(context.Background(), appSlug).AppConfig(appConfig).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppSetupAPI.AppConfigCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppConfigCreate`: map[string]string + fmt.Fprintf(os.Stdout, "Response from `AppSetupAPI.AppConfigCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppConfigCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **appConfig** | [**V0AppConfigRequestParam**](V0AppConfigRequestParam.md) | App config parameters | + +### Return type + +**map[string]string** + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppCreate + +> V0AppRespModel AppCreate(ctx).App(app).Execute() + +Add a new app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + app := *openapiclient.NewV0AppUploadParams(false, "RepoUrl_example") // V0AppUploadParams | App parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppSetupAPI.AppCreate(context.Background()).App(app).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppSetupAPI.AppCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppCreate`: V0AppRespModel + fmt.Fprintf(os.Stdout, "Response from `AppSetupAPI.AppCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **app** | [**V0AppUploadParams**](V0AppUploadParams.md) | App parameters | + +### Return type + +[**V0AppRespModel**](V0AppRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppFinish + +> V0AppFinishRespModel AppFinish(ctx, appSlug).App(app).Execute() + +Save the application at the end of the app registration process + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + app := *openapiclient.NewV0AppFinishParams("ProjectType_example", "StackId_example") // V0AppFinishParams | App finish parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppSetupAPI.AppFinish(context.Background(), appSlug).App(app).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppSetupAPI.AppFinish``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppFinish`: V0AppFinishRespModel + fmt.Fprintf(os.Stdout, "Response from `AppSetupAPI.AppFinish`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppFinishRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **app** | [**V0AppFinishParams**](V0AppFinishParams.md) | App finish parameters | + +### Return type + +[**V0AppFinishRespModel**](V0AppFinishRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppSetupBitriseYmlConfigGet + +> V0BitriseYMLConfigGetResponse AppSetupBitriseYmlConfigGet(ctx, appSlug).Execute() + +Getting the location of the application's bitrise.yaml + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppSetupAPI.AppSetupBitriseYmlConfigGet(context.Background(), appSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppSetupAPI.AppSetupBitriseYmlConfigGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppSetupBitriseYmlConfigGet`: V0BitriseYMLConfigGetResponse + fmt.Fprintf(os.Stdout, "Response from `AppSetupAPI.AppSetupBitriseYmlConfigGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppSetupBitriseYmlConfigGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0BitriseYMLConfigGetResponse**](V0BitriseYMLConfigGetResponse.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppSetupBitriseYmlConfigUpdate + +> AppSetupBitriseYmlConfigUpdate(ctx, appSlug).App(app).Execute() + +Changing the location of the application's bitrise.yaml + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + app := *openapiclient.NewV0BitriseYMLConfigUpdateParams() // V0BitriseYMLConfigUpdateParams | Bitrise YML Config Update Params + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.AppSetupAPI.AppSetupBitriseYmlConfigUpdate(context.Background(), appSlug).App(app).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppSetupAPI.AppSetupBitriseYmlConfigUpdate``: %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. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppSetupBitriseYmlConfigUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **app** | [**V0BitriseYMLConfigUpdateParams**](V0BitriseYMLConfigUpdateParams.md) | Bitrise YML Config Update Params | + +### Return type + + (empty response body) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppWebhookCreate + +> V0WebhookRespModel AppWebhookCreate(ctx, appSlug).Execute() + +Register an incoming webhook for a specific application + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppSetupAPI.AppWebhookCreate(context.Background(), appSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppSetupAPI.AppWebhookCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppWebhookCreate`: V0WebhookRespModel + fmt.Fprintf(os.Stdout, "Response from `AppSetupAPI.AppWebhookCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppWebhookCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0WebhookRespModel**](V0WebhookRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## SshKeyCreate + +> V0SSHKeyRespModel SshKeyCreate(ctx, appSlug).SshKey(sshKey).Execute() + +Add an SSH-key to a specific app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + sshKey := *openapiclient.NewV0SSHKeyUploadParams("AuthSshPrivateKey_example", "AuthSshPublicKey_example") // V0SSHKeyUploadParams | SSH key parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppSetupAPI.SshKeyCreate(context.Background(), appSlug).SshKey(sshKey).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppSetupAPI.SshKeyCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SshKeyCreate`: V0SSHKeyRespModel + fmt.Fprintf(os.Stdout, "Response from `AppSetupAPI.SshKeyCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSshKeyCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sshKey** | [**V0SSHKeyUploadParams**](V0SSHKeyUploadParams.md) | SSH key parameters | + +### Return type + +[**V0SSHKeyRespModel**](V0SSHKeyRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/AppleApiCredentialsAPI.md b/go2/docs/AppleApiCredentialsAPI.md new file mode 100644 index 0000000..8cf1368 --- /dev/null +++ b/go2/docs/AppleApiCredentialsAPI.md @@ -0,0 +1,79 @@ +# \AppleApiCredentialsAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AppleApiCredentialList**](AppleApiCredentialsAPI.md#AppleApiCredentialList) | **Get** /users/{user-slug}/apple-api-credentials | List Apple API credentials for a specific user + + + +## AppleApiCredentialList + +> V0AppleAPICredentialsListResponse AppleApiCredentialList(ctx, userSlug).Execute() + +List Apple API credentials for a specific user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + userSlug := "userSlug_example" // string | User slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.AppleApiCredentialsAPI.AppleApiCredentialList(context.Background(), userSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `AppleApiCredentialsAPI.AppleApiCredentialList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppleApiCredentialList`: V0AppleAPICredentialsListResponse + fmt.Fprintf(os.Stdout, "Response from `AppleApiCredentialsAPI.AppleApiCredentialList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userSlug** | **string** | User slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppleApiCredentialListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0AppleAPICredentialsListResponse**](V0AppleAPICredentialsListResponse.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/ApplicationAPI.md b/go2/docs/ApplicationAPI.md new file mode 100644 index 0000000..c9235bf --- /dev/null +++ b/go2/docs/ApplicationAPI.md @@ -0,0 +1,823 @@ +# \ApplicationAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**AppConfigDatastoreShow**](ApplicationAPI.md#AppConfigDatastoreShow) | **Get** /apps/{app-slug}/bitrise.yml | Get bitrise.yml of a specific app +[**AppDelete**](ApplicationAPI.md#AppDelete) | **Delete** /apps/{app-slug} | Deletes an app +[**AppList**](ApplicationAPI.md#AppList) | **Get** /apps | Get list of the apps +[**AppListByOrganization**](ApplicationAPI.md#AppListByOrganization) | **Get** /organizations/{org-slug}/apps | Get list of the apps for an organization +[**AppListByUser**](ApplicationAPI.md#AppListByUser) | **Get** /users/{user-slug}/apps | Get list of the apps for a user +[**AppNotifications**](ApplicationAPI.md#AppNotifications) | **Patch** /apps/{app-slug}/update-email-notifications | Updates the app's notification settings +[**AppRolesQuery**](ApplicationAPI.md#AppRolesQuery) | **Get** /apps/{app-slug}/roles/{role-name} | Lists group roles for an app +[**AppRolesUpdate**](ApplicationAPI.md#AppRolesUpdate) | **Put** /apps/{app-slug}/roles/{role-name} | Replaces group roles for an app +[**AppShow**](ApplicationAPI.md#AppShow) | **Get** /apps/{app-slug} | Get a specific app +[**AppUpdate**](ApplicationAPI.md#AppUpdate) | **Patch** /apps/{app-slug} | Updates an app +[**BranchList**](ApplicationAPI.md#BranchList) | **Get** /apps/{app-slug}/branches | List the branches with existing builds of an app's repository + + + +## AppConfigDatastoreShow + +> string AppConfigDatastoreShow(ctx, appSlug).Execute() + +Get bitrise.yml of a specific app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApplicationAPI.AppConfigDatastoreShow(context.Background(), appSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationAPI.AppConfigDatastoreShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppConfigDatastoreShow`: string + fmt.Fprintf(os.Stdout, "Response from `ApplicationAPI.AppConfigDatastoreShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppConfigDatastoreShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +**string** + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[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) + + +## AppDelete + +> V0AppDeleteRespModel AppDelete(ctx, appSlug).Execute() + +Deletes an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApplicationAPI.AppDelete(context.Background(), appSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationAPI.AppDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppDelete`: V0AppDeleteRespModel + fmt.Fprintf(os.Stdout, "Response from `ApplicationAPI.AppDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0AppDeleteRespModel**](V0AppDeleteRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppList + +> V0AppListResponseModel AppList(ctx).SortBy(sortBy).Next(next).Limit(limit).Title(title).ProjectType(projectType).Execute() + +Get list of the apps + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + sortBy := "sortBy_example" // string | Order of the applications: sort them based on when they were created or the time of their last build (optional) + next := "next_example" // string | Slug of the first app in the response (optional) + limit := int32(56) // int32 | Max number of elements per page (default: 50) (optional) + title := "title_example" // string | The title of the app (optional) + projectType := "projectType_example" // string | The project type of the app (eg. 'ios', 'android') (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApplicationAPI.AppList(context.Background()).SortBy(sortBy).Next(next).Limit(limit).Title(title).ProjectType(projectType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationAPI.AppList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppList`: V0AppListResponseModel + fmt.Fprintf(os.Stdout, "Response from `ApplicationAPI.AppList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **sortBy** | **string** | Order of the applications: sort them based on when they were created or the time of their last build | + **next** | **string** | Slug of the first app in the response | + **limit** | **int32** | Max number of elements per page (default: 50) | + **title** | **string** | The title of the app | + **projectType** | **string** | The project type of the app (eg. 'ios', 'android') | + +### Return type + +[**V0AppListResponseModel**](V0AppListResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppListByOrganization + +> V0AppListResponseModel AppListByOrganization(ctx, orgSlug).SortBy(sortBy).Next(next).Limit(limit).Title(title).ProjectType(projectType).Execute() + +Get list of the apps for an organization + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + orgSlug := "orgSlug_example" // string | Organization slug + sortBy := "sortBy_example" // string | Order of applications: sort them based on when they were created or the time of their last build (optional) + next := "next_example" // string | Slug of the first app in the response (optional) + limit := int32(56) // int32 | Max number of elements per page (default: 50) (optional) + title := "title_example" // string | The title of the app (optional) + projectType := "projectType_example" // string | The project type of the app (eg. 'ios', 'android') (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApplicationAPI.AppListByOrganization(context.Background(), orgSlug).SortBy(sortBy).Next(next).Limit(limit).Title(title).ProjectType(projectType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationAPI.AppListByOrganization``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppListByOrganization`: V0AppListResponseModel + fmt.Fprintf(os.Stdout, "Response from `ApplicationAPI.AppListByOrganization`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgSlug** | **string** | Organization slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppListByOrganizationRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sortBy** | **string** | Order of applications: sort them based on when they were created or the time of their last build | + **next** | **string** | Slug of the first app in the response | + **limit** | **int32** | Max number of elements per page (default: 50) | + **title** | **string** | The title of the app | + **projectType** | **string** | The project type of the app (eg. 'ios', 'android') | + +### Return type + +[**V0AppListResponseModel**](V0AppListResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppListByUser + +> V0AppListResponseModel AppListByUser(ctx, userSlug).SortBy(sortBy).Next(next).Limit(limit).Title(title).ProjectType(projectType).Execute() + +Get list of the apps for a user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + userSlug := "userSlug_example" // string | User slug + sortBy := "sortBy_example" // string | Order of applications (optional) + next := "next_example" // string | Slug of the first app in the response (optional) + limit := int32(56) // int32 | Max number of elements per page (default: 50) (optional) + title := "title_example" // string | The title of the app (optional) + projectType := "projectType_example" // string | The project type of the app (eg. 'ios', 'android') (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApplicationAPI.AppListByUser(context.Background(), userSlug).SortBy(sortBy).Next(next).Limit(limit).Title(title).ProjectType(projectType).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationAPI.AppListByUser``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppListByUser`: V0AppListResponseModel + fmt.Fprintf(os.Stdout, "Response from `ApplicationAPI.AppListByUser`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userSlug** | **string** | User slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppListByUserRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sortBy** | **string** | Order of applications | + **next** | **string** | Slug of the first app in the response | + **limit** | **int32** | Max number of elements per page (default: 50) | + **title** | **string** | The title of the app | + **projectType** | **string** | The project type of the app (eg. 'ios', 'android') | + +### Return type + +[**V0AppListResponseModel**](V0AppListResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppNotifications + +> V0AppNotificationSettingsUpdateResponse AppNotifications(ctx, appSlug).NotificationSettingsParams(notificationSettingsParams).Execute() + +Updates the app's notification settings + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + notificationSettingsParams := *openapiclient.NewV0AppNotificationSettingsParams() // V0AppNotificationSettingsParams | App notification settings parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApplicationAPI.AppNotifications(context.Background(), appSlug).NotificationSettingsParams(notificationSettingsParams).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationAPI.AppNotifications``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppNotifications`: V0AppNotificationSettingsUpdateResponse + fmt.Fprintf(os.Stdout, "Response from `ApplicationAPI.AppNotifications`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppNotificationsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **notificationSettingsParams** | [**V0AppNotificationSettingsParams**](V0AppNotificationSettingsParams.md) | App notification settings parameters | + +### Return type + +[**V0AppNotificationSettingsUpdateResponse**](V0AppNotificationSettingsUpdateResponse.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppRolesQuery + +> AppRolesQuery200Response AppRolesQuery(ctx, appSlug, roleName).Execute() + +Lists group roles for an app + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | Slug of the app + roleName := "roleName_example" // string | Name of the role being queried, supported values are: admin, manager (equals developer), and member (equals tester/qa) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApplicationAPI.AppRolesQuery(context.Background(), appSlug, roleName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationAPI.AppRolesQuery``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppRolesQuery`: AppRolesQuery200Response + fmt.Fprintf(os.Stdout, "Response from `ApplicationAPI.AppRolesQuery`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | Slug of the app | +**roleName** | **string** | Name of the role being queried, supported values are: admin, manager (equals developer), and member (equals tester/qa) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppRolesQueryRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**AppRolesQuery200Response**](AppRolesQuery200Response.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppRolesUpdate + +> AppRolesQuery200Response AppRolesUpdate(ctx, appSlug, roleName).Groups(groups).Execute() + +Replaces group roles for an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | Slug of the app + roleName := "roleName_example" // string | Name of the role being modified, supported values are: admin, manager (equals developer), and member (equals tester/qa) + groups := *openapiclient.NewAppRolesQuery200Response() // AppRolesQuery200Response | List of group slugs + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApplicationAPI.AppRolesUpdate(context.Background(), appSlug, roleName).Groups(groups).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationAPI.AppRolesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppRolesUpdate`: AppRolesQuery200Response + fmt.Fprintf(os.Stdout, "Response from `ApplicationAPI.AppRolesUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | Slug of the app | +**roleName** | **string** | Name of the role being modified, supported values are: admin, manager (equals developer), and member (equals tester/qa) | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppRolesUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **groups** | [**AppRolesQuery200Response**](AppRolesQuery200Response.md) | List of group slugs | + +### Return type + +[**AppRolesQuery200Response**](AppRolesQuery200Response.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppShow + +> V0AppShowResponseModel AppShow(ctx, appSlug).Execute() + +Get a specific app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApplicationAPI.AppShow(context.Background(), appSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationAPI.AppShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppShow`: V0AppShowResponseModel + fmt.Fprintf(os.Stdout, "Response from `ApplicationAPI.AppShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0AppShowResponseModel**](V0AppShowResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## AppUpdate + +> V0AppUpdateRespModel AppUpdate(ctx, appSlug).App(app).Execute() + +Updates an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + app := *openapiclient.NewV0AppUpdateParams() // V0AppUpdateParams | App update params. All fields are optional, omit the fields you don't wish to update. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApplicationAPI.AppUpdate(context.Background(), appSlug).App(app).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationAPI.AppUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `AppUpdate`: V0AppUpdateRespModel + fmt.Fprintf(os.Stdout, "Response from `ApplicationAPI.AppUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiAppUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **app** | [**V0AppUpdateParams**](V0AppUpdateParams.md) | App update params. All fields are optional, omit the fields you don't wish to update. | + +### Return type + +[**V0AppUpdateRespModel**](V0AppUpdateRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BranchList + +> V0BranchListResponseModel BranchList(ctx, appSlug).Execute() + +List the branches with existing builds of an app's repository + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ApplicationAPI.BranchList(context.Background(), appSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ApplicationAPI.BranchList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BranchList`: V0BranchListResponseModel + fmt.Fprintf(os.Stdout, "Response from `ApplicationAPI.BranchList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBranchListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0BranchListResponseModel**](V0BranchListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/BuildArtifactAPI.md b/go2/docs/BuildArtifactAPI.md new file mode 100644 index 0000000..33def6b --- /dev/null +++ b/go2/docs/BuildArtifactAPI.md @@ -0,0 +1,321 @@ +# \BuildArtifactAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ArtifactDelete**](BuildArtifactAPI.md#ArtifactDelete) | **Delete** /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug} | Delete a build artifact +[**ArtifactList**](BuildArtifactAPI.md#ArtifactList) | **Get** /apps/{app-slug}/builds/{build-slug}/artifacts | Get a list of all build artifacts +[**ArtifactShow**](BuildArtifactAPI.md#ArtifactShow) | **Get** /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug} | Get a specific build artifact +[**ArtifactUpdate**](BuildArtifactAPI.md#ArtifactUpdate) | **Patch** /apps/{app-slug}/builds/{build-slug}/artifacts/{artifact-slug} | Update a build artifact + + + +## ArtifactDelete + +> V0ArtifactDeleteResponseModel ArtifactDelete(ctx, appSlug, buildSlug, artifactSlug).Execute() + +Delete a build artifact + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildSlug := "buildSlug_example" // string | Build slug + artifactSlug := "artifactSlug_example" // string | Artifact slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildArtifactAPI.ArtifactDelete(context.Background(), appSlug, buildSlug, artifactSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildArtifactAPI.ArtifactDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ArtifactDelete`: V0ArtifactDeleteResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildArtifactAPI.ArtifactDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**buildSlug** | **string** | Build slug | +**artifactSlug** | **string** | Artifact slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiArtifactDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**V0ArtifactDeleteResponseModel**](V0ArtifactDeleteResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## ArtifactList + +> V0ArtifactListResponseModel ArtifactList(ctx, appSlug, buildSlug).Next(next).Limit(limit).Execute() + +Get a list of all build artifacts + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildSlug := "buildSlug_example" // string | Build slug + next := "next_example" // string | Slug of the first build artifact in the response (optional) + limit := int32(56) // int32 | Max number of build artifacts per page is 50. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildArtifactAPI.ArtifactList(context.Background(), appSlug, buildSlug).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildArtifactAPI.ArtifactList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ArtifactList`: V0ArtifactListResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildArtifactAPI.ArtifactList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**buildSlug** | **string** | Build slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiArtifactListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **next** | **string** | Slug of the first build artifact in the response | + **limit** | **int32** | Max number of build artifacts per page is 50. | + +### Return type + +[**V0ArtifactListResponseModel**](V0ArtifactListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## ArtifactShow + +> V0ArtifactShowResponseModel ArtifactShow(ctx, appSlug, buildSlug, artifactSlug).Download(download).Execute() + +Get a specific build artifact + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildSlug := "buildSlug_example" // string | Build slug + artifactSlug := "artifactSlug_example" // string | Artifact slug + download := int32(56) // int32 | Setting this will result in a redirect to the artifact download location (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildArtifactAPI.ArtifactShow(context.Background(), appSlug, buildSlug, artifactSlug).Download(download).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildArtifactAPI.ArtifactShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ArtifactShow`: V0ArtifactShowResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildArtifactAPI.ArtifactShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**buildSlug** | **string** | Build slug | +**artifactSlug** | **string** | Artifact slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiArtifactShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **download** | **int32** | Setting this will result in a redirect to the artifact download location | + +### Return type + +[**V0ArtifactShowResponseModel**](V0ArtifactShowResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## ArtifactUpdate + +> V0ArtifactShowResponseModel ArtifactUpdate(ctx, appSlug, buildSlug, artifactSlug).ArtifactParams(artifactParams).Execute() + +Update a build artifact + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildSlug := "buildSlug_example" // string | Build slug + artifactSlug := "artifactSlug_example" // string | Artifact slug + artifactParams := *openapiclient.NewV0ArtifactUpdateParams(false) // V0ArtifactUpdateParams | Artifact parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildArtifactAPI.ArtifactUpdate(context.Background(), appSlug, buildSlug, artifactSlug).ArtifactParams(artifactParams).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildArtifactAPI.ArtifactUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ArtifactUpdate`: V0ArtifactShowResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildArtifactAPI.ArtifactUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**buildSlug** | **string** | Build slug | +**artifactSlug** | **string** | Artifact slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiArtifactUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + **artifactParams** | [**V0ArtifactUpdateParams**](V0ArtifactUpdateParams.md) | Artifact parameters | + +### Return type + +[**V0ArtifactShowResponseModel**](V0ArtifactShowResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/BuildCertificateAPI.md b/go2/docs/BuildCertificateAPI.md new file mode 100644 index 0000000..1bcab72 --- /dev/null +++ b/go2/docs/BuildCertificateAPI.md @@ -0,0 +1,454 @@ +# \BuildCertificateAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**BuildCertificateConfirm**](BuildCertificateAPI.md#BuildCertificateConfirm) | **Post** /apps/{app-slug}/build-certificates/{build-certificate-slug}/uploaded | Confirm a build certificate upload +[**BuildCertificateCreate**](BuildCertificateAPI.md#BuildCertificateCreate) | **Post** /apps/{app-slug}/build-certificates | Create a build certificate +[**BuildCertificateDelete**](BuildCertificateAPI.md#BuildCertificateDelete) | **Delete** /apps/{app-slug}/build-certificates/{build-certificate-slug} | Delete a build certificate +[**BuildCertificateList**](BuildCertificateAPI.md#BuildCertificateList) | **Get** /apps/{app-slug}/build-certificates | Get a list of the build certificates +[**BuildCertificateShow**](BuildCertificateAPI.md#BuildCertificateShow) | **Get** /apps/{app-slug}/build-certificates/{build-certificate-slug} | Get a specific build certificate +[**BuildCertificateUpdate**](BuildCertificateAPI.md#BuildCertificateUpdate) | **Patch** /apps/{app-slug}/build-certificates/{build-certificate-slug} | Update a build certificate + + + +## BuildCertificateConfirm + +> V0BuildCertificateResponseModel BuildCertificateConfirm(ctx, appSlug, buildCertificateSlug).Execute() + +Confirm a build certificate upload + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildCertificateSlug := "buildCertificateSlug_example" // string | Build certificate slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildCertificateAPI.BuildCertificateConfirm(context.Background(), appSlug, buildCertificateSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildCertificateAPI.BuildCertificateConfirm``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildCertificateConfirm`: V0BuildCertificateResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildCertificateAPI.BuildCertificateConfirm`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**buildCertificateSlug** | **string** | Build certificate slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildCertificateConfirmRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0BuildCertificateResponseModel**](V0BuildCertificateResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildCertificateCreate + +> V0BuildCertificateResponseModel BuildCertificateCreate(ctx, appSlug).BuildCertificate(buildCertificate).Execute() + +Create a build certificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildCertificate := *openapiclient.NewV0BuildCertificateUploadParams("UploadFileName_example", int32(123)) // V0BuildCertificateUploadParams | Build certificate parameters such as file name and its file size + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildCertificateAPI.BuildCertificateCreate(context.Background(), appSlug).BuildCertificate(buildCertificate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildCertificateAPI.BuildCertificateCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildCertificateCreate`: V0BuildCertificateResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildCertificateAPI.BuildCertificateCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildCertificateCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **buildCertificate** | [**V0BuildCertificateUploadParams**](V0BuildCertificateUploadParams.md) | Build certificate parameters such as file name and its file size | + +### Return type + +[**V0BuildCertificateResponseModel**](V0BuildCertificateResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildCertificateDelete + +> V0BuildCertificateResponseModel BuildCertificateDelete(ctx, appSlug, buildCertificateSlug).Execute() + +Delete a build certificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildCertificateSlug := "buildCertificateSlug_example" // string | Build certificate slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildCertificateAPI.BuildCertificateDelete(context.Background(), appSlug, buildCertificateSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildCertificateAPI.BuildCertificateDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildCertificateDelete`: V0BuildCertificateResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildCertificateAPI.BuildCertificateDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**buildCertificateSlug** | **string** | Build certificate slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildCertificateDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0BuildCertificateResponseModel**](V0BuildCertificateResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildCertificateList + +> V0BuildCertificateListResponseModel BuildCertificateList(ctx, appSlug).Next(next).Limit(limit).Execute() + +Get a list of the build certificates + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + next := "next_example" // string | Slug of the first build certificate in the response (optional) + limit := int32(56) // int32 | Max number of build certificates per page is 50. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildCertificateAPI.BuildCertificateList(context.Background(), appSlug).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildCertificateAPI.BuildCertificateList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildCertificateList`: V0BuildCertificateListResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildCertificateAPI.BuildCertificateList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildCertificateListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **next** | **string** | Slug of the first build certificate in the response | + **limit** | **int32** | Max number of build certificates per page is 50. | + +### Return type + +[**V0BuildCertificateListResponseModel**](V0BuildCertificateListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildCertificateShow + +> V0BuildCertificateResponseModel BuildCertificateShow(ctx, appSlug, buildCertificateSlug).Execute() + +Get a specific build certificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildCertificateSlug := "buildCertificateSlug_example" // string | Build certificate slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildCertificateAPI.BuildCertificateShow(context.Background(), appSlug, buildCertificateSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildCertificateAPI.BuildCertificateShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildCertificateShow`: V0BuildCertificateResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildCertificateAPI.BuildCertificateShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**buildCertificateSlug** | **string** | Build certificate slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildCertificateShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0BuildCertificateResponseModel**](V0BuildCertificateResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildCertificateUpdate + +> V0BuildCertificateResponseModel BuildCertificateUpdate(ctx, appSlug, buildCertificateSlug).BuildCertificate(buildCertificate).Execute() + +Update a build certificate + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildCertificateSlug := "buildCertificateSlug_example" // string | Build certificate slug + buildCertificate := *openapiclient.NewV0BuildCertificateUpdateParams() // V0BuildCertificateUpdateParams | Build certificate parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildCertificateAPI.BuildCertificateUpdate(context.Background(), appSlug, buildCertificateSlug).BuildCertificate(buildCertificate).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildCertificateAPI.BuildCertificateUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildCertificateUpdate`: V0BuildCertificateResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildCertificateAPI.BuildCertificateUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**buildCertificateSlug** | **string** | Build certificate slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildCertificateUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **buildCertificate** | [**V0BuildCertificateUpdateParams**](V0BuildCertificateUpdateParams.md) | Build certificate parameters | + +### Return type + +[**V0BuildCertificateResponseModel**](V0BuildCertificateResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/BuildRequestAPI.md b/go2/docs/BuildRequestAPI.md new file mode 100644 index 0000000..7cdcd73 --- /dev/null +++ b/go2/docs/BuildRequestAPI.md @@ -0,0 +1,155 @@ +# \BuildRequestAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**BuildRequestList**](BuildRequestAPI.md#BuildRequestList) | **Get** /apps/{app-slug}/build-requests | List the open build requests for an app +[**BuildRequestUpdate**](BuildRequestAPI.md#BuildRequestUpdate) | **Patch** /apps/{app-slug}/build-requests/{build-request-slug} | Update a build request + + + +## BuildRequestList + +> V0BuildRequestListResponseModel BuildRequestList(ctx, appSlug).Execute() + +List the open build requests for an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildRequestAPI.BuildRequestList(context.Background(), appSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildRequestAPI.BuildRequestList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildRequestList`: V0BuildRequestListResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildRequestAPI.BuildRequestList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildRequestListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0BuildRequestListResponseModel**](V0BuildRequestListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildRequestUpdate + +> V0BuildRequestUpdateResponseModel BuildRequestUpdate(ctx, appSlug, buildRequestSlug).BuildRequest(buildRequest).Execute() + +Update a build request + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildRequestSlug := "buildRequestSlug_example" // string | Build request slug + buildRequest := *openapiclient.NewV0BuildRequestUpdateParams(false) // V0BuildRequestUpdateParams | Build request parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildRequestAPI.BuildRequestUpdate(context.Background(), appSlug, buildRequestSlug).BuildRequest(buildRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildRequestAPI.BuildRequestUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildRequestUpdate`: V0BuildRequestUpdateResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildRequestAPI.BuildRequestUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**buildRequestSlug** | **string** | Build request slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildRequestUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **buildRequest** | [**V0BuildRequestUpdateParams**](V0BuildRequestUpdateParams.md) | Build request parameters | + +### Return type + +[**V0BuildRequestUpdateResponseModel**](V0BuildRequestUpdateResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/BuildsAPI.md b/go2/docs/BuildsAPI.md new file mode 100644 index 0000000..062b858 --- /dev/null +++ b/go2/docs/BuildsAPI.md @@ -0,0 +1,695 @@ +# \BuildsAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ArchivedBuildsList**](BuildsAPI.md#ArchivedBuildsList) | **Get** /apps/{app-slug}/archived-builds | List 1000 archived builds of an app +[**BuildAbort**](BuildsAPI.md#BuildAbort) | **Post** /apps/{app-slug}/builds/{build-slug}/abort | Abort a specific build +[**BuildBitriseYmlShow**](BuildsAPI.md#BuildBitriseYmlShow) | **Get** /apps/{app-slug}/builds/{build-slug}/bitrise.yml | Get the bitrise.yml of a build +[**BuildList**](BuildsAPI.md#BuildList) | **Get** /apps/{app-slug}/builds | List all builds of an app +[**BuildListAll**](BuildsAPI.md#BuildListAll) | **Get** /builds | List all builds +[**BuildLog**](BuildsAPI.md#BuildLog) | **Get** /apps/{app-slug}/builds/{build-slug}/log | Get the build log of a build +[**BuildShow**](BuildsAPI.md#BuildShow) | **Get** /apps/{app-slug}/builds/{build-slug} | Get a build of a given app +[**BuildTrigger**](BuildsAPI.md#BuildTrigger) | **Post** /apps/{app-slug}/builds | Trigger a new build/pipeline +[**BuildWorkflowList**](BuildsAPI.md#BuildWorkflowList) | **Get** /apps/{app-slug}/build-workflows | List the workflows of an app + + + +## ArchivedBuildsList + +> V0ArchivedBuildListResponseModel ArchivedBuildsList(ctx, appSlug).After(after).Before(before).Execute() + +List 1000 archived builds of an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + after := int32(56) // int32 | Listed builds should only be the ones which ran after the given date (Unix Timestamp) + before := int32(56) // int32 | Listed builds should only be the ones which ran before the given date (Unix Timestamp) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildsAPI.ArchivedBuildsList(context.Background(), appSlug).After(after).Before(before).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildsAPI.ArchivedBuildsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ArchivedBuildsList`: V0ArchivedBuildListResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildsAPI.ArchivedBuildsList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiArchivedBuildsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **after** | **int32** | Listed builds should only be the ones which ran after the given date (Unix Timestamp) | + **before** | **int32** | Listed builds should only be the ones which ran before the given date (Unix Timestamp) | + +### Return type + +[**V0ArchivedBuildListResponseModel**](V0ArchivedBuildListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildAbort + +> V0BuildAbortResponseModel BuildAbort(ctx, appSlug, buildSlug).BuildAbortParams(buildAbortParams).Execute() + +Abort a specific build + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildSlug := "buildSlug_example" // string | Build slug + buildAbortParams := *openapiclient.NewV0BuildAbortParams("AbortReason_example", false, false) // V0BuildAbortParams | Build abort parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildsAPI.BuildAbort(context.Background(), appSlug, buildSlug).BuildAbortParams(buildAbortParams).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildsAPI.BuildAbort``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildAbort`: V0BuildAbortResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildsAPI.BuildAbort`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**buildSlug** | **string** | Build slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildAbortRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **buildAbortParams** | [**V0BuildAbortParams**](V0BuildAbortParams.md) | Build abort parameters | + +### Return type + +[**V0BuildAbortResponseModel**](V0BuildAbortResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildBitriseYmlShow + +> string BuildBitriseYmlShow(ctx, appSlug, buildSlug).Execute() + +Get the bitrise.yml of a build + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildSlug := "buildSlug_example" // string | Build slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildsAPI.BuildBitriseYmlShow(context.Background(), appSlug, buildSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildsAPI.BuildBitriseYmlShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildBitriseYmlShow`: string + fmt.Fprintf(os.Stdout, "Response from `BuildsAPI.BuildBitriseYmlShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**buildSlug** | **string** | Build slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildBitriseYmlShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +**string** + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain + +[[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) + + +## BuildList + +> V0BuildListResponseModel BuildList(ctx, appSlug).SortBy(sortBy).Branch(branch).Workflow(workflow).CommitMessage(commitMessage).TriggerEventType(triggerEventType).PullRequestId(pullRequestId).BuildNumber(buildNumber).After(after).Before(before).Status(status).IsPipelineBuild(isPipelineBuild).Next(next).Limit(limit).Execute() + +List all builds of an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + sortBy := "sortBy_example" // string | Order of builds: sort them based on when they were created or the time when they were triggered (optional) + branch := "branch_example" // string | The branch which was built (optional) + workflow := "workflow_example" // string | The name of the workflow used for the build (optional) + commitMessage := "commitMessage_example" // string | The commit message of the build (optional) + triggerEventType := "triggerEventType_example" // string | The event that triggered the build (push, pull-request, tag) (optional) + pullRequestId := int32(56) // int32 | The id of the pull request that triggered the build (optional) + buildNumber := int32(56) // int32 | The build number (optional) + after := int32(56) // int32 | List builds run after a given date (Unix Timestamp) (optional) + before := int32(56) // int32 | List builds run before a given date (Unix Timestamp) (optional) + status := int32(56) // int32 | The status of the build: not finished (0), successful (1), failed (2), aborted with failure (3), aborted with success (4) (optional) + isPipelineBuild := true // bool | Whether the builds are part of a pipeline or not (optional) + next := "next_example" // string | Slug of the first build in the response (optional) + limit := int32(56) // int32 | Max number of elements per page (default: 50) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildsAPI.BuildList(context.Background(), appSlug).SortBy(sortBy).Branch(branch).Workflow(workflow).CommitMessage(commitMessage).TriggerEventType(triggerEventType).PullRequestId(pullRequestId).BuildNumber(buildNumber).After(after).Before(before).Status(status).IsPipelineBuild(isPipelineBuild).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildsAPI.BuildList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildList`: V0BuildListResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildsAPI.BuildList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **sortBy** | **string** | Order of builds: sort them based on when they were created or the time when they were triggered | + **branch** | **string** | The branch which was built | + **workflow** | **string** | The name of the workflow used for the build | + **commitMessage** | **string** | The commit message of the build | + **triggerEventType** | **string** | The event that triggered the build (push, pull-request, tag) | + **pullRequestId** | **int32** | The id of the pull request that triggered the build | + **buildNumber** | **int32** | The build number | + **after** | **int32** | List builds run after a given date (Unix Timestamp) | + **before** | **int32** | List builds run before a given date (Unix Timestamp) | + **status** | **int32** | The status of the build: not finished (0), successful (1), failed (2), aborted with failure (3), aborted with success (4) | + **isPipelineBuild** | **bool** | Whether the builds are part of a pipeline or not | + **next** | **string** | Slug of the first build in the response | + **limit** | **int32** | Max number of elements per page (default: 50) | + +### Return type + +[**V0BuildListResponseModel**](V0BuildListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildListAll + +> V0BuildListAllResponseModel BuildListAll(ctx).OwnerSlug(ownerSlug).IsOnHold(isOnHold).Status(status).Next(next).Limit(limit).Execute() + +List all builds + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + ownerSlug := "ownerSlug_example" // string | The slug of the owner of the app or apps (optional) + isOnHold := true // bool | Indicates whether the build has started yet (true: the build hasn't started) (optional) + status := int32(56) // int32 | The status of the build: not finished (0), successful (1), failed (2), aborted with failure (3), aborted with success (4) (optional) + next := "next_example" // string | Slug of the first build in the response (optional) + limit := int32(56) // int32 | Max number of elements per page (default: 50) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildsAPI.BuildListAll(context.Background()).OwnerSlug(ownerSlug).IsOnHold(isOnHold).Status(status).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildsAPI.BuildListAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildListAll`: V0BuildListAllResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildsAPI.BuildListAll`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildListAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ownerSlug** | **string** | The slug of the owner of the app or apps | + **isOnHold** | **bool** | Indicates whether the build has started yet (true: the build hasn't started) | + **status** | **int32** | The status of the build: not finished (0), successful (1), failed (2), aborted with failure (3), aborted with success (4) | + **next** | **string** | Slug of the first build in the response | + **limit** | **int32** | Max number of elements per page (default: 50) | + +### Return type + +[**V0BuildListAllResponseModel**](V0BuildListAllResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildLog + +> BuildLog(ctx, appSlug, buildSlug).Execute() + +Get the build log of a build + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildSlug := "buildSlug_example" // string | Build slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.BuildsAPI.BuildLog(context.Background(), appSlug, buildSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildsAPI.BuildLog``: %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. +**appSlug** | **string** | App slug | +**buildSlug** | **string** | Build slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildLogRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildShow + +> V0BuildShowResponseModel BuildShow(ctx, appSlug, buildSlug).Execute() + +Get a build of a given app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildSlug := "buildSlug_example" // string | Build slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildsAPI.BuildShow(context.Background(), appSlug, buildSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildsAPI.BuildShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildShow`: V0BuildShowResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildsAPI.BuildShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**buildSlug** | **string** | Build slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0BuildShowResponseModel**](V0BuildShowResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildTrigger + +> V0BuildTriggerRespModel BuildTrigger(ctx, appSlug).BuildParams(buildParams).Execute() + +Trigger a new build/pipeline + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + buildParams := *openapiclient.NewV0BuildTriggerParams() // V0BuildTriggerParams | Build trigger parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildsAPI.BuildTrigger(context.Background(), appSlug).BuildParams(buildParams).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildsAPI.BuildTrigger``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildTrigger`: V0BuildTriggerRespModel + fmt.Fprintf(os.Stdout, "Response from `BuildsAPI.BuildTrigger`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildTriggerRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **buildParams** | [**V0BuildTriggerParams**](V0BuildTriggerParams.md) | Build trigger parameters | + +### Return type + +[**V0BuildTriggerRespModel**](V0BuildTriggerRespModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## BuildWorkflowList + +> V0BuildWorkflowListResponseModel BuildWorkflowList(ctx, appSlug).Execute() + +List the workflows of an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.BuildsAPI.BuildWorkflowList(context.Background(), appSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `BuildsAPI.BuildWorkflowList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `BuildWorkflowList`: V0BuildWorkflowListResponseModel + fmt.Fprintf(os.Stdout, "Response from `BuildsAPI.BuildWorkflowList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiBuildWorkflowListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0BuildWorkflowListResponseModel**](V0BuildWorkflowListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/GenericProjectFileAPI.md b/go2/docs/GenericProjectFileAPI.md new file mode 100644 index 0000000..c35b20e --- /dev/null +++ b/go2/docs/GenericProjectFileAPI.md @@ -0,0 +1,454 @@ +# \GenericProjectFileAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GenericProjectFileConfirm**](GenericProjectFileAPI.md#GenericProjectFileConfirm) | **Post** /apps/{app-slug}/generic-project-files/{generic-project-file-slug}/uploaded | Confirm a generic project file upload +[**GenericProjectFileDelete**](GenericProjectFileAPI.md#GenericProjectFileDelete) | **Delete** /apps/{app-slug}/generic-project-files/{generic-project-file-slug} | Delete a generic project file +[**GenericProjectFileList**](GenericProjectFileAPI.md#GenericProjectFileList) | **Get** /apps/{app-slug}/generic-project-files | Get a list of the generic project files +[**GenericProjectFileShow**](GenericProjectFileAPI.md#GenericProjectFileShow) | **Get** /apps/{app-slug}/generic-project-files/{generic-project-file-slug} | Get a specific generic project file +[**GenericProjectFileUpdate**](GenericProjectFileAPI.md#GenericProjectFileUpdate) | **Patch** /apps/{app-slug}/generic-project-files/{generic-project-file-slug} | Update a generic project file +[**GenericProjectFilesCreate**](GenericProjectFileAPI.md#GenericProjectFilesCreate) | **Post** /apps/{app-slug}/generic-project-files | Create a generic project file + + + +## GenericProjectFileConfirm + +> V0ProjectFileStorageResponseModel GenericProjectFileConfirm(ctx, appSlug, genericProjectFileSlug).Execute() + +Confirm a generic project file upload + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + genericProjectFileSlug := "genericProjectFileSlug_example" // string | Generic project file slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GenericProjectFileAPI.GenericProjectFileConfirm(context.Background(), appSlug, genericProjectFileSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GenericProjectFileAPI.GenericProjectFileConfirm``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GenericProjectFileConfirm`: V0ProjectFileStorageResponseModel + fmt.Fprintf(os.Stdout, "Response from `GenericProjectFileAPI.GenericProjectFileConfirm`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**genericProjectFileSlug** | **string** | Generic project file slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGenericProjectFileConfirmRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0ProjectFileStorageResponseModel**](V0ProjectFileStorageResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## GenericProjectFileDelete + +> V0ProjectFileStorageResponseModel GenericProjectFileDelete(ctx, appSlug, genericProjectFileSlug).Execute() + +Delete a generic project file + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + genericProjectFileSlug := "genericProjectFileSlug_example" // string | Generic project file slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GenericProjectFileAPI.GenericProjectFileDelete(context.Background(), appSlug, genericProjectFileSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GenericProjectFileAPI.GenericProjectFileDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GenericProjectFileDelete`: V0ProjectFileStorageResponseModel + fmt.Fprintf(os.Stdout, "Response from `GenericProjectFileAPI.GenericProjectFileDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**genericProjectFileSlug** | **string** | Generic project file slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGenericProjectFileDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0ProjectFileStorageResponseModel**](V0ProjectFileStorageResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## GenericProjectFileList + +> V0ProjectFileStorageListResponseModel GenericProjectFileList(ctx, appSlug).Next(next).Limit(limit).Execute() + +Get a list of the generic project files + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + next := "next_example" // string | Slug of the first generic project file in the response (optional) + limit := int32(56) // int32 | Max number of build certificates per page is 50. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GenericProjectFileAPI.GenericProjectFileList(context.Background(), appSlug).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GenericProjectFileAPI.GenericProjectFileList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GenericProjectFileList`: V0ProjectFileStorageListResponseModel + fmt.Fprintf(os.Stdout, "Response from `GenericProjectFileAPI.GenericProjectFileList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGenericProjectFileListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **next** | **string** | Slug of the first generic project file in the response | + **limit** | **int32** | Max number of build certificates per page is 50. | + +### Return type + +[**V0ProjectFileStorageListResponseModel**](V0ProjectFileStorageListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## GenericProjectFileShow + +> V0ProjectFileStorageResponseModel GenericProjectFileShow(ctx, appSlug, genericProjectFileSlug).Execute() + +Get a specific generic project file + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + genericProjectFileSlug := "genericProjectFileSlug_example" // string | Generic project file slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GenericProjectFileAPI.GenericProjectFileShow(context.Background(), appSlug, genericProjectFileSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GenericProjectFileAPI.GenericProjectFileShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GenericProjectFileShow`: V0ProjectFileStorageResponseModel + fmt.Fprintf(os.Stdout, "Response from `GenericProjectFileAPI.GenericProjectFileShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**genericProjectFileSlug** | **string** | Generic project file slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGenericProjectFileShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0ProjectFileStorageResponseModel**](V0ProjectFileStorageResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## GenericProjectFileUpdate + +> V0ProjectFileStorageResponseModel GenericProjectFileUpdate(ctx, appSlug, genericProjectFileSlug).GenericProjectFile(genericProjectFile).Execute() + +Update a generic project file + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + genericProjectFileSlug := "genericProjectFileSlug_example" // string | Generic project file slug + genericProjectFile := *openapiclient.NewV0ProjectFileStorageDocumentUpdateParams() // V0ProjectFileStorageDocumentUpdateParams | Generic project file parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GenericProjectFileAPI.GenericProjectFileUpdate(context.Background(), appSlug, genericProjectFileSlug).GenericProjectFile(genericProjectFile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GenericProjectFileAPI.GenericProjectFileUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GenericProjectFileUpdate`: V0ProjectFileStorageResponseModel + fmt.Fprintf(os.Stdout, "Response from `GenericProjectFileAPI.GenericProjectFileUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**genericProjectFileSlug** | **string** | Generic project file slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGenericProjectFileUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **genericProjectFile** | [**V0ProjectFileStorageDocumentUpdateParams**](V0ProjectFileStorageDocumentUpdateParams.md) | Generic project file parameters | + +### Return type + +[**V0ProjectFileStorageResponseModel**](V0ProjectFileStorageResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## GenericProjectFilesCreate + +> V0ProjectFileStorageResponseModel GenericProjectFilesCreate(ctx, appSlug).GenericProjectFile(genericProjectFile).Execute() + +Create a generic project file + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + genericProjectFile := *openapiclient.NewV0ProjectFileStorageUploadParams("UploadFileName_example", int32(123), "UserEnvKey_example") // V0ProjectFileStorageUploadParams | Generic project file parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.GenericProjectFileAPI.GenericProjectFilesCreate(context.Background(), appSlug).GenericProjectFile(genericProjectFile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `GenericProjectFileAPI.GenericProjectFilesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GenericProjectFilesCreate`: V0ProjectFileStorageResponseModel + fmt.Fprintf(os.Stdout, "Response from `GenericProjectFileAPI.GenericProjectFilesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGenericProjectFilesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **genericProjectFile** | [**V0ProjectFileStorageUploadParams**](V0ProjectFileStorageUploadParams.md) | Generic project file parameters | + +### Return type + +[**V0ProjectFileStorageResponseModel**](V0ProjectFileStorageResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/KeyValueCacheAPI.md b/go2/docs/KeyValueCacheAPI.md new file mode 100644 index 0000000..36528da --- /dev/null +++ b/go2/docs/KeyValueCacheAPI.md @@ -0,0 +1,298 @@ +# \KeyValueCacheAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CacheItemDelete**](KeyValueCacheAPI.md#CacheItemDelete) | **Delete** /apps/{app-slug}/cache-items/{cache-item-id} | Deletes a key-value cache item +[**CacheItemDeleteAll**](KeyValueCacheAPI.md#CacheItemDeleteAll) | **Delete** /apps/{app-slug}/cache-items | Deletes all key-value cache items belonging to an app +[**CacheItemDownload**](KeyValueCacheAPI.md#CacheItemDownload) | **Get** /apps/{app-slug}/cache-items/{cache-item-id}/download | Gets the download URL of a key-value cache item +[**CacheList**](KeyValueCacheAPI.md#CacheList) | **Get** /apps/{app-slug}/cache-items | List the key-value cache items belonging to an app + + + +## CacheItemDelete + +> CacheItemDelete(ctx, appSlug, cacheItemId).Execute() + +Deletes a key-value cache item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + cacheItemId := "cacheItemId_example" // string | The ID of the cache item to be deleted + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.KeyValueCacheAPI.CacheItemDelete(context.Background(), appSlug, cacheItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyValueCacheAPI.CacheItemDelete``: %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. +**appSlug** | **string** | App slug | +**cacheItemId** | **string** | The ID of the cache item to be deleted | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCacheItemDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## CacheItemDeleteAll + +> CacheItemDeleteAll(ctx, appSlug).Execute() + +Deletes all key-value cache items belonging to an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.KeyValueCacheAPI.CacheItemDeleteAll(context.Background(), appSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyValueCacheAPI.CacheItemDeleteAll``: %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. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCacheItemDeleteAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## CacheItemDownload + +> V0CacheItemDownloadResponseModel CacheItemDownload(ctx, appSlug, cacheItemId).Execute() + +Gets the download URL of a key-value cache item + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + cacheItemId := "cacheItemId_example" // string | The ID of the cache item to be downloaded + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyValueCacheAPI.CacheItemDownload(context.Background(), appSlug, cacheItemId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyValueCacheAPI.CacheItemDownload``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CacheItemDownload`: V0CacheItemDownloadResponseModel + fmt.Fprintf(os.Stdout, "Response from `KeyValueCacheAPI.CacheItemDownload`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**cacheItemId** | **string** | The ID of the cache item to be downloaded | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCacheItemDownloadRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0CacheItemDownloadResponseModel**](V0CacheItemDownloadResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## CacheList + +> V0CacheItemListResponseModel CacheList(ctx, appSlug).Next(next).Limit(limit).Execute() + +List the key-value cache items belonging to an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + next := "next_example" // string | Getting cache items created before the given parameter (RFC3339 time format, default: now) (optional) + limit := int32(56) // int32 | Max number of elements per page (default: 100) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.KeyValueCacheAPI.CacheList(context.Background(), appSlug).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `KeyValueCacheAPI.CacheList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CacheList`: V0CacheItemListResponseModel + fmt.Fprintf(os.Stdout, "Response from `KeyValueCacheAPI.CacheList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCacheListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **next** | **string** | Getting cache items created before the given parameter (RFC3339 time format, default: now) | + **limit** | **int32** | Max number of elements per page (default: 100) | + +### Return type + +[**V0CacheItemListResponseModel**](V0CacheItemListResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/LocalBuildsAPI.md b/go2/docs/LocalBuildsAPI.md new file mode 100644 index 0000000..bfb2d79 --- /dev/null +++ b/go2/docs/LocalBuildsAPI.md @@ -0,0 +1,85 @@ +# \LocalBuildsAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**LocalBuildList**](LocalBuildsAPI.md#LocalBuildList) | **Get** /apps/{app-slug}/local-builds | List local builds of an app + + + +## LocalBuildList + +> V0PipelineListResponseModel LocalBuildList(ctx, appSlug).After(after).Before(before).Limit(limit).Execute() + +List local builds of an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + after := "after_example" // string | List local builds run after a given date (RFC3339 time format) (optional) + before := "before_example" // string | List local builds run before a given date (RFC3339 time format) - was called 'next' earlier (optional) + limit := int32(56) // int32 | Max number of elements per page (default: 10) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.LocalBuildsAPI.LocalBuildList(context.Background(), appSlug).After(after).Before(before).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `LocalBuildsAPI.LocalBuildList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `LocalBuildList`: V0PipelineListResponseModel + fmt.Fprintf(os.Stdout, "Response from `LocalBuildsAPI.LocalBuildList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiLocalBuildListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **after** | **string** | List local builds run after a given date (RFC3339 time format) | + **before** | **string** | List local builds run before a given date (RFC3339 time format) - was called 'next' earlier | + **limit** | **int32** | Max number of elements per page (default: 10) | + +### Return type + +[**V0PipelineListResponseModel**](V0PipelineListResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/NullsInt64.md b/go2/docs/NullsInt64.md new file mode 100644 index 0000000..603e72d --- /dev/null +++ b/go2/docs/NullsInt64.md @@ -0,0 +1,82 @@ +# NullsInt64 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Int64** | Pointer to **int32** | | [optional] +**Valid** | Pointer to **bool** | Valid is true if Int64 is not NULL | [optional] + +## Methods + +### NewNullsInt64 + +`func NewNullsInt64() *NullsInt64` + +NewNullsInt64 instantiates a new NullsInt64 object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNullsInt64WithDefaults + +`func NewNullsInt64WithDefaults() *NullsInt64` + +NewNullsInt64WithDefaults instantiates a new NullsInt64 object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInt64 + +`func (o *NullsInt64) GetInt64() int32` + +GetInt64 returns the Int64 field if non-nil, zero value otherwise. + +### GetInt64Ok + +`func (o *NullsInt64) GetInt64Ok() (*int32, bool)` + +GetInt64Ok returns a tuple with the Int64 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInt64 + +`func (o *NullsInt64) SetInt64(v int32)` + +SetInt64 sets Int64 field to given value. + +### HasInt64 + +`func (o *NullsInt64) HasInt64() bool` + +HasInt64 returns a boolean if a field has been set. + +### GetValid + +`func (o *NullsInt64) GetValid() bool` + +GetValid returns the Valid field if non-nil, zero value otherwise. + +### GetValidOk + +`func (o *NullsInt64) GetValidOk() (*bool, bool)` + +GetValidOk returns a tuple with the Valid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValid + +`func (o *NullsInt64) SetValid(v bool)` + +SetValid sets Valid field to given value. + +### HasValid + +`func (o *NullsInt64) HasValid() bool` + +HasValid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/NullsString.md b/go2/docs/NullsString.md new file mode 100644 index 0000000..bb9db77 --- /dev/null +++ b/go2/docs/NullsString.md @@ -0,0 +1,82 @@ +# NullsString + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**String** | Pointer to **string** | | [optional] +**Valid** | Pointer to **bool** | Valid is true if String is not NULL | [optional] + +## Methods + +### NewNullsString + +`func NewNullsString() *NullsString` + +NewNullsString instantiates a new NullsString object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNullsStringWithDefaults + +`func NewNullsStringWithDefaults() *NullsString` + +NewNullsStringWithDefaults instantiates a new NullsString object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetString + +`func (o *NullsString) GetString() string` + +GetString returns the String field if non-nil, zero value otherwise. + +### GetStringOk + +`func (o *NullsString) GetStringOk() (*string, bool)` + +GetStringOk returns a tuple with the String field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetString + +`func (o *NullsString) SetString(v string)` + +SetString sets String field to given value. + +### HasString + +`func (o *NullsString) HasString() bool` + +HasString returns a boolean if a field has been set. + +### GetValid + +`func (o *NullsString) GetValid() bool` + +GetValid returns the Valid field if non-nil, zero value otherwise. + +### GetValidOk + +`func (o *NullsString) GetValidOk() (*bool, bool)` + +GetValidOk returns a tuple with the Valid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValid + +`func (o *NullsString) SetValid(v bool)` + +SetValid sets Valid field to given value. + +### HasValid + +`func (o *NullsString) HasValid() bool` + +HasValid returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/OrganizationsAPI.md b/go2/docs/OrganizationsAPI.md new file mode 100644 index 0000000..1f67235 --- /dev/null +++ b/go2/docs/OrganizationsAPI.md @@ -0,0 +1,285 @@ +# \OrganizationsAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**OrgList**](OrganizationsAPI.md#OrgList) | **Get** /organizations | List the organizations that the user is part of +[**OrgShow**](OrganizationsAPI.md#OrgShow) | **Get** /organizations/{org-slug} | Get a specified organization. +[**OrganizationMachineTypeUpdate**](OrganizationsAPI.md#OrganizationMachineTypeUpdate) | **Patch** /organizations/{org-slug}/apps/machine_types | Migrate machine types +[**OrganzationGroupsList**](OrganizationsAPI.md#OrganzationGroupsList) | **Get** /organizations/{org-slug}/groups | List organizations groups + + + +## OrgList + +> V0OrganizationListRespModel OrgList(ctx).Execute() + +List the organizations that the user is part of + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.OrgList(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.OrgList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrgList`: V0OrganizationListRespModel + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.OrgList`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrgListRequest struct via the builder pattern + + +### Return type + +[**V0OrganizationListRespModel**](V0OrganizationListRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## OrgShow + +> V0OrganizationRespModel OrgShow(ctx, orgSlug).Execute() + +Get a specified organization. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + orgSlug := "orgSlug_example" // string | The organization slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.OrgShow(context.Background(), orgSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.OrgShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrgShow`: V0OrganizationRespModel + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.OrgShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgSlug** | **string** | The organization slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrgShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0OrganizationRespModel**](V0OrganizationRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## OrganizationMachineTypeUpdate + +> V0OrganizationUpdateMachineTypeResponse OrganizationMachineTypeUpdate(ctx, orgSlug).Types(types).Execute() + +Migrate machine types + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + orgSlug := "orgSlug_example" // string | Organization slug + types := *openapiclient.NewV0OrganizationUpdateMachineTypeParams() // V0OrganizationUpdateMachineTypeParams | Machine type to migrate from and to + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.OrganizationMachineTypeUpdate(context.Background(), orgSlug).Types(types).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.OrganizationMachineTypeUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrganizationMachineTypeUpdate`: V0OrganizationUpdateMachineTypeResponse + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.OrganizationMachineTypeUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgSlug** | **string** | Organization slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrganizationMachineTypeUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **types** | [**V0OrganizationUpdateMachineTypeParams**](V0OrganizationUpdateMachineTypeParams.md) | Machine type to migrate from and to | + +### Return type + +[**V0OrganizationUpdateMachineTypeResponse**](V0OrganizationUpdateMachineTypeResponse.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## OrganzationGroupsList + +> []OrganzationGroupsList200ResponseInner OrganzationGroupsList(ctx, orgSlug).Execute() + +List organizations groups + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + orgSlug := "orgSlug_example" // string | slug of the organization + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OrganizationsAPI.OrganzationGroupsList(context.Background(), orgSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OrganizationsAPI.OrganzationGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OrganzationGroupsList`: []OrganzationGroupsList200ResponseInner + fmt.Fprintf(os.Stdout, "Response from `OrganizationsAPI.OrganzationGroupsList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**orgSlug** | **string** | slug of the organization | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOrganzationGroupsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]OrganzationGroupsList200ResponseInner**](OrganzationGroupsList200ResponseInner.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/OrganzationGroupsList200ResponseInner.md b/go2/docs/OrganzationGroupsList200ResponseInner.md new file mode 100644 index 0000000..7399ed5 --- /dev/null +++ b/go2/docs/OrganzationGroupsList200ResponseInner.md @@ -0,0 +1,82 @@ +# OrganzationGroupsList200ResponseInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] + +## Methods + +### NewOrganzationGroupsList200ResponseInner + +`func NewOrganzationGroupsList200ResponseInner() *OrganzationGroupsList200ResponseInner` + +NewOrganzationGroupsList200ResponseInner instantiates a new OrganzationGroupsList200ResponseInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewOrganzationGroupsList200ResponseInnerWithDefaults + +`func NewOrganzationGroupsList200ResponseInnerWithDefaults() *OrganzationGroupsList200ResponseInner` + +NewOrganzationGroupsList200ResponseInnerWithDefaults instantiates a new OrganzationGroupsList200ResponseInner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *OrganzationGroupsList200ResponseInner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *OrganzationGroupsList200ResponseInner) 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 *OrganzationGroupsList200ResponseInner) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *OrganzationGroupsList200ResponseInner) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlug + +`func (o *OrganzationGroupsList200ResponseInner) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *OrganzationGroupsList200ResponseInner) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *OrganzationGroupsList200ResponseInner) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *OrganzationGroupsList200ResponseInner) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/OutgoingWebhookAPI.md b/go2/docs/OutgoingWebhookAPI.md new file mode 100644 index 0000000..ea76767 --- /dev/null +++ b/go2/docs/OutgoingWebhookAPI.md @@ -0,0 +1,306 @@ +# \OutgoingWebhookAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**OutgoingWebhookCreate**](OutgoingWebhookAPI.md#OutgoingWebhookCreate) | **Post** /apps/{app-slug}/outgoing-webhooks | Create an outgoing webhook for an app +[**OutgoingWebhookDelete**](OutgoingWebhookAPI.md#OutgoingWebhookDelete) | **Delete** /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug} | Delete an outgoing webhook of an app +[**OutgoingWebhookList**](OutgoingWebhookAPI.md#OutgoingWebhookList) | **Get** /apps/{app-slug}/outgoing-webhooks | List the outgoing webhooks of an app +[**OutgoingWebhookUpdate**](OutgoingWebhookAPI.md#OutgoingWebhookUpdate) | **Put** /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug} | Update an outgoing webhook of an app + + + +## OutgoingWebhookCreate + +> V0AppWebhookCreatedResponseModel OutgoingWebhookCreate(ctx, appSlug).AppWebhookCreateParams(appWebhookCreateParams).Execute() + +Create an outgoing webhook for an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + appWebhookCreateParams := *openapiclient.NewV0AppWebhookCreateParams([]string{"Events_example"}, "Secret_example", "Url_example") // V0AppWebhookCreateParams | App webhook creation params + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OutgoingWebhookAPI.OutgoingWebhookCreate(context.Background(), appSlug).AppWebhookCreateParams(appWebhookCreateParams).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OutgoingWebhookAPI.OutgoingWebhookCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OutgoingWebhookCreate`: V0AppWebhookCreatedResponseModel + fmt.Fprintf(os.Stdout, "Response from `OutgoingWebhookAPI.OutgoingWebhookCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOutgoingWebhookCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **appWebhookCreateParams** | [**V0AppWebhookCreateParams**](V0AppWebhookCreateParams.md) | App webhook creation params | + +### Return type + +[**V0AppWebhookCreatedResponseModel**](V0AppWebhookCreatedResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## OutgoingWebhookDelete + +> V0AppWebhookDeletedResponseModel OutgoingWebhookDelete(ctx, appSlug, appWebhookSlug).Execute() + +Delete an outgoing webhook of an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + appWebhookSlug := "appWebhookSlug_example" // string | App webhook slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OutgoingWebhookAPI.OutgoingWebhookDelete(context.Background(), appSlug, appWebhookSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OutgoingWebhookAPI.OutgoingWebhookDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OutgoingWebhookDelete`: V0AppWebhookDeletedResponseModel + fmt.Fprintf(os.Stdout, "Response from `OutgoingWebhookAPI.OutgoingWebhookDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**appWebhookSlug** | **string** | App webhook slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOutgoingWebhookDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0AppWebhookDeletedResponseModel**](V0AppWebhookDeletedResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## OutgoingWebhookList + +> V0AppWebhookListResponseModel OutgoingWebhookList(ctx, appSlug).Next(next).Limit(limit).Execute() + +List the outgoing webhooks of an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + next := "next_example" // string | Slug of the first webhook in the response (optional) + limit := int32(56) // int32 | Max number of elements per page (default: 50) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OutgoingWebhookAPI.OutgoingWebhookList(context.Background(), appSlug).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OutgoingWebhookAPI.OutgoingWebhookList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OutgoingWebhookList`: V0AppWebhookListResponseModel + fmt.Fprintf(os.Stdout, "Response from `OutgoingWebhookAPI.OutgoingWebhookList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOutgoingWebhookListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **next** | **string** | Slug of the first webhook in the response | + **limit** | **int32** | Max number of elements per page (default: 50) | + +### Return type + +[**V0AppWebhookListResponseModel**](V0AppWebhookListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## OutgoingWebhookUpdate + +> V0AppWebhookResponseModel OutgoingWebhookUpdate(ctx, appSlug, appWebhookSlug).AppWebhookUpdateParams(appWebhookUpdateParams).Execute() + +Update an outgoing webhook of an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + appWebhookSlug := "appWebhookSlug_example" // string | App webhook slug + appWebhookUpdateParams := *openapiclient.NewV0AppWebhookUpdateParams([]string{"Events_example"}, "Url_example") // V0AppWebhookUpdateParams | App webhook update params + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.OutgoingWebhookAPI.OutgoingWebhookUpdate(context.Background(), appSlug, appWebhookSlug).AppWebhookUpdateParams(appWebhookUpdateParams).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `OutgoingWebhookAPI.OutgoingWebhookUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `OutgoingWebhookUpdate`: V0AppWebhookResponseModel + fmt.Fprintf(os.Stdout, "Response from `OutgoingWebhookAPI.OutgoingWebhookUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**appWebhookSlug** | **string** | App webhook slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiOutgoingWebhookUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **appWebhookUpdateParams** | [**V0AppWebhookUpdateParams**](V0AppWebhookUpdateParams.md) | App webhook update params | + +### Return type + +[**V0AppWebhookResponseModel**](V0AppWebhookResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/PipelineabledomainArtifactMeta.md b/go2/docs/PipelineabledomainArtifactMeta.md new file mode 100644 index 0000000..b3aff12 --- /dev/null +++ b/go2/docs/PipelineabledomainArtifactMeta.md @@ -0,0 +1,160 @@ +# PipelineabledomainArtifactMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ArtifactType** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Title** | Pointer to **string** | | [optional] +**VersionCode** | Pointer to **string** | | [optional] +**VersionName** | Pointer to **string** | | [optional] + +## Methods + +### NewPipelineabledomainArtifactMeta + +`func NewPipelineabledomainArtifactMeta() *PipelineabledomainArtifactMeta` + +NewPipelineabledomainArtifactMeta instantiates a new PipelineabledomainArtifactMeta object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPipelineabledomainArtifactMetaWithDefaults + +`func NewPipelineabledomainArtifactMetaWithDefaults() *PipelineabledomainArtifactMeta` + +NewPipelineabledomainArtifactMetaWithDefaults instantiates a new PipelineabledomainArtifactMeta object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArtifactType + +`func (o *PipelineabledomainArtifactMeta) GetArtifactType() string` + +GetArtifactType returns the ArtifactType field if non-nil, zero value otherwise. + +### GetArtifactTypeOk + +`func (o *PipelineabledomainArtifactMeta) GetArtifactTypeOk() (*string, bool)` + +GetArtifactTypeOk returns a tuple with the ArtifactType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifactType + +`func (o *PipelineabledomainArtifactMeta) SetArtifactType(v string)` + +SetArtifactType sets ArtifactType field to given value. + +### HasArtifactType + +`func (o *PipelineabledomainArtifactMeta) HasArtifactType() bool` + +HasArtifactType returns a boolean if a field has been set. + +### GetId + +`func (o *PipelineabledomainArtifactMeta) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *PipelineabledomainArtifactMeta) 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 *PipelineabledomainArtifactMeta) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *PipelineabledomainArtifactMeta) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetTitle + +`func (o *PipelineabledomainArtifactMeta) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *PipelineabledomainArtifactMeta) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *PipelineabledomainArtifactMeta) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *PipelineabledomainArtifactMeta) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetVersionCode + +`func (o *PipelineabledomainArtifactMeta) GetVersionCode() string` + +GetVersionCode returns the VersionCode field if non-nil, zero value otherwise. + +### GetVersionCodeOk + +`func (o *PipelineabledomainArtifactMeta) GetVersionCodeOk() (*string, bool)` + +GetVersionCodeOk returns a tuple with the VersionCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersionCode + +`func (o *PipelineabledomainArtifactMeta) SetVersionCode(v string)` + +SetVersionCode sets VersionCode field to given value. + +### HasVersionCode + +`func (o *PipelineabledomainArtifactMeta) HasVersionCode() bool` + +HasVersionCode returns a boolean if a field has been set. + +### GetVersionName + +`func (o *PipelineabledomainArtifactMeta) GetVersionName() string` + +GetVersionName returns the VersionName field if non-nil, zero value otherwise. + +### GetVersionNameOk + +`func (o *PipelineabledomainArtifactMeta) GetVersionNameOk() (*string, bool)` + +GetVersionNameOk returns a tuple with the VersionName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersionName + +`func (o *PipelineabledomainArtifactMeta) SetVersionName(v string)` + +SetVersionName sets VersionName field to given value. + +### HasVersionName + +`func (o *PipelineabledomainArtifactMeta) HasVersionName() bool` + +HasVersionName returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/PipelineabledomainBuildToolInvocation.md b/go2/docs/PipelineabledomainBuildToolInvocation.md new file mode 100644 index 0000000..a5d2e54 --- /dev/null +++ b/go2/docs/PipelineabledomainBuildToolInvocation.md @@ -0,0 +1,108 @@ +# PipelineabledomainBuildToolInvocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InvocationId** | Pointer to **string** | | [optional] +**Tool** | Pointer to **string** | | [optional] +**ToolVersion** | Pointer to **string** | | [optional] + +## Methods + +### NewPipelineabledomainBuildToolInvocation + +`func NewPipelineabledomainBuildToolInvocation() *PipelineabledomainBuildToolInvocation` + +NewPipelineabledomainBuildToolInvocation instantiates a new PipelineabledomainBuildToolInvocation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPipelineabledomainBuildToolInvocationWithDefaults + +`func NewPipelineabledomainBuildToolInvocationWithDefaults() *PipelineabledomainBuildToolInvocation` + +NewPipelineabledomainBuildToolInvocationWithDefaults instantiates a new PipelineabledomainBuildToolInvocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInvocationId + +`func (o *PipelineabledomainBuildToolInvocation) GetInvocationId() string` + +GetInvocationId returns the InvocationId field if non-nil, zero value otherwise. + +### GetInvocationIdOk + +`func (o *PipelineabledomainBuildToolInvocation) GetInvocationIdOk() (*string, bool)` + +GetInvocationIdOk returns a tuple with the InvocationId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvocationId + +`func (o *PipelineabledomainBuildToolInvocation) SetInvocationId(v string)` + +SetInvocationId sets InvocationId field to given value. + +### HasInvocationId + +`func (o *PipelineabledomainBuildToolInvocation) HasInvocationId() bool` + +HasInvocationId returns a boolean if a field has been set. + +### GetTool + +`func (o *PipelineabledomainBuildToolInvocation) GetTool() string` + +GetTool returns the Tool field if non-nil, zero value otherwise. + +### GetToolOk + +`func (o *PipelineabledomainBuildToolInvocation) GetToolOk() (*string, bool)` + +GetToolOk returns a tuple with the Tool field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTool + +`func (o *PipelineabledomainBuildToolInvocation) SetTool(v string)` + +SetTool sets Tool field to given value. + +### HasTool + +`func (o *PipelineabledomainBuildToolInvocation) HasTool() bool` + +HasTool returns a boolean if a field has been set. + +### GetToolVersion + +`func (o *PipelineabledomainBuildToolInvocation) GetToolVersion() string` + +GetToolVersion returns the ToolVersion field if non-nil, zero value otherwise. + +### GetToolVersionOk + +`func (o *PipelineabledomainBuildToolInvocation) GetToolVersionOk() (*string, bool)` + +GetToolVersionOk returns a tuple with the ToolVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToolVersion + +`func (o *PipelineabledomainBuildToolInvocation) SetToolVersion(v string)` + +SetToolVersion sets ToolVersion field to given value. + +### HasToolVersion + +`func (o *PipelineabledomainBuildToolInvocation) HasToolVersion() bool` + +HasToolVersion returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/PipelineabledomainEnvironments.md b/go2/docs/PipelineabledomainEnvironments.md new file mode 100644 index 0000000..d0ee451 --- /dev/null +++ b/go2/docs/PipelineabledomainEnvironments.md @@ -0,0 +1,108 @@ +# PipelineabledomainEnvironments + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsExpand** | Pointer to **map[string]interface{}** | | [optional] +**Key** | Pointer to **string** | | [optional] +**Value** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPipelineabledomainEnvironments + +`func NewPipelineabledomainEnvironments() *PipelineabledomainEnvironments` + +NewPipelineabledomainEnvironments instantiates a new PipelineabledomainEnvironments object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPipelineabledomainEnvironmentsWithDefaults + +`func NewPipelineabledomainEnvironmentsWithDefaults() *PipelineabledomainEnvironments` + +NewPipelineabledomainEnvironmentsWithDefaults instantiates a new PipelineabledomainEnvironments object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsExpand + +`func (o *PipelineabledomainEnvironments) GetIsExpand() map[string]interface{}` + +GetIsExpand returns the IsExpand field if non-nil, zero value otherwise. + +### GetIsExpandOk + +`func (o *PipelineabledomainEnvironments) GetIsExpandOk() (*map[string]interface{}, bool)` + +GetIsExpandOk returns a tuple with the IsExpand field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsExpand + +`func (o *PipelineabledomainEnvironments) SetIsExpand(v map[string]interface{})` + +SetIsExpand sets IsExpand field to given value. + +### HasIsExpand + +`func (o *PipelineabledomainEnvironments) HasIsExpand() bool` + +HasIsExpand returns a boolean if a field has been set. + +### GetKey + +`func (o *PipelineabledomainEnvironments) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *PipelineabledomainEnvironments) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *PipelineabledomainEnvironments) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *PipelineabledomainEnvironments) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetValue + +`func (o *PipelineabledomainEnvironments) GetValue() map[string]interface{}` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PipelineabledomainEnvironments) GetValueOk() (*map[string]interface{}, 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 *PipelineabledomainEnvironments) SetValue(v map[string]interface{})` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *PipelineabledomainEnvironments) 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/go2/docs/PipelineabledomainLocalConfig.md b/go2/docs/PipelineabledomainLocalConfig.md new file mode 100644 index 0000000..a45a530 --- /dev/null +++ b/go2/docs/PipelineabledomainLocalConfig.md @@ -0,0 +1,82 @@ +# PipelineabledomainLocalConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Host** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewPipelineabledomainLocalConfig + +`func NewPipelineabledomainLocalConfig() *PipelineabledomainLocalConfig` + +NewPipelineabledomainLocalConfig instantiates a new PipelineabledomainLocalConfig object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPipelineabledomainLocalConfigWithDefaults + +`func NewPipelineabledomainLocalConfigWithDefaults() *PipelineabledomainLocalConfig` + +NewPipelineabledomainLocalConfigWithDefaults instantiates a new PipelineabledomainLocalConfig object +This 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 *PipelineabledomainLocalConfig) GetHost() string` + +GetHost returns the Host field if non-nil, zero value otherwise. + +### GetHostOk + +`func (o *PipelineabledomainLocalConfig) 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 *PipelineabledomainLocalConfig) SetHost(v string)` + +SetHost sets Host field to given value. + +### HasHost + +`func (o *PipelineabledomainLocalConfig) HasHost() bool` + +HasHost returns a boolean if a field has been set. + +### GetUsername + +`func (o *PipelineabledomainLocalConfig) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *PipelineabledomainLocalConfig) 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 *PipelineabledomainLocalConfig) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *PipelineabledomainLocalConfig) 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/go2/docs/PipelineabledomainTriggerParams.md b/go2/docs/PipelineabledomainTriggerParams.md new file mode 100644 index 0000000..d6b5aa2 --- /dev/null +++ b/go2/docs/PipelineabledomainTriggerParams.md @@ -0,0 +1,394 @@ +# PipelineabledomainTriggerParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Branch** | Pointer to **string** | | [optional] +**BranchDest** | Pointer to **string** | | [optional] +**BranchDestRepoOwner** | Pointer to **string** | | [optional] +**BranchRepoOwner** | Pointer to **string** | | [optional] +**CommitHash** | Pointer to **string** | | [optional] +**CommitMessage** | Pointer to **string** | | [optional] +**Environments** | Pointer to [**[]PipelineabledomainEnvironments**](PipelineabledomainEnvironments.md) | | [optional] +**PullRequestAuthor** | Pointer to **string** | | [optional] +**PullRequestHeadBranch** | Pointer to **string** | | [optional] +**PullRequestId** | Pointer to **map[string]interface{}** | | [optional] +**PullRequestMergeBranch** | Pointer to **string** | | [optional] +**PullRequestRepositoryUrl** | Pointer to **string** | | [optional] +**PullRequestUnverifiedMergeBranch** | Pointer to **string** | | [optional] +**Tag** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPipelineabledomainTriggerParams + +`func NewPipelineabledomainTriggerParams() *PipelineabledomainTriggerParams` + +NewPipelineabledomainTriggerParams instantiates a new PipelineabledomainTriggerParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPipelineabledomainTriggerParamsWithDefaults + +`func NewPipelineabledomainTriggerParamsWithDefaults() *PipelineabledomainTriggerParams` + +NewPipelineabledomainTriggerParamsWithDefaults instantiates a new PipelineabledomainTriggerParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBranch + +`func (o *PipelineabledomainTriggerParams) GetBranch() string` + +GetBranch returns the Branch field if non-nil, zero value otherwise. + +### GetBranchOk + +`func (o *PipelineabledomainTriggerParams) GetBranchOk() (*string, bool)` + +GetBranchOk returns a tuple with the Branch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranch + +`func (o *PipelineabledomainTriggerParams) SetBranch(v string)` + +SetBranch sets Branch field to given value. + +### HasBranch + +`func (o *PipelineabledomainTriggerParams) HasBranch() bool` + +HasBranch returns a boolean if a field has been set. + +### GetBranchDest + +`func (o *PipelineabledomainTriggerParams) GetBranchDest() string` + +GetBranchDest returns the BranchDest field if non-nil, zero value otherwise. + +### GetBranchDestOk + +`func (o *PipelineabledomainTriggerParams) GetBranchDestOk() (*string, bool)` + +GetBranchDestOk returns a tuple with the BranchDest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranchDest + +`func (o *PipelineabledomainTriggerParams) SetBranchDest(v string)` + +SetBranchDest sets BranchDest field to given value. + +### HasBranchDest + +`func (o *PipelineabledomainTriggerParams) HasBranchDest() bool` + +HasBranchDest returns a boolean if a field has been set. + +### GetBranchDestRepoOwner + +`func (o *PipelineabledomainTriggerParams) GetBranchDestRepoOwner() string` + +GetBranchDestRepoOwner returns the BranchDestRepoOwner field if non-nil, zero value otherwise. + +### GetBranchDestRepoOwnerOk + +`func (o *PipelineabledomainTriggerParams) GetBranchDestRepoOwnerOk() (*string, bool)` + +GetBranchDestRepoOwnerOk returns a tuple with the BranchDestRepoOwner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranchDestRepoOwner + +`func (o *PipelineabledomainTriggerParams) SetBranchDestRepoOwner(v string)` + +SetBranchDestRepoOwner sets BranchDestRepoOwner field to given value. + +### HasBranchDestRepoOwner + +`func (o *PipelineabledomainTriggerParams) HasBranchDestRepoOwner() bool` + +HasBranchDestRepoOwner returns a boolean if a field has been set. + +### GetBranchRepoOwner + +`func (o *PipelineabledomainTriggerParams) GetBranchRepoOwner() string` + +GetBranchRepoOwner returns the BranchRepoOwner field if non-nil, zero value otherwise. + +### GetBranchRepoOwnerOk + +`func (o *PipelineabledomainTriggerParams) GetBranchRepoOwnerOk() (*string, bool)` + +GetBranchRepoOwnerOk returns a tuple with the BranchRepoOwner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranchRepoOwner + +`func (o *PipelineabledomainTriggerParams) SetBranchRepoOwner(v string)` + +SetBranchRepoOwner sets BranchRepoOwner field to given value. + +### HasBranchRepoOwner + +`func (o *PipelineabledomainTriggerParams) HasBranchRepoOwner() bool` + +HasBranchRepoOwner returns a boolean if a field has been set. + +### GetCommitHash + +`func (o *PipelineabledomainTriggerParams) GetCommitHash() string` + +GetCommitHash returns the CommitHash field if non-nil, zero value otherwise. + +### GetCommitHashOk + +`func (o *PipelineabledomainTriggerParams) GetCommitHashOk() (*string, bool)` + +GetCommitHashOk returns a tuple with the CommitHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitHash + +`func (o *PipelineabledomainTriggerParams) SetCommitHash(v string)` + +SetCommitHash sets CommitHash field to given value. + +### HasCommitHash + +`func (o *PipelineabledomainTriggerParams) HasCommitHash() bool` + +HasCommitHash returns a boolean if a field has been set. + +### GetCommitMessage + +`func (o *PipelineabledomainTriggerParams) GetCommitMessage() string` + +GetCommitMessage returns the CommitMessage field if non-nil, zero value otherwise. + +### GetCommitMessageOk + +`func (o *PipelineabledomainTriggerParams) GetCommitMessageOk() (*string, bool)` + +GetCommitMessageOk returns a tuple with the CommitMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitMessage + +`func (o *PipelineabledomainTriggerParams) SetCommitMessage(v string)` + +SetCommitMessage sets CommitMessage field to given value. + +### HasCommitMessage + +`func (o *PipelineabledomainTriggerParams) HasCommitMessage() bool` + +HasCommitMessage returns a boolean if a field has been set. + +### GetEnvironments + +`func (o *PipelineabledomainTriggerParams) GetEnvironments() []PipelineabledomainEnvironments` + +GetEnvironments returns the Environments field if non-nil, zero value otherwise. + +### GetEnvironmentsOk + +`func (o *PipelineabledomainTriggerParams) GetEnvironmentsOk() (*[]PipelineabledomainEnvironments, bool)` + +GetEnvironmentsOk returns a tuple with the Environments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironments + +`func (o *PipelineabledomainTriggerParams) SetEnvironments(v []PipelineabledomainEnvironments)` + +SetEnvironments sets Environments field to given value. + +### HasEnvironments + +`func (o *PipelineabledomainTriggerParams) HasEnvironments() bool` + +HasEnvironments returns a boolean if a field has been set. + +### GetPullRequestAuthor + +`func (o *PipelineabledomainTriggerParams) GetPullRequestAuthor() string` + +GetPullRequestAuthor returns the PullRequestAuthor field if non-nil, zero value otherwise. + +### GetPullRequestAuthorOk + +`func (o *PipelineabledomainTriggerParams) GetPullRequestAuthorOk() (*string, bool)` + +GetPullRequestAuthorOk returns a tuple with the PullRequestAuthor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestAuthor + +`func (o *PipelineabledomainTriggerParams) SetPullRequestAuthor(v string)` + +SetPullRequestAuthor sets PullRequestAuthor field to given value. + +### HasPullRequestAuthor + +`func (o *PipelineabledomainTriggerParams) HasPullRequestAuthor() bool` + +HasPullRequestAuthor returns a boolean if a field has been set. + +### GetPullRequestHeadBranch + +`func (o *PipelineabledomainTriggerParams) GetPullRequestHeadBranch() string` + +GetPullRequestHeadBranch returns the PullRequestHeadBranch field if non-nil, zero value otherwise. + +### GetPullRequestHeadBranchOk + +`func (o *PipelineabledomainTriggerParams) GetPullRequestHeadBranchOk() (*string, bool)` + +GetPullRequestHeadBranchOk returns a tuple with the PullRequestHeadBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestHeadBranch + +`func (o *PipelineabledomainTriggerParams) SetPullRequestHeadBranch(v string)` + +SetPullRequestHeadBranch sets PullRequestHeadBranch field to given value. + +### HasPullRequestHeadBranch + +`func (o *PipelineabledomainTriggerParams) HasPullRequestHeadBranch() bool` + +HasPullRequestHeadBranch returns a boolean if a field has been set. + +### GetPullRequestId + +`func (o *PipelineabledomainTriggerParams) GetPullRequestId() map[string]interface{}` + +GetPullRequestId returns the PullRequestId field if non-nil, zero value otherwise. + +### GetPullRequestIdOk + +`func (o *PipelineabledomainTriggerParams) GetPullRequestIdOk() (*map[string]interface{}, bool)` + +GetPullRequestIdOk returns a tuple with the PullRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestId + +`func (o *PipelineabledomainTriggerParams) SetPullRequestId(v map[string]interface{})` + +SetPullRequestId sets PullRequestId field to given value. + +### HasPullRequestId + +`func (o *PipelineabledomainTriggerParams) HasPullRequestId() bool` + +HasPullRequestId returns a boolean if a field has been set. + +### GetPullRequestMergeBranch + +`func (o *PipelineabledomainTriggerParams) GetPullRequestMergeBranch() string` + +GetPullRequestMergeBranch returns the PullRequestMergeBranch field if non-nil, zero value otherwise. + +### GetPullRequestMergeBranchOk + +`func (o *PipelineabledomainTriggerParams) GetPullRequestMergeBranchOk() (*string, bool)` + +GetPullRequestMergeBranchOk returns a tuple with the PullRequestMergeBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestMergeBranch + +`func (o *PipelineabledomainTriggerParams) SetPullRequestMergeBranch(v string)` + +SetPullRequestMergeBranch sets PullRequestMergeBranch field to given value. + +### HasPullRequestMergeBranch + +`func (o *PipelineabledomainTriggerParams) HasPullRequestMergeBranch() bool` + +HasPullRequestMergeBranch returns a boolean if a field has been set. + +### GetPullRequestRepositoryUrl + +`func (o *PipelineabledomainTriggerParams) GetPullRequestRepositoryUrl() string` + +GetPullRequestRepositoryUrl returns the PullRequestRepositoryUrl field if non-nil, zero value otherwise. + +### GetPullRequestRepositoryUrlOk + +`func (o *PipelineabledomainTriggerParams) GetPullRequestRepositoryUrlOk() (*string, bool)` + +GetPullRequestRepositoryUrlOk returns a tuple with the PullRequestRepositoryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestRepositoryUrl + +`func (o *PipelineabledomainTriggerParams) SetPullRequestRepositoryUrl(v string)` + +SetPullRequestRepositoryUrl sets PullRequestRepositoryUrl field to given value. + +### HasPullRequestRepositoryUrl + +`func (o *PipelineabledomainTriggerParams) HasPullRequestRepositoryUrl() bool` + +HasPullRequestRepositoryUrl returns a boolean if a field has been set. + +### GetPullRequestUnverifiedMergeBranch + +`func (o *PipelineabledomainTriggerParams) GetPullRequestUnverifiedMergeBranch() string` + +GetPullRequestUnverifiedMergeBranch returns the PullRequestUnverifiedMergeBranch field if non-nil, zero value otherwise. + +### GetPullRequestUnverifiedMergeBranchOk + +`func (o *PipelineabledomainTriggerParams) GetPullRequestUnverifiedMergeBranchOk() (*string, bool)` + +GetPullRequestUnverifiedMergeBranchOk returns a tuple with the PullRequestUnverifiedMergeBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestUnverifiedMergeBranch + +`func (o *PipelineabledomainTriggerParams) SetPullRequestUnverifiedMergeBranch(v string)` + +SetPullRequestUnverifiedMergeBranch sets PullRequestUnverifiedMergeBranch field to given value. + +### HasPullRequestUnverifiedMergeBranch + +`func (o *PipelineabledomainTriggerParams) HasPullRequestUnverifiedMergeBranch() bool` + +HasPullRequestUnverifiedMergeBranch returns a boolean if a field has been set. + +### GetTag + +`func (o *PipelineabledomainTriggerParams) GetTag() map[string]interface{}` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *PipelineabledomainTriggerParams) GetTagOk() (*map[string]interface{}, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *PipelineabledomainTriggerParams) SetTag(v map[string]interface{})` + +SetTag sets Tag field to given value. + +### HasTag + +`func (o *PipelineabledomainTriggerParams) HasTag() bool` + +HasTag returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/PipelinesAPI.md b/go2/docs/PipelinesAPI.md new file mode 100644 index 0000000..500a223 --- /dev/null +++ b/go2/docs/PipelinesAPI.md @@ -0,0 +1,398 @@ +# \PipelinesAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**PipelineAbort**](PipelinesAPI.md#PipelineAbort) | **Post** /apps/{app-slug}/pipelines/{pipeline-id}/abort | Aborts a pipeline +[**PipelineList**](PipelinesAPI.md#PipelineList) | **Get** /apps/{app-slug}/pipelines | List all pipelines and standalone builds of an app +[**PipelineListAll**](PipelinesAPI.md#PipelineListAll) | **Get** /pipelines | List all pipelines/standalone builds +[**PipelineRebuild**](PipelinesAPI.md#PipelineRebuild) | **Post** /apps/{app-slug}/pipelines/{pipeline-id}/rebuild | Rebuilds a pipeline +[**PipelineShow**](PipelinesAPI.md#PipelineShow) | **Get** /apps/{app-slug}/pipelines/{pipeline-id} | Get a pipeline of a given app + + + +## PipelineAbort + +> PipelineAbort(ctx, appSlug, pipelineId).PipelineAbortParams(pipelineAbortParams).Execute() + +Aborts a pipeline + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + pipelineId := "pipelineId_example" // string | Pipeline id + pipelineAbortParams := *openapiclient.NewV0PipelineAbortParams("AbortReason_example", false, false) // V0PipelineAbortParams | Pipeline abort parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PipelinesAPI.PipelineAbort(context.Background(), appSlug, pipelineId).PipelineAbortParams(pipelineAbortParams).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PipelinesAPI.PipelineAbort``: %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. +**appSlug** | **string** | App slug | +**pipelineId** | **string** | Pipeline id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPipelineAbortRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pipelineAbortParams** | [**V0PipelineAbortParams**](V0PipelineAbortParams.md) | Pipeline abort parameters | + +### Return type + + (empty response body) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## PipelineList + +> V0PipelineListResponseModel PipelineList(ctx, appSlug).After(after).Before(before).Branch(branch).BuildNumber(buildNumber).BuildEnvironment(buildEnvironment).CommitMessage(commitMessage).Limit(limit).Next(next).Pipeline(pipeline).Status(status).TriggerEventType(triggerEventType).Workflow(workflow).Execute() + +List all pipelines and standalone builds of an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + after := "after_example" // string | List pipelines/standalone builds run after a given date (RFC3339 time format) (optional) + before := "before_example" // string | List pipelines/standalone builds run before a given date (RFC3339 time format) - was called 'next' earlier (optional) + branch := "branch_example" // string | The branch which was built (optional) + buildNumber := int32(56) // int32 | The pipeline/standalone build number (optional) + buildEnvironment := "buildEnvironment_example" // string | The build environment of the listed builds (ci, local, all) - default: ci (optional) + commitMessage := "commitMessage_example" // string | The commit message of the pipeline/standalone build (optional) + limit := int32(56) // int32 | Max number of elements per page - default: 10 (optional) + next := "next_example" // string | List pipelines/standalone builds run before a given date (RFC3339 time format) - deprecated (optional) + pipeline := "pipeline_example" // string | Name of the pipeline (optional) + status := "status_example" // string | The status of the pipeline/standalone build: initializing, on_hold, running, succeeded, failed, aborted, succeeded_with_abort (optional) + triggerEventType := "triggerEventType_example" // string | The event that triggered the pipeline/standalone build (push, pull-request, tag) (optional) + workflow := "workflow_example" // string | The name of the workflow used for the pipeline/standalone build (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PipelinesAPI.PipelineList(context.Background(), appSlug).After(after).Before(before).Branch(branch).BuildNumber(buildNumber).BuildEnvironment(buildEnvironment).CommitMessage(commitMessage).Limit(limit).Next(next).Pipeline(pipeline).Status(status).TriggerEventType(triggerEventType).Workflow(workflow).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PipelinesAPI.PipelineList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PipelineList`: V0PipelineListResponseModel + fmt.Fprintf(os.Stdout, "Response from `PipelinesAPI.PipelineList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPipelineListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **after** | **string** | List pipelines/standalone builds run after a given date (RFC3339 time format) | + **before** | **string** | List pipelines/standalone builds run before a given date (RFC3339 time format) - was called 'next' earlier | + **branch** | **string** | The branch which was built | + **buildNumber** | **int32** | The pipeline/standalone build number | + **buildEnvironment** | **string** | The build environment of the listed builds (ci, local, all) - default: ci | + **commitMessage** | **string** | The commit message of the pipeline/standalone build | + **limit** | **int32** | Max number of elements per page - default: 10 | + **next** | **string** | List pipelines/standalone builds run before a given date (RFC3339 time format) - deprecated | + **pipeline** | **string** | Name of the pipeline | + **status** | **string** | The status of the pipeline/standalone build: initializing, on_hold, running, succeeded, failed, aborted, succeeded_with_abort | + **triggerEventType** | **string** | The event that triggered the pipeline/standalone build (push, pull-request, tag) | + **workflow** | **string** | The name of the workflow used for the pipeline/standalone build | + +### Return type + +[**V0PipelineListResponseModel**](V0PipelineListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## PipelineListAll + +> V0PipelineListAllResponseModel PipelineListAll(ctx).OwnerSlug(ownerSlug).Status(status).Next(next).Limit(limit).Execute() + +List all pipelines/standalone builds + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + ownerSlug := "ownerSlug_example" // string | The slug of the owner of the app or apps (optional) + status := int32(56) // int32 | The status of the pipelines/standalone build: initializing, on_hold, running, succeeded, failed, aborted, succeeded_with_abort (optional) + next := "next_example" // string | Getting pipelines/standalone builds before the given parameter (RFC3339 time format) (optional) + limit := int32(56) // int32 | Max number of elements per page (default: 10) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PipelinesAPI.PipelineListAll(context.Background()).OwnerSlug(ownerSlug).Status(status).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PipelinesAPI.PipelineListAll``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PipelineListAll`: V0PipelineListAllResponseModel + fmt.Fprintf(os.Stdout, "Response from `PipelinesAPI.PipelineListAll`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiPipelineListAllRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **ownerSlug** | **string** | The slug of the owner of the app or apps | + **status** | **int32** | The status of the pipelines/standalone build: initializing, on_hold, running, succeeded, failed, aborted, succeeded_with_abort | + **next** | **string** | Getting pipelines/standalone builds before the given parameter (RFC3339 time format) | + **limit** | **int32** | Max number of elements per page (default: 10) | + +### Return type + +[**V0PipelineListAllResponseModel**](V0PipelineListAllResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## PipelineRebuild + +> PipelineRebuild(ctx, appSlug, pipelineId).PipelineRebuildParams(pipelineRebuildParams).Execute() + +Rebuilds a pipeline + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + pipelineId := "pipelineId_example" // string | Pipeline id + pipelineRebuildParams := *openapiclient.NewV0PipelineRebuildParams() // V0PipelineRebuildParams | Pipeline rebuild parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.PipelinesAPI.PipelineRebuild(context.Background(), appSlug, pipelineId).PipelineRebuildParams(pipelineRebuildParams).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PipelinesAPI.PipelineRebuild``: %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. +**appSlug** | **string** | App slug | +**pipelineId** | **string** | Pipeline id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPipelineRebuildRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **pipelineRebuildParams** | [**V0PipelineRebuildParams**](V0PipelineRebuildParams.md) | Pipeline rebuild parameters | + +### Return type + + (empty response body) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## PipelineShow + +> V0PipelineShowResponseModel PipelineShow(ctx, appSlug, pipelineId).Execute() + +Get a pipeline of a given app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + pipelineId := "pipelineId_example" // string | Pipeline id + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.PipelinesAPI.PipelineShow(context.Background(), appSlug, pipelineId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `PipelinesAPI.PipelineShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `PipelineShow`: V0PipelineShowResponseModel + fmt.Fprintf(os.Stdout, "Response from `PipelinesAPI.PipelineShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**pipelineId** | **string** | Pipeline id | + +### Other Parameters + +Other parameters are passed through a pointer to a apiPipelineShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0PipelineShowResponseModel**](V0PipelineShowResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/ProvisioningProfileAPI.md b/go2/docs/ProvisioningProfileAPI.md new file mode 100644 index 0000000..f1d4152 --- /dev/null +++ b/go2/docs/ProvisioningProfileAPI.md @@ -0,0 +1,454 @@ +# \ProvisioningProfileAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ProvisioningProfileConfirm**](ProvisioningProfileAPI.md#ProvisioningProfileConfirm) | **Post** /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug}/uploaded | Confirm a provisioning profile upload +[**ProvisioningProfileCreate**](ProvisioningProfileAPI.md#ProvisioningProfileCreate) | **Post** /apps/{app-slug}/provisioning-profiles | Create a provisioning profile +[**ProvisioningProfileDelete**](ProvisioningProfileAPI.md#ProvisioningProfileDelete) | **Delete** /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug} | Delete a provisioning profile +[**ProvisioningProfileList**](ProvisioningProfileAPI.md#ProvisioningProfileList) | **Get** /apps/{app-slug}/provisioning-profiles | Get a list of the provisioning profiles +[**ProvisioningProfileShow**](ProvisioningProfileAPI.md#ProvisioningProfileShow) | **Get** /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug} | Get a specific provisioning profile +[**ProvisioningProfileUpdate**](ProvisioningProfileAPI.md#ProvisioningProfileUpdate) | **Patch** /apps/{app-slug}/provisioning-profiles/{provisioning-profile-slug} | Update a provisioning profile + + + +## ProvisioningProfileConfirm + +> V0ProvisionProfileResponseModel ProvisioningProfileConfirm(ctx, appSlug, provisioningProfileSlug).Execute() + +Confirm a provisioning profile upload + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + provisioningProfileSlug := "provisioningProfileSlug_example" // string | Provisioning profile slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProvisioningProfileAPI.ProvisioningProfileConfirm(context.Background(), appSlug, provisioningProfileSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProvisioningProfileAPI.ProvisioningProfileConfirm``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ProvisioningProfileConfirm`: V0ProvisionProfileResponseModel + fmt.Fprintf(os.Stdout, "Response from `ProvisioningProfileAPI.ProvisioningProfileConfirm`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**provisioningProfileSlug** | **string** | Provisioning profile slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiProvisioningProfileConfirmRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0ProvisionProfileResponseModel**](V0ProvisionProfileResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## ProvisioningProfileCreate + +> V0ProvisionProfileResponseModel ProvisioningProfileCreate(ctx, appSlug).ProvisioningProfile(provisioningProfile).Execute() + +Create a provisioning profile + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + provisioningProfile := *openapiclient.NewV0ProvisionProfileUploadParams("UploadFileName_example", int32(123)) // V0ProvisionProfileUploadParams | Provisioning profile parameters such as file name and file size + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProvisioningProfileAPI.ProvisioningProfileCreate(context.Background(), appSlug).ProvisioningProfile(provisioningProfile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProvisioningProfileAPI.ProvisioningProfileCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ProvisioningProfileCreate`: V0ProvisionProfileResponseModel + fmt.Fprintf(os.Stdout, "Response from `ProvisioningProfileAPI.ProvisioningProfileCreate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiProvisioningProfileCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **provisioningProfile** | [**V0ProvisionProfileUploadParams**](V0ProvisionProfileUploadParams.md) | Provisioning profile parameters such as file name and file size | + +### Return type + +[**V0ProvisionProfileResponseModel**](V0ProvisionProfileResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## ProvisioningProfileDelete + +> V0ProvisionProfileResponseModel ProvisioningProfileDelete(ctx, appSlug, provisioningProfileSlug).Execute() + +Delete a provisioning profile + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + provisioningProfileSlug := "provisioningProfileSlug_example" // string | Provisioning profile slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProvisioningProfileAPI.ProvisioningProfileDelete(context.Background(), appSlug, provisioningProfileSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProvisioningProfileAPI.ProvisioningProfileDelete``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ProvisioningProfileDelete`: V0ProvisionProfileResponseModel + fmt.Fprintf(os.Stdout, "Response from `ProvisioningProfileAPI.ProvisioningProfileDelete`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**provisioningProfileSlug** | **string** | Provisioning profile slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiProvisioningProfileDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0ProvisionProfileResponseModel**](V0ProvisionProfileResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## ProvisioningProfileList + +> V0ProvisionProfileListResponseModel ProvisioningProfileList(ctx, appSlug).Next(next).Limit(limit).Execute() + +Get a list of the provisioning profiles + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + next := "next_example" // string | Slug of the first provisioning profile in the response (optional) + limit := int32(56) // int32 | Max number of elements per page (default: 50) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProvisioningProfileAPI.ProvisioningProfileList(context.Background(), appSlug).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProvisioningProfileAPI.ProvisioningProfileList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ProvisioningProfileList`: V0ProvisionProfileListResponseModel + fmt.Fprintf(os.Stdout, "Response from `ProvisioningProfileAPI.ProvisioningProfileList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiProvisioningProfileListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **next** | **string** | Slug of the first provisioning profile in the response | + **limit** | **int32** | Max number of elements per page (default: 50) | + +### Return type + +[**V0ProvisionProfileListResponseModel**](V0ProvisionProfileListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## ProvisioningProfileShow + +> V0ProvisionProfileResponseModel ProvisioningProfileShow(ctx, appSlug, provisioningProfileSlug).Execute() + +Get a specific provisioning profile + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + provisioningProfileSlug := "provisioningProfileSlug_example" // string | Provisioning profile slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProvisioningProfileAPI.ProvisioningProfileShow(context.Background(), appSlug, provisioningProfileSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProvisioningProfileAPI.ProvisioningProfileShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ProvisioningProfileShow`: V0ProvisionProfileResponseModel + fmt.Fprintf(os.Stdout, "Response from `ProvisioningProfileAPI.ProvisioningProfileShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**provisioningProfileSlug** | **string** | Provisioning profile slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiProvisioningProfileShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0ProvisionProfileResponseModel**](V0ProvisionProfileResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## ProvisioningProfileUpdate + +> V0ProvisionProfileResponseModel ProvisioningProfileUpdate(ctx, appSlug, provisioningProfileSlug).ProvisioningProfile(provisioningProfile).Execute() + +Update a provisioning profile + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + provisioningProfileSlug := "provisioningProfileSlug_example" // string | Provisioning profile slug + provisioningProfile := *openapiclient.NewV0ProvProfileDocumentUpdateParams() // V0ProvProfileDocumentUpdateParams | Provisioning profile parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ProvisioningProfileAPI.ProvisioningProfileUpdate(context.Background(), appSlug, provisioningProfileSlug).ProvisioningProfile(provisioningProfile).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ProvisioningProfileAPI.ProvisioningProfileUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ProvisioningProfileUpdate`: V0ProvisionProfileResponseModel + fmt.Fprintf(os.Stdout, "Response from `ProvisioningProfileAPI.ProvisioningProfileUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**provisioningProfileSlug** | **string** | Provisioning profile slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiProvisioningProfileUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **provisioningProfile** | [**V0ProvProfileDocumentUpdateParams**](V0ProvProfileDocumentUpdateParams.md) | Provisioning profile parameters | + +### Return type + +[**V0ProvisionProfileResponseModel**](V0ProvisionProfileResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/ReleasesAPI.md b/go2/docs/ReleasesAPI.md new file mode 100644 index 0000000..acf61a4 --- /dev/null +++ b/go2/docs/ReleasesAPI.md @@ -0,0 +1,154 @@ +# \ReleasesAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**ReleaseCreateAppStore**](ReleasesAPI.md#ReleaseCreateAppStore) | **Post** /apps/{app-slug}/releases/app-store | Create a new Apple App Store release for the app. +[**ReleaseCreateGooglePlay**](ReleasesAPI.md#ReleaseCreateGooglePlay) | **Post** /apps/{app-slug}/releases/google-play | Create a new Google Play Store release for the app. + + + +## ReleaseCreateAppStore + +> V0ReleaseCreateAppStoreRespModel ReleaseCreateAppStore(ctx, appSlug).App(app).Execute() + +Create a new Apple App Store release for the app. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + app := *openapiclient.NewV0ReleaseCreateAppStoreParams("BundleId_example", "Name_example") // V0ReleaseCreateAppStoreParams | App Store release parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReleasesAPI.ReleaseCreateAppStore(context.Background(), appSlug).App(app).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReleasesAPI.ReleaseCreateAppStore``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReleaseCreateAppStore`: V0ReleaseCreateAppStoreRespModel + fmt.Fprintf(os.Stdout, "Response from `ReleasesAPI.ReleaseCreateAppStore`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReleaseCreateAppStoreRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **app** | [**V0ReleaseCreateAppStoreParams**](V0ReleaseCreateAppStoreParams.md) | App Store release parameters | + +### Return type + +[**V0ReleaseCreateAppStoreRespModel**](V0ReleaseCreateAppStoreRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## ReleaseCreateGooglePlay + +> V0ReleaseCreateGooglePlayRespModel ReleaseCreateGooglePlay(ctx, appSlug).App(app).Execute() + +Create a new Google Play Store release for the app. + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + app := *openapiclient.NewV0ReleaseCreateGooglePlayParams("Name_example", "PackageName_example") // V0ReleaseCreateGooglePlayParams | Google Play release parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ReleasesAPI.ReleaseCreateGooglePlay(context.Background(), appSlug).App(app).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ReleasesAPI.ReleaseCreateGooglePlay``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ReleaseCreateGooglePlay`: V0ReleaseCreateGooglePlayRespModel + fmt.Fprintf(os.Stdout, "Response from `ReleasesAPI.ReleaseCreateGooglePlay`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiReleaseCreateGooglePlayRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **app** | [**V0ReleaseCreateGooglePlayParams**](V0ReleaseCreateGooglePlayParams.md) | Google Play release parameters | + +### Return type + +[**V0ReleaseCreateGooglePlayRespModel**](V0ReleaseCreateGooglePlayRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/SecretsAPI.md b/go2/docs/SecretsAPI.md new file mode 100644 index 0000000..e9c920d --- /dev/null +++ b/go2/docs/SecretsAPI.md @@ -0,0 +1,299 @@ +# \SecretsAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**SecretDelete**](SecretsAPI.md#SecretDelete) | **Delete** /apps/{app-slug}/secrets/{secret-name} | Delete an application secret +[**SecretList**](SecretsAPI.md#SecretList) | **Get** /apps/{app-slug}/secrets | List the application secrets (with no values) +[**SecretUpsert**](SecretsAPI.md#SecretUpsert) | **Put** /apps/{app-slug}/secrets/{secret-name} | Upsert an application secret +[**SecretValueGet**](SecretsAPI.md#SecretValueGet) | **Get** /apps/{app-slug}/secrets/{secret-name}/value | Get the value of an (unprotected) application secrets + + + +## SecretDelete + +> SecretDelete(ctx, appSlug, secretName).Execute() + +Delete an application secret + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + secretName := "secretName_example" // string | Secret name + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SecretsAPI.SecretDelete(context.Background(), appSlug, secretName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretDelete``: %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. +**appSlug** | **string** | App slug | +**secretName** | **string** | Secret name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecretDeleteRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## SecretList + +> V0AppSecretListResponse SecretList(ctx, appSlug).Execute() + +List the application secrets (with no values) + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecretsAPI.SecretList(context.Background(), appSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecretList`: V0AppSecretListResponse + fmt.Fprintf(os.Stdout, "Response from `SecretsAPI.SecretList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecretListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0AppSecretListResponse**](V0AppSecretListResponse.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## SecretUpsert + +> SecretUpsert(ctx, appSlug, secretName).App(app).Execute() + +Upsert an application secret + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + secretName := "secretName_example" // string | Secret name + app := *openapiclient.NewV0AppSecretUpsertParams() // V0AppSecretUpsertParams | Secret parameters + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.SecretsAPI.SecretUpsert(context.Background(), appSlug, secretName).App(app).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretUpsert``: %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. +**appSlug** | **string** | App slug | +**secretName** | **string** | Secret name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecretUpsertRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **app** | [**V0AppSecretUpsertParams**](V0AppSecretUpsertParams.md) | Secret parameters | + +### Return type + + (empty response body) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## SecretValueGet + +> V0AppSecretGetValueResponse SecretValueGet(ctx, appSlug, secretName).Execute() + +Get the value of an (unprotected) application secrets + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + secretName := "secretName_example" // string | Secret name + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SecretsAPI.SecretValueGet(context.Background(), appSlug, secretName).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SecretsAPI.SecretValueGet``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `SecretValueGet`: V0AppSecretGetValueResponse + fmt.Fprintf(os.Stdout, "Response from `SecretsAPI.SecretValueGet`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**secretName** | **string** | Secret name | + +### Other Parameters + +Other parameters are passed through a pointer to a apiSecretValueGetRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**V0AppSecretGetValueResponse**](V0AppSecretGetValueResponse.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/ServiceProxyErrorRespModel.md b/go2/docs/ServiceProxyErrorRespModel.md new file mode 100644 index 0000000..871bda9 --- /dev/null +++ b/go2/docs/ServiceProxyErrorRespModel.md @@ -0,0 +1,56 @@ +# ServiceProxyErrorRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ErrorMsg** | Pointer to **string** | | [optional] + +## Methods + +### NewServiceProxyErrorRespModel + +`func NewServiceProxyErrorRespModel() *ServiceProxyErrorRespModel` + +NewServiceProxyErrorRespModel instantiates a new ServiceProxyErrorRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceProxyErrorRespModelWithDefaults + +`func NewServiceProxyErrorRespModelWithDefaults() *ServiceProxyErrorRespModel` + +NewServiceProxyErrorRespModelWithDefaults instantiates a new ServiceProxyErrorRespModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetErrorMsg + +`func (o *ServiceProxyErrorRespModel) GetErrorMsg() string` + +GetErrorMsg returns the ErrorMsg field if non-nil, zero value otherwise. + +### GetErrorMsgOk + +`func (o *ServiceProxyErrorRespModel) GetErrorMsgOk() (*string, bool)` + +GetErrorMsgOk returns a tuple with the ErrorMsg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrorMsg + +`func (o *ServiceProxyErrorRespModel) SetErrorMsg(v string)` + +SetErrorMsg sets ErrorMsg field to given value. + +### HasErrorMsg + +`func (o *ServiceProxyErrorRespModel) HasErrorMsg() bool` + +HasErrorMsg returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/ServiceStandardErrorRespModel.md b/go2/docs/ServiceStandardErrorRespModel.md new file mode 100644 index 0000000..a58abf9 --- /dev/null +++ b/go2/docs/ServiceStandardErrorRespModel.md @@ -0,0 +1,56 @@ +# ServiceStandardErrorRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | Pointer to **string** | | [optional] + +## Methods + +### NewServiceStandardErrorRespModel + +`func NewServiceStandardErrorRespModel() *ServiceStandardErrorRespModel` + +NewServiceStandardErrorRespModel instantiates a new ServiceStandardErrorRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewServiceStandardErrorRespModelWithDefaults + +`func NewServiceStandardErrorRespModelWithDefaults() *ServiceStandardErrorRespModel` + +NewServiceStandardErrorRespModelWithDefaults instantiates a new ServiceStandardErrorRespModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMessage + +`func (o *ServiceStandardErrorRespModel) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *ServiceStandardErrorRespModel) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *ServiceStandardErrorRespModel) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *ServiceStandardErrorRespModel) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/TestDevicesAPI.md b/go2/docs/TestDevicesAPI.md new file mode 100644 index 0000000..d9ebc82 --- /dev/null +++ b/go2/docs/TestDevicesAPI.md @@ -0,0 +1,79 @@ +# \TestDevicesAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**TestDeviceList**](TestDevicesAPI.md#TestDeviceList) | **Get** /apps/{app-slug}/test-devices | List the test devices for an app + + + +## TestDeviceList + +> V0TestDeviceListResponseModel TestDeviceList(ctx, appSlug).Execute() + +List the test devices for an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.TestDevicesAPI.TestDeviceList(context.Background(), appSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `TestDevicesAPI.TestDeviceList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `TestDeviceList`: V0TestDeviceListResponseModel + fmt.Fprintf(os.Stdout, "Response from `TestDevicesAPI.TestDeviceList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiTestDeviceListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0TestDeviceListResponseModel**](V0TestDeviceListResponseModel.md) + +### Authorization + +[AddonAuthToken](../README.md#AddonAuthToken), [PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/UserAPI.md b/go2/docs/UserAPI.md new file mode 100644 index 0000000..b729560 --- /dev/null +++ b/go2/docs/UserAPI.md @@ -0,0 +1,276 @@ +# \UserAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**UserMachineTypeUpdate**](UserAPI.md#UserMachineTypeUpdate) | **Patch** /user/{user-slug}/apps/machine_types | Migrate machine types +[**UserPlan**](UserAPI.md#UserPlan) | **Get** /me/plan | The subscription plan of the user +[**UserProfile**](UserAPI.md#UserProfile) | **Get** /me | Get your profile info +[**UserShow**](UserAPI.md#UserShow) | **Get** /users/{user-slug} | Get a specific user + + + +## UserMachineTypeUpdate + +> V0OrganizationUpdateMachineTypeResponse UserMachineTypeUpdate(ctx, userSlug).Types(types).Execute() + +Migrate machine types + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + userSlug := "userSlug_example" // string | User slug + types := *openapiclient.NewV0OrganizationUpdateMachineTypeParams() // V0OrganizationUpdateMachineTypeParams | Machine type to migrate from and to + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserAPI.UserMachineTypeUpdate(context.Background(), userSlug).Types(types).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.UserMachineTypeUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserMachineTypeUpdate`: V0OrganizationUpdateMachineTypeResponse + fmt.Fprintf(os.Stdout, "Response from `UserAPI.UserMachineTypeUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userSlug** | **string** | User slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserMachineTypeUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **types** | [**V0OrganizationUpdateMachineTypeParams**](V0OrganizationUpdateMachineTypeParams.md) | Machine type to migrate from and to | + +### Return type + +[**V0OrganizationUpdateMachineTypeResponse**](V0OrganizationUpdateMachineTypeResponse.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## UserPlan + +> V0UserPlanRespModel UserPlan(ctx).Execute() + +The subscription plan of the user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserAPI.UserPlan(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.UserPlan``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserPlan`: V0UserPlanRespModel + fmt.Fprintf(os.Stdout, "Response from `UserAPI.UserPlan`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserPlanRequest struct via the builder pattern + + +### Return type + +[**V0UserPlanRespModel**](V0UserPlanRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## UserProfile + +> V0UserProfileRespModel UserProfile(ctx).Execute() + +Get your profile info + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserAPI.UserProfile(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.UserProfile``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserProfile`: V0UserProfileRespModel + fmt.Fprintf(os.Stdout, "Response from `UserAPI.UserProfile`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserProfileRequest struct via the builder pattern + + +### Return type + +[**V0UserProfileRespModel**](V0UserProfileRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## UserShow + +> V0UserProfileRespModel UserShow(ctx, userSlug).Execute() + +Get a specific user + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + userSlug := "userSlug_example" // string | User slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.UserAPI.UserShow(context.Background(), userSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `UserAPI.UserShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `UserShow`: V0UserProfileRespModel + fmt.Fprintf(os.Stdout, "Response from `UserAPI.UserShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**userSlug** | **string** | User slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiUserShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**V0UserProfileRespModel**](V0UserProfileRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/V0ActivityEventListResponseModel.md b/go2/docs/V0ActivityEventListResponseModel.md new file mode 100644 index 0000000..8a96c28 --- /dev/null +++ b/go2/docs/V0ActivityEventListResponseModel.md @@ -0,0 +1,82 @@ +# V0ActivityEventListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0ActivityEventResponseItemModel**](V0ActivityEventResponseItemModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0ActivityEventListResponseModel + +`func NewV0ActivityEventListResponseModel() *V0ActivityEventListResponseModel` + +NewV0ActivityEventListResponseModel instantiates a new V0ActivityEventListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ActivityEventListResponseModelWithDefaults + +`func NewV0ActivityEventListResponseModelWithDefaults() *V0ActivityEventListResponseModel` + +NewV0ActivityEventListResponseModelWithDefaults instantiates a new V0ActivityEventListResponseModel object +This 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 *V0ActivityEventListResponseModel) GetData() []V0ActivityEventResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0ActivityEventListResponseModel) GetDataOk() (*[]V0ActivityEventResponseItemModel, 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 *V0ActivityEventListResponseModel) SetData(v []V0ActivityEventResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0ActivityEventListResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0ActivityEventListResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0ActivityEventListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0ActivityEventListResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0ActivityEventListResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ActivityEventResponseItemModel.md b/go2/docs/V0ActivityEventResponseItemModel.md new file mode 100644 index 0000000..2a51677 --- /dev/null +++ b/go2/docs/V0ActivityEventResponseItemModel.md @@ -0,0 +1,264 @@ +# V0ActivityEventResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **string** | | [optional] +**Description** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**EventIcon** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**EventStype** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**RepositoryAvatarIconUrl** | Pointer to **string** | | [optional] +**RepositoryTitle** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**TargetPathString** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**Title** | Pointer to [**NullsString**](NullsString.md) | | [optional] + +## Methods + +### NewV0ActivityEventResponseItemModel + +`func NewV0ActivityEventResponseItemModel() *V0ActivityEventResponseItemModel` + +NewV0ActivityEventResponseItemModel instantiates a new V0ActivityEventResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ActivityEventResponseItemModelWithDefaults + +`func NewV0ActivityEventResponseItemModelWithDefaults() *V0ActivityEventResponseItemModel` + +NewV0ActivityEventResponseItemModelWithDefaults instantiates a new V0ActivityEventResponseItemModel object +This 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 *V0ActivityEventResponseItemModel) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *V0ActivityEventResponseItemModel) GetCreatedAtOk() (*string, 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 *V0ActivityEventResponseItemModel) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *V0ActivityEventResponseItemModel) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDescription + +`func (o *V0ActivityEventResponseItemModel) GetDescription() NullsString` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *V0ActivityEventResponseItemModel) GetDescriptionOk() (*NullsString, 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 *V0ActivityEventResponseItemModel) SetDescription(v NullsString)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *V0ActivityEventResponseItemModel) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetEventIcon + +`func (o *V0ActivityEventResponseItemModel) GetEventIcon() NullsString` + +GetEventIcon returns the EventIcon field if non-nil, zero value otherwise. + +### GetEventIconOk + +`func (o *V0ActivityEventResponseItemModel) GetEventIconOk() (*NullsString, bool)` + +GetEventIconOk returns a tuple with the EventIcon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventIcon + +`func (o *V0ActivityEventResponseItemModel) SetEventIcon(v NullsString)` + +SetEventIcon sets EventIcon field to given value. + +### HasEventIcon + +`func (o *V0ActivityEventResponseItemModel) HasEventIcon() bool` + +HasEventIcon returns a boolean if a field has been set. + +### GetEventStype + +`func (o *V0ActivityEventResponseItemModel) GetEventStype() NullsString` + +GetEventStype returns the EventStype field if non-nil, zero value otherwise. + +### GetEventStypeOk + +`func (o *V0ActivityEventResponseItemModel) GetEventStypeOk() (*NullsString, bool)` + +GetEventStypeOk returns a tuple with the EventStype field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventStype + +`func (o *V0ActivityEventResponseItemModel) SetEventStype(v NullsString)` + +SetEventStype sets EventStype field to given value. + +### HasEventStype + +`func (o *V0ActivityEventResponseItemModel) HasEventStype() bool` + +HasEventStype returns a boolean if a field has been set. + +### GetRepositoryAvatarIconUrl + +`func (o *V0ActivityEventResponseItemModel) GetRepositoryAvatarIconUrl() string` + +GetRepositoryAvatarIconUrl returns the RepositoryAvatarIconUrl field if non-nil, zero value otherwise. + +### GetRepositoryAvatarIconUrlOk + +`func (o *V0ActivityEventResponseItemModel) GetRepositoryAvatarIconUrlOk() (*string, bool)` + +GetRepositoryAvatarIconUrlOk returns a tuple with the RepositoryAvatarIconUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryAvatarIconUrl + +`func (o *V0ActivityEventResponseItemModel) SetRepositoryAvatarIconUrl(v string)` + +SetRepositoryAvatarIconUrl sets RepositoryAvatarIconUrl field to given value. + +### HasRepositoryAvatarIconUrl + +`func (o *V0ActivityEventResponseItemModel) HasRepositoryAvatarIconUrl() bool` + +HasRepositoryAvatarIconUrl returns a boolean if a field has been set. + +### GetRepositoryTitle + +`func (o *V0ActivityEventResponseItemModel) GetRepositoryTitle() string` + +GetRepositoryTitle returns the RepositoryTitle field if non-nil, zero value otherwise. + +### GetRepositoryTitleOk + +`func (o *V0ActivityEventResponseItemModel) GetRepositoryTitleOk() (*string, bool)` + +GetRepositoryTitleOk returns a tuple with the RepositoryTitle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryTitle + +`func (o *V0ActivityEventResponseItemModel) SetRepositoryTitle(v string)` + +SetRepositoryTitle sets RepositoryTitle field to given value. + +### HasRepositoryTitle + +`func (o *V0ActivityEventResponseItemModel) HasRepositoryTitle() bool` + +HasRepositoryTitle returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0ActivityEventResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0ActivityEventResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0ActivityEventResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0ActivityEventResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetTargetPathString + +`func (o *V0ActivityEventResponseItemModel) GetTargetPathString() NullsString` + +GetTargetPathString returns the TargetPathString field if non-nil, zero value otherwise. + +### GetTargetPathStringOk + +`func (o *V0ActivityEventResponseItemModel) GetTargetPathStringOk() (*NullsString, bool)` + +GetTargetPathStringOk returns a tuple with the TargetPathString field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTargetPathString + +`func (o *V0ActivityEventResponseItemModel) SetTargetPathString(v NullsString)` + +SetTargetPathString sets TargetPathString field to given value. + +### HasTargetPathString + +`func (o *V0ActivityEventResponseItemModel) HasTargetPathString() bool` + +HasTargetPathString returns a boolean if a field has been set. + +### GetTitle + +`func (o *V0ActivityEventResponseItemModel) GetTitle() NullsString` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *V0ActivityEventResponseItemModel) GetTitleOk() (*NullsString, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *V0ActivityEventResponseItemModel) SetTitle(v NullsString)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *V0ActivityEventResponseItemModel) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AddOnAppResponseItemModel.md b/go2/docs/V0AddOnAppResponseItemModel.md new file mode 100644 index 0000000..fbaf1bf --- /dev/null +++ b/go2/docs/V0AddOnAppResponseItemModel.md @@ -0,0 +1,160 @@ +# V0AddOnAppResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Icon** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**Plan** | Pointer to [**AddonsPlan**](AddonsPlan.md) | | [optional] +**PlanStartedAt** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Title** | Pointer to **string** | | [optional] + +## Methods + +### NewV0AddOnAppResponseItemModel + +`func NewV0AddOnAppResponseItemModel() *V0AddOnAppResponseItemModel` + +NewV0AddOnAppResponseItemModel instantiates a new V0AddOnAppResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AddOnAppResponseItemModelWithDefaults + +`func NewV0AddOnAppResponseItemModelWithDefaults() *V0AddOnAppResponseItemModel` + +NewV0AddOnAppResponseItemModelWithDefaults instantiates a new V0AddOnAppResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIcon + +`func (o *V0AddOnAppResponseItemModel) GetIcon() NullsString` + +GetIcon returns the Icon field if non-nil, zero value otherwise. + +### GetIconOk + +`func (o *V0AddOnAppResponseItemModel) GetIconOk() (*NullsString, bool)` + +GetIconOk returns a tuple with the Icon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIcon + +`func (o *V0AddOnAppResponseItemModel) SetIcon(v NullsString)` + +SetIcon sets Icon field to given value. + +### HasIcon + +`func (o *V0AddOnAppResponseItemModel) HasIcon() bool` + +HasIcon returns a boolean if a field has been set. + +### GetPlan + +`func (o *V0AddOnAppResponseItemModel) GetPlan() AddonsPlan` + +GetPlan returns the Plan field if non-nil, zero value otherwise. + +### GetPlanOk + +`func (o *V0AddOnAppResponseItemModel) GetPlanOk() (*AddonsPlan, 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 *V0AddOnAppResponseItemModel) SetPlan(v AddonsPlan)` + +SetPlan sets Plan field to given value. + +### HasPlan + +`func (o *V0AddOnAppResponseItemModel) HasPlan() bool` + +HasPlan returns a boolean if a field has been set. + +### GetPlanStartedAt + +`func (o *V0AddOnAppResponseItemModel) GetPlanStartedAt() string` + +GetPlanStartedAt returns the PlanStartedAt field if non-nil, zero value otherwise. + +### GetPlanStartedAtOk + +`func (o *V0AddOnAppResponseItemModel) GetPlanStartedAtOk() (*string, bool)` + +GetPlanStartedAtOk returns a tuple with the PlanStartedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlanStartedAt + +`func (o *V0AddOnAppResponseItemModel) SetPlanStartedAt(v string)` + +SetPlanStartedAt sets PlanStartedAt field to given value. + +### HasPlanStartedAt + +`func (o *V0AddOnAppResponseItemModel) HasPlanStartedAt() bool` + +HasPlanStartedAt returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0AddOnAppResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0AddOnAppResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0AddOnAppResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0AddOnAppResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetTitle + +`func (o *V0AddOnAppResponseItemModel) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *V0AddOnAppResponseItemModel) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *V0AddOnAppResponseItemModel) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *V0AddOnAppResponseItemModel) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AddonsListResponseModel.md b/go2/docs/V0AddonsListResponseModel.md new file mode 100644 index 0000000..e9f5625 --- /dev/null +++ b/go2/docs/V0AddonsListResponseModel.md @@ -0,0 +1,56 @@ +# V0AddonsListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]AddonsAddon**](AddonsAddon.md) | | [optional] + +## Methods + +### NewV0AddonsListResponseModel + +`func NewV0AddonsListResponseModel() *V0AddonsListResponseModel` + +NewV0AddonsListResponseModel instantiates a new V0AddonsListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AddonsListResponseModelWithDefaults + +`func NewV0AddonsListResponseModelWithDefaults() *V0AddonsListResponseModel` + +NewV0AddonsListResponseModelWithDefaults instantiates a new V0AddonsListResponseModel object +This 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 *V0AddonsListResponseModel) GetData() []AddonsAddon` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0AddonsListResponseModel) GetDataOk() (*[]AddonsAddon, 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 *V0AddonsListResponseModel) SetData(v []AddonsAddon)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0AddonsListResponseModel) 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/go2/docs/V0AddonsShowResponseModel.md b/go2/docs/V0AddonsShowResponseModel.md new file mode 100644 index 0000000..affd31d --- /dev/null +++ b/go2/docs/V0AddonsShowResponseModel.md @@ -0,0 +1,56 @@ +# V0AddonsShowResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**AddonsAddon**](AddonsAddon.md) | | [optional] + +## Methods + +### NewV0AddonsShowResponseModel + +`func NewV0AddonsShowResponseModel() *V0AddonsShowResponseModel` + +NewV0AddonsShowResponseModel instantiates a new V0AddonsShowResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AddonsShowResponseModelWithDefaults + +`func NewV0AddonsShowResponseModelWithDefaults() *V0AddonsShowResponseModel` + +NewV0AddonsShowResponseModelWithDefaults instantiates a new V0AddonsShowResponseModel object +This 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 *V0AddonsShowResponseModel) GetData() AddonsAddon` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0AddonsShowResponseModel) GetDataOk() (*AddonsAddon, 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 *V0AddonsShowResponseModel) SetData(v AddonsAddon)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0AddonsShowResponseModel) 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/go2/docs/V0AndroidKeystoreFileUploadParams.md b/go2/docs/V0AndroidKeystoreFileUploadParams.md new file mode 100644 index 0000000..67e0aea --- /dev/null +++ b/go2/docs/V0AndroidKeystoreFileUploadParams.md @@ -0,0 +1,161 @@ +# V0AndroidKeystoreFileUploadParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Alias** | **string** | | +**KeystoreFileName** | Pointer to **string** | | [optional] +**Password** | **string** | | +**PrivateKeyPassword** | **string** | | +**UploadFileName** | **string** | | +**UploadFileSize** | **int32** | | + +## Methods + +### NewV0AndroidKeystoreFileUploadParams + +`func NewV0AndroidKeystoreFileUploadParams(alias string, password string, privateKeyPassword string, uploadFileName string, uploadFileSize int32, ) *V0AndroidKeystoreFileUploadParams` + +NewV0AndroidKeystoreFileUploadParams instantiates a new V0AndroidKeystoreFileUploadParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AndroidKeystoreFileUploadParamsWithDefaults + +`func NewV0AndroidKeystoreFileUploadParamsWithDefaults() *V0AndroidKeystoreFileUploadParams` + +NewV0AndroidKeystoreFileUploadParamsWithDefaults instantiates a new V0AndroidKeystoreFileUploadParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAlias + +`func (o *V0AndroidKeystoreFileUploadParams) GetAlias() string` + +GetAlias returns the Alias field if non-nil, zero value otherwise. + +### GetAliasOk + +`func (o *V0AndroidKeystoreFileUploadParams) GetAliasOk() (*string, bool)` + +GetAliasOk returns a tuple with the Alias field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAlias + +`func (o *V0AndroidKeystoreFileUploadParams) SetAlias(v string)` + +SetAlias sets Alias field to given value. + + +### GetKeystoreFileName + +`func (o *V0AndroidKeystoreFileUploadParams) GetKeystoreFileName() string` + +GetKeystoreFileName returns the KeystoreFileName field if non-nil, zero value otherwise. + +### GetKeystoreFileNameOk + +`func (o *V0AndroidKeystoreFileUploadParams) GetKeystoreFileNameOk() (*string, bool)` + +GetKeystoreFileNameOk returns a tuple with the KeystoreFileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeystoreFileName + +`func (o *V0AndroidKeystoreFileUploadParams) SetKeystoreFileName(v string)` + +SetKeystoreFileName sets KeystoreFileName field to given value. + +### HasKeystoreFileName + +`func (o *V0AndroidKeystoreFileUploadParams) HasKeystoreFileName() bool` + +HasKeystoreFileName returns a boolean if a field has been set. + +### GetPassword + +`func (o *V0AndroidKeystoreFileUploadParams) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *V0AndroidKeystoreFileUploadParams) 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 *V0AndroidKeystoreFileUploadParams) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetPrivateKeyPassword + +`func (o *V0AndroidKeystoreFileUploadParams) GetPrivateKeyPassword() string` + +GetPrivateKeyPassword returns the PrivateKeyPassword field if non-nil, zero value otherwise. + +### GetPrivateKeyPasswordOk + +`func (o *V0AndroidKeystoreFileUploadParams) GetPrivateKeyPasswordOk() (*string, bool)` + +GetPrivateKeyPasswordOk returns a tuple with the PrivateKeyPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrivateKeyPassword + +`func (o *V0AndroidKeystoreFileUploadParams) SetPrivateKeyPassword(v string)` + +SetPrivateKeyPassword sets PrivateKeyPassword field to given value. + + +### GetUploadFileName + +`func (o *V0AndroidKeystoreFileUploadParams) GetUploadFileName() string` + +GetUploadFileName returns the UploadFileName field if non-nil, zero value otherwise. + +### GetUploadFileNameOk + +`func (o *V0AndroidKeystoreFileUploadParams) GetUploadFileNameOk() (*string, bool)` + +GetUploadFileNameOk returns a tuple with the UploadFileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileName + +`func (o *V0AndroidKeystoreFileUploadParams) SetUploadFileName(v string)` + +SetUploadFileName sets UploadFileName field to given value. + + +### GetUploadFileSize + +`func (o *V0AndroidKeystoreFileUploadParams) GetUploadFileSize() int32` + +GetUploadFileSize returns the UploadFileSize field if non-nil, zero value otherwise. + +### GetUploadFileSizeOk + +`func (o *V0AndroidKeystoreFileUploadParams) GetUploadFileSizeOk() (*int32, bool)` + +GetUploadFileSizeOk returns a tuple with the UploadFileSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileSize + +`func (o *V0AndroidKeystoreFileUploadParams) SetUploadFileSize(v int32)` + +SetUploadFileSize sets UploadFileSize 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/go2/docs/V0AppAddOnResponseItemModel.md b/go2/docs/V0AppAddOnResponseItemModel.md new file mode 100644 index 0000000..81f992b --- /dev/null +++ b/go2/docs/V0AppAddOnResponseItemModel.md @@ -0,0 +1,394 @@ +# V0AppAddOnResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Description** | Pointer to **string** | | [optional] +**DocumentationUrl** | Pointer to **string** | | [optional] +**HasUi** | Pointer to **bool** | | [optional] +**Icon** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**IsBeta** | Pointer to **bool** | | [optional] +**IsEnabled** | Pointer to **bool** | | [optional] +**LoginUrl** | Pointer to **string** | | [optional] +**Plan** | Pointer to [**AddonsPlan**](AddonsPlan.md) | | [optional] +**Scopes** | Pointer to **[]string** | | [optional] +**SetupGuide** | Pointer to [**AddonsSetupGuide**](AddonsSetupGuide.md) | | [optional] +**Summary** | Pointer to **string** | | [optional] +**TermsUrl** | Pointer to **string** | | [optional] +**Title** | Pointer to **string** | | [optional] + +## Methods + +### NewV0AppAddOnResponseItemModel + +`func NewV0AppAddOnResponseItemModel() *V0AppAddOnResponseItemModel` + +NewV0AppAddOnResponseItemModel instantiates a new V0AppAddOnResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppAddOnResponseItemModelWithDefaults + +`func NewV0AppAddOnResponseItemModelWithDefaults() *V0AppAddOnResponseItemModel` + +NewV0AppAddOnResponseItemModelWithDefaults instantiates a new V0AppAddOnResponseItemModel object +This 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 *V0AppAddOnResponseItemModel) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *V0AppAddOnResponseItemModel) 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 *V0AppAddOnResponseItemModel) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *V0AppAddOnResponseItemModel) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDocumentationUrl + +`func (o *V0AppAddOnResponseItemModel) GetDocumentationUrl() string` + +GetDocumentationUrl returns the DocumentationUrl field if non-nil, zero value otherwise. + +### GetDocumentationUrlOk + +`func (o *V0AppAddOnResponseItemModel) 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 *V0AppAddOnResponseItemModel) SetDocumentationUrl(v string)` + +SetDocumentationUrl sets DocumentationUrl field to given value. + +### HasDocumentationUrl + +`func (o *V0AppAddOnResponseItemModel) HasDocumentationUrl() bool` + +HasDocumentationUrl returns a boolean if a field has been set. + +### GetHasUi + +`func (o *V0AppAddOnResponseItemModel) GetHasUi() bool` + +GetHasUi returns the HasUi field if non-nil, zero value otherwise. + +### GetHasUiOk + +`func (o *V0AppAddOnResponseItemModel) GetHasUiOk() (*bool, bool)` + +GetHasUiOk returns a tuple with the HasUi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasUi + +`func (o *V0AppAddOnResponseItemModel) SetHasUi(v bool)` + +SetHasUi sets HasUi field to given value. + +### HasHasUi + +`func (o *V0AppAddOnResponseItemModel) HasHasUi() bool` + +HasHasUi returns a boolean if a field has been set. + +### GetIcon + +`func (o *V0AppAddOnResponseItemModel) GetIcon() string` + +GetIcon returns the Icon field if non-nil, zero value otherwise. + +### GetIconOk + +`func (o *V0AppAddOnResponseItemModel) GetIconOk() (*string, bool)` + +GetIconOk returns a tuple with the Icon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIcon + +`func (o *V0AppAddOnResponseItemModel) SetIcon(v string)` + +SetIcon sets Icon field to given value. + +### HasIcon + +`func (o *V0AppAddOnResponseItemModel) HasIcon() bool` + +HasIcon returns a boolean if a field has been set. + +### GetId + +`func (o *V0AppAddOnResponseItemModel) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *V0AppAddOnResponseItemModel) 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 *V0AppAddOnResponseItemModel) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *V0AppAddOnResponseItemModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIsBeta + +`func (o *V0AppAddOnResponseItemModel) GetIsBeta() bool` + +GetIsBeta returns the IsBeta field if non-nil, zero value otherwise. + +### GetIsBetaOk + +`func (o *V0AppAddOnResponseItemModel) GetIsBetaOk() (*bool, bool)` + +GetIsBetaOk returns a tuple with the IsBeta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsBeta + +`func (o *V0AppAddOnResponseItemModel) SetIsBeta(v bool)` + +SetIsBeta sets IsBeta field to given value. + +### HasIsBeta + +`func (o *V0AppAddOnResponseItemModel) HasIsBeta() bool` + +HasIsBeta returns a boolean if a field has been set. + +### GetIsEnabled + +`func (o *V0AppAddOnResponseItemModel) GetIsEnabled() bool` + +GetIsEnabled returns the IsEnabled field if non-nil, zero value otherwise. + +### GetIsEnabledOk + +`func (o *V0AppAddOnResponseItemModel) GetIsEnabledOk() (*bool, bool)` + +GetIsEnabledOk returns a tuple with the IsEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsEnabled + +`func (o *V0AppAddOnResponseItemModel) SetIsEnabled(v bool)` + +SetIsEnabled sets IsEnabled field to given value. + +### HasIsEnabled + +`func (o *V0AppAddOnResponseItemModel) HasIsEnabled() bool` + +HasIsEnabled returns a boolean if a field has been set. + +### GetLoginUrl + +`func (o *V0AppAddOnResponseItemModel) GetLoginUrl() string` + +GetLoginUrl returns the LoginUrl field if non-nil, zero value otherwise. + +### GetLoginUrlOk + +`func (o *V0AppAddOnResponseItemModel) GetLoginUrlOk() (*string, bool)` + +GetLoginUrlOk returns a tuple with the LoginUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLoginUrl + +`func (o *V0AppAddOnResponseItemModel) SetLoginUrl(v string)` + +SetLoginUrl sets LoginUrl field to given value. + +### HasLoginUrl + +`func (o *V0AppAddOnResponseItemModel) HasLoginUrl() bool` + +HasLoginUrl returns a boolean if a field has been set. + +### GetPlan + +`func (o *V0AppAddOnResponseItemModel) GetPlan() AddonsPlan` + +GetPlan returns the Plan field if non-nil, zero value otherwise. + +### GetPlanOk + +`func (o *V0AppAddOnResponseItemModel) GetPlanOk() (*AddonsPlan, 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 *V0AppAddOnResponseItemModel) SetPlan(v AddonsPlan)` + +SetPlan sets Plan field to given value. + +### HasPlan + +`func (o *V0AppAddOnResponseItemModel) HasPlan() bool` + +HasPlan returns a boolean if a field has been set. + +### GetScopes + +`func (o *V0AppAddOnResponseItemModel) GetScopes() []string` + +GetScopes returns the Scopes field if non-nil, zero value otherwise. + +### GetScopesOk + +`func (o *V0AppAddOnResponseItemModel) GetScopesOk() (*[]string, bool)` + +GetScopesOk returns a tuple with the Scopes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScopes + +`func (o *V0AppAddOnResponseItemModel) SetScopes(v []string)` + +SetScopes sets Scopes field to given value. + +### HasScopes + +`func (o *V0AppAddOnResponseItemModel) HasScopes() bool` + +HasScopes returns a boolean if a field has been set. + +### GetSetupGuide + +`func (o *V0AppAddOnResponseItemModel) GetSetupGuide() AddonsSetupGuide` + +GetSetupGuide returns the SetupGuide field if non-nil, zero value otherwise. + +### GetSetupGuideOk + +`func (o *V0AppAddOnResponseItemModel) GetSetupGuideOk() (*AddonsSetupGuide, bool)` + +GetSetupGuideOk returns a tuple with the SetupGuide field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSetupGuide + +`func (o *V0AppAddOnResponseItemModel) SetSetupGuide(v AddonsSetupGuide)` + +SetSetupGuide sets SetupGuide field to given value. + +### HasSetupGuide + +`func (o *V0AppAddOnResponseItemModel) HasSetupGuide() bool` + +HasSetupGuide returns a boolean if a field has been set. + +### GetSummary + +`func (o *V0AppAddOnResponseItemModel) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *V0AppAddOnResponseItemModel) GetSummaryOk() (*string, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *V0AppAddOnResponseItemModel) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *V0AppAddOnResponseItemModel) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### GetTermsUrl + +`func (o *V0AppAddOnResponseItemModel) GetTermsUrl() string` + +GetTermsUrl returns the TermsUrl field if non-nil, zero value otherwise. + +### GetTermsUrlOk + +`func (o *V0AppAddOnResponseItemModel) GetTermsUrlOk() (*string, bool)` + +GetTermsUrlOk returns a tuple with the TermsUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTermsUrl + +`func (o *V0AppAddOnResponseItemModel) SetTermsUrl(v string)` + +SetTermsUrl sets TermsUrl field to given value. + +### HasTermsUrl + +`func (o *V0AppAddOnResponseItemModel) HasTermsUrl() bool` + +HasTermsUrl returns a boolean if a field has been set. + +### GetTitle + +`func (o *V0AppAddOnResponseItemModel) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *V0AppAddOnResponseItemModel) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *V0AppAddOnResponseItemModel) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *V0AppAddOnResponseItemModel) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AppAddOnsListResponseModel.md b/go2/docs/V0AppAddOnsListResponseModel.md new file mode 100644 index 0000000..e7c1502 --- /dev/null +++ b/go2/docs/V0AppAddOnsListResponseModel.md @@ -0,0 +1,56 @@ +# V0AppAddOnsListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0AppAddOnResponseItemModel**](V0AppAddOnResponseItemModel.md) | | [optional] + +## Methods + +### NewV0AppAddOnsListResponseModel + +`func NewV0AppAddOnsListResponseModel() *V0AppAddOnsListResponseModel` + +NewV0AppAddOnsListResponseModel instantiates a new V0AppAddOnsListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppAddOnsListResponseModelWithDefaults + +`func NewV0AppAddOnsListResponseModelWithDefaults() *V0AppAddOnsListResponseModel` + +NewV0AppAddOnsListResponseModelWithDefaults instantiates a new V0AppAddOnsListResponseModel object +This 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 *V0AppAddOnsListResponseModel) GetData() []V0AppAddOnResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0AppAddOnsListResponseModel) GetDataOk() (*[]V0AppAddOnResponseItemModel, 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 *V0AppAddOnsListResponseModel) SetData(v []V0AppAddOnResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0AppAddOnsListResponseModel) 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/go2/docs/V0AppConfigRequestParam.md b/go2/docs/V0AppConfigRequestParam.md new file mode 100644 index 0000000..0563d84 --- /dev/null +++ b/go2/docs/V0AppConfigRequestParam.md @@ -0,0 +1,51 @@ +# V0AppConfigRequestParam + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppConfigDatastoreYaml** | **string** | The bitrise.yml of your application, defined in JSON format | + +## Methods + +### NewV0AppConfigRequestParam + +`func NewV0AppConfigRequestParam(appConfigDatastoreYaml string, ) *V0AppConfigRequestParam` + +NewV0AppConfigRequestParam instantiates a new V0AppConfigRequestParam object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppConfigRequestParamWithDefaults + +`func NewV0AppConfigRequestParamWithDefaults() *V0AppConfigRequestParam` + +NewV0AppConfigRequestParamWithDefaults instantiates a new V0AppConfigRequestParam object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAppConfigDatastoreYaml + +`func (o *V0AppConfigRequestParam) GetAppConfigDatastoreYaml() string` + +GetAppConfigDatastoreYaml returns the AppConfigDatastoreYaml field if non-nil, zero value otherwise. + +### GetAppConfigDatastoreYamlOk + +`func (o *V0AppConfigRequestParam) GetAppConfigDatastoreYamlOk() (*string, bool)` + +GetAppConfigDatastoreYamlOk returns a tuple with the AppConfigDatastoreYaml field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppConfigDatastoreYaml + +`func (o *V0AppConfigRequestParam) SetAppConfigDatastoreYaml(v string)` + +SetAppConfigDatastoreYaml sets AppConfigDatastoreYaml 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/go2/docs/V0AppDeleteRespModel.md b/go2/docs/V0AppDeleteRespModel.md new file mode 100644 index 0000000..1bcbdcd --- /dev/null +++ b/go2/docs/V0AppDeleteRespModel.md @@ -0,0 +1,56 @@ +# V0AppDeleteRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | | [optional] + +## Methods + +### NewV0AppDeleteRespModel + +`func NewV0AppDeleteRespModel() *V0AppDeleteRespModel` + +NewV0AppDeleteRespModel instantiates a new V0AppDeleteRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppDeleteRespModelWithDefaults + +`func NewV0AppDeleteRespModelWithDefaults() *V0AppDeleteRespModel` + +NewV0AppDeleteRespModelWithDefaults instantiates a new V0AppDeleteRespModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMsg + +`func (o *V0AppDeleteRespModel) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *V0AppDeleteRespModel) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *V0AppDeleteRespModel) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *V0AppDeleteRespModel) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AppFinishParams.md b/go2/docs/V0AppFinishParams.md new file mode 100644 index 0000000..c2c6b33 --- /dev/null +++ b/go2/docs/V0AppFinishParams.md @@ -0,0 +1,176 @@ +# V0AppFinishParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Config** | Pointer to **string** | Which config to use. Specify a config that matches your project type (e. g. `default-android-config` for `android`, etc.). If not speficied, default value is `other-config`. The available values are `default-android-config`, `default-cordova-config`, `default-fastlane-android-config`, `default-fastlane-ios-config`, `flutter-config-notest-app-android`, `flutter-config-notest-app-both`, `flutter-config-notest-app-ios`, `flutter-config-test-app-android`, `flutter-config-test-app-both`, `flutter-config-test-app-ios`, `default-ionic-config`, `default-ios-config`, `default-macos-config`, `default-react-native-config`, `default-react-native-expo-config`, `other-config`. | [optional] +**Envs** | Pointer to **map[string]string** | Environment variables for the application workflows, e.g. {\"env1\":\"val1\",\"env2\":\"val2\"} | [optional] +**Mode** | Pointer to **string** | config specification mode, has to be specified with `manual` value | [optional] +**OrganizationSlug** | Pointer to **string** | The slug of the organization, who will be the owner of the application, if it's not specified, then the authenticated user will be the owner | [optional] +**ProjectType** | **string** | The type of your project (`android`, `ios`, `cordova`, `other`, `xamarin`, `macos`, `ionic`, `react-native`, `fastlane`, null) | +**StackId** | **string** | The id of the stack the application will be built (these can be found in the [system report](https://github.com/bitrise-io/bitrise.io/tree/master/system_reports) file names) | + +## Methods + +### NewV0AppFinishParams + +`func NewV0AppFinishParams(projectType string, stackId string, ) *V0AppFinishParams` + +NewV0AppFinishParams instantiates a new V0AppFinishParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppFinishParamsWithDefaults + +`func NewV0AppFinishParamsWithDefaults() *V0AppFinishParams` + +NewV0AppFinishParamsWithDefaults instantiates a new V0AppFinishParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetConfig + +`func (o *V0AppFinishParams) GetConfig() string` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *V0AppFinishParams) GetConfigOk() (*string, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *V0AppFinishParams) SetConfig(v string)` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *V0AppFinishParams) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### GetEnvs + +`func (o *V0AppFinishParams) GetEnvs() map[string]string` + +GetEnvs returns the Envs field if non-nil, zero value otherwise. + +### GetEnvsOk + +`func (o *V0AppFinishParams) GetEnvsOk() (*map[string]string, bool)` + +GetEnvsOk returns a tuple with the Envs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvs + +`func (o *V0AppFinishParams) SetEnvs(v map[string]string)` + +SetEnvs sets Envs field to given value. + +### HasEnvs + +`func (o *V0AppFinishParams) HasEnvs() bool` + +HasEnvs returns a boolean if a field has been set. + +### GetMode + +`func (o *V0AppFinishParams) GetMode() string` + +GetMode returns the Mode field if non-nil, zero value otherwise. + +### GetModeOk + +`func (o *V0AppFinishParams) 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 *V0AppFinishParams) SetMode(v string)` + +SetMode sets Mode field to given value. + +### HasMode + +`func (o *V0AppFinishParams) HasMode() bool` + +HasMode returns a boolean if a field has been set. + +### GetOrganizationSlug + +`func (o *V0AppFinishParams) GetOrganizationSlug() string` + +GetOrganizationSlug returns the OrganizationSlug field if non-nil, zero value otherwise. + +### GetOrganizationSlugOk + +`func (o *V0AppFinishParams) GetOrganizationSlugOk() (*string, bool)` + +GetOrganizationSlugOk returns a tuple with the OrganizationSlug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationSlug + +`func (o *V0AppFinishParams) SetOrganizationSlug(v string)` + +SetOrganizationSlug sets OrganizationSlug field to given value. + +### HasOrganizationSlug + +`func (o *V0AppFinishParams) HasOrganizationSlug() bool` + +HasOrganizationSlug returns a boolean if a field has been set. + +### GetProjectType + +`func (o *V0AppFinishParams) GetProjectType() string` + +GetProjectType returns the ProjectType field if non-nil, zero value otherwise. + +### GetProjectTypeOk + +`func (o *V0AppFinishParams) GetProjectTypeOk() (*string, bool)` + +GetProjectTypeOk returns a tuple with the ProjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectType + +`func (o *V0AppFinishParams) SetProjectType(v string)` + +SetProjectType sets ProjectType field to given value. + + +### GetStackId + +`func (o *V0AppFinishParams) GetStackId() string` + +GetStackId returns the StackId field if non-nil, zero value otherwise. + +### GetStackIdOk + +`func (o *V0AppFinishParams) GetStackIdOk() (*string, bool)` + +GetStackIdOk returns a tuple with the StackId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStackId + +`func (o *V0AppFinishParams) SetStackId(v string)` + +SetStackId sets StackId 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/go2/docs/V0AppFinishRespModel.md b/go2/docs/V0AppFinishRespModel.md new file mode 100644 index 0000000..7d33750 --- /dev/null +++ b/go2/docs/V0AppFinishRespModel.md @@ -0,0 +1,134 @@ +# V0AppFinishRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BranchName** | Pointer to **string** | | [optional] +**BuildTriggerToken** | Pointer to **string** | | [optional] +**IsWebhookAutoRegSupported** | Pointer to **bool** | | [optional] +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewV0AppFinishRespModel + +`func NewV0AppFinishRespModel() *V0AppFinishRespModel` + +NewV0AppFinishRespModel instantiates a new V0AppFinishRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppFinishRespModelWithDefaults + +`func NewV0AppFinishRespModelWithDefaults() *V0AppFinishRespModel` + +NewV0AppFinishRespModelWithDefaults instantiates a new V0AppFinishRespModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBranchName + +`func (o *V0AppFinishRespModel) GetBranchName() string` + +GetBranchName returns the BranchName field if non-nil, zero value otherwise. + +### GetBranchNameOk + +`func (o *V0AppFinishRespModel) GetBranchNameOk() (*string, bool)` + +GetBranchNameOk returns a tuple with the BranchName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranchName + +`func (o *V0AppFinishRespModel) SetBranchName(v string)` + +SetBranchName sets BranchName field to given value. + +### HasBranchName + +`func (o *V0AppFinishRespModel) HasBranchName() bool` + +HasBranchName returns a boolean if a field has been set. + +### GetBuildTriggerToken + +`func (o *V0AppFinishRespModel) GetBuildTriggerToken() string` + +GetBuildTriggerToken returns the BuildTriggerToken field if non-nil, zero value otherwise. + +### GetBuildTriggerTokenOk + +`func (o *V0AppFinishRespModel) GetBuildTriggerTokenOk() (*string, bool)` + +GetBuildTriggerTokenOk returns a tuple with the BuildTriggerToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildTriggerToken + +`func (o *V0AppFinishRespModel) SetBuildTriggerToken(v string)` + +SetBuildTriggerToken sets BuildTriggerToken field to given value. + +### HasBuildTriggerToken + +`func (o *V0AppFinishRespModel) HasBuildTriggerToken() bool` + +HasBuildTriggerToken returns a boolean if a field has been set. + +### GetIsWebhookAutoRegSupported + +`func (o *V0AppFinishRespModel) GetIsWebhookAutoRegSupported() bool` + +GetIsWebhookAutoRegSupported returns the IsWebhookAutoRegSupported field if non-nil, zero value otherwise. + +### GetIsWebhookAutoRegSupportedOk + +`func (o *V0AppFinishRespModel) GetIsWebhookAutoRegSupportedOk() (*bool, bool)` + +GetIsWebhookAutoRegSupportedOk returns a tuple with the IsWebhookAutoRegSupported field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsWebhookAutoRegSupported + +`func (o *V0AppFinishRespModel) SetIsWebhookAutoRegSupported(v bool)` + +SetIsWebhookAutoRegSupported sets IsWebhookAutoRegSupported field to given value. + +### HasIsWebhookAutoRegSupported + +`func (o *V0AppFinishRespModel) HasIsWebhookAutoRegSupported() bool` + +HasIsWebhookAutoRegSupported returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0AppFinishRespModel) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0AppFinishRespModel) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0AppFinishRespModel) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0AppFinishRespModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AppListResponseModel.md b/go2/docs/V0AppListResponseModel.md new file mode 100644 index 0000000..b259ce8 --- /dev/null +++ b/go2/docs/V0AppListResponseModel.md @@ -0,0 +1,82 @@ +# V0AppListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0AppResponseItemModel**](V0AppResponseItemModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0AppListResponseModel + +`func NewV0AppListResponseModel() *V0AppListResponseModel` + +NewV0AppListResponseModel instantiates a new V0AppListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppListResponseModelWithDefaults + +`func NewV0AppListResponseModelWithDefaults() *V0AppListResponseModel` + +NewV0AppListResponseModelWithDefaults instantiates a new V0AppListResponseModel object +This 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 *V0AppListResponseModel) GetData() []V0AppResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0AppListResponseModel) GetDataOk() (*[]V0AppResponseItemModel, 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 *V0AppListResponseModel) SetData(v []V0AppResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0AppListResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0AppListResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0AppListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0AppListResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0AppListResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AppNotificationSettingsParams.md b/go2/docs/V0AppNotificationSettingsParams.md new file mode 100644 index 0000000..fbf462c --- /dev/null +++ b/go2/docs/V0AppNotificationSettingsParams.md @@ -0,0 +1,82 @@ +# V0AppNotificationSettingsParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OnFailure** | Pointer to **string** | When should Bitrise send notifications for the users on build failure? Possible values: always, never, change | [optional] +**OnSuccess** | Pointer to **string** | When should Bitrise send notifications for the users on build success? Possible values: always, never, change | [optional] + +## Methods + +### NewV0AppNotificationSettingsParams + +`func NewV0AppNotificationSettingsParams() *V0AppNotificationSettingsParams` + +NewV0AppNotificationSettingsParams instantiates a new V0AppNotificationSettingsParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppNotificationSettingsParamsWithDefaults + +`func NewV0AppNotificationSettingsParamsWithDefaults() *V0AppNotificationSettingsParams` + +NewV0AppNotificationSettingsParamsWithDefaults instantiates a new V0AppNotificationSettingsParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetOnFailure + +`func (o *V0AppNotificationSettingsParams) GetOnFailure() string` + +GetOnFailure returns the OnFailure field if non-nil, zero value otherwise. + +### GetOnFailureOk + +`func (o *V0AppNotificationSettingsParams) GetOnFailureOk() (*string, bool)` + +GetOnFailureOk returns a tuple with the OnFailure field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnFailure + +`func (o *V0AppNotificationSettingsParams) SetOnFailure(v string)` + +SetOnFailure sets OnFailure field to given value. + +### HasOnFailure + +`func (o *V0AppNotificationSettingsParams) HasOnFailure() bool` + +HasOnFailure returns a boolean if a field has been set. + +### GetOnSuccess + +`func (o *V0AppNotificationSettingsParams) GetOnSuccess() string` + +GetOnSuccess returns the OnSuccess field if non-nil, zero value otherwise. + +### GetOnSuccessOk + +`func (o *V0AppNotificationSettingsParams) GetOnSuccessOk() (*string, bool)` + +GetOnSuccessOk returns a tuple with the OnSuccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOnSuccess + +`func (o *V0AppNotificationSettingsParams) SetOnSuccess(v string)` + +SetOnSuccess sets OnSuccess field to given value. + +### HasOnSuccess + +`func (o *V0AppNotificationSettingsParams) HasOnSuccess() bool` + +HasOnSuccess returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AppNotificationSettingsUpdateResponse.md b/go2/docs/V0AppNotificationSettingsUpdateResponse.md new file mode 100644 index 0000000..7a5bcca --- /dev/null +++ b/go2/docs/V0AppNotificationSettingsUpdateResponse.md @@ -0,0 +1,56 @@ +# V0AppNotificationSettingsUpdateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Msg** | Pointer to **string** | | [optional] + +## Methods + +### NewV0AppNotificationSettingsUpdateResponse + +`func NewV0AppNotificationSettingsUpdateResponse() *V0AppNotificationSettingsUpdateResponse` + +NewV0AppNotificationSettingsUpdateResponse instantiates a new V0AppNotificationSettingsUpdateResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppNotificationSettingsUpdateResponseWithDefaults + +`func NewV0AppNotificationSettingsUpdateResponseWithDefaults() *V0AppNotificationSettingsUpdateResponse` + +NewV0AppNotificationSettingsUpdateResponseWithDefaults instantiates a new V0AppNotificationSettingsUpdateResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMsg + +`func (o *V0AppNotificationSettingsUpdateResponse) GetMsg() string` + +GetMsg returns the Msg field if non-nil, zero value otherwise. + +### GetMsgOk + +`func (o *V0AppNotificationSettingsUpdateResponse) GetMsgOk() (*string, bool)` + +GetMsgOk returns a tuple with the Msg field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMsg + +`func (o *V0AppNotificationSettingsUpdateResponse) SetMsg(v string)` + +SetMsg sets Msg field to given value. + +### HasMsg + +`func (o *V0AppNotificationSettingsUpdateResponse) HasMsg() bool` + +HasMsg returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AppRespModel.md b/go2/docs/V0AppRespModel.md new file mode 100644 index 0000000..ad516dc --- /dev/null +++ b/go2/docs/V0AppRespModel.md @@ -0,0 +1,82 @@ +# V0AppRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Slug** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewV0AppRespModel + +`func NewV0AppRespModel() *V0AppRespModel` + +NewV0AppRespModel instantiates a new V0AppRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppRespModelWithDefaults + +`func NewV0AppRespModelWithDefaults() *V0AppRespModel` + +NewV0AppRespModelWithDefaults instantiates a new V0AppRespModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSlug + +`func (o *V0AppRespModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0AppRespModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0AppRespModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0AppRespModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0AppRespModel) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0AppRespModel) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0AppRespModel) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0AppRespModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AppResponseItemModel.md b/go2/docs/V0AppResponseItemModel.md new file mode 100644 index 0000000..211f9e5 --- /dev/null +++ b/go2/docs/V0AppResponseItemModel.md @@ -0,0 +1,368 @@ +# V0AppResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvatarUrl** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**IsDisabled** | Pointer to **bool** | | [optional] +**IsGithubChecksEnabled** | Pointer to **bool** | | [optional] +**IsPublic** | Pointer to **bool** | | [optional] +**Owner** | Pointer to [**V0OwnerAccountResponseModel**](V0OwnerAccountResponseModel.md) | | [optional] +**ProjectType** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**Provider** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**RepoOwner** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**RepoSlug** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**RepoUrl** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**Title** | Pointer to **string** | | [optional] + +## Methods + +### NewV0AppResponseItemModel + +`func NewV0AppResponseItemModel() *V0AppResponseItemModel` + +NewV0AppResponseItemModel instantiates a new V0AppResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppResponseItemModelWithDefaults + +`func NewV0AppResponseItemModelWithDefaults() *V0AppResponseItemModel` + +NewV0AppResponseItemModelWithDefaults instantiates a new V0AppResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvatarUrl + +`func (o *V0AppResponseItemModel) GetAvatarUrl() NullsString` + +GetAvatarUrl returns the AvatarUrl field if non-nil, zero value otherwise. + +### GetAvatarUrlOk + +`func (o *V0AppResponseItemModel) GetAvatarUrlOk() (*NullsString, bool)` + +GetAvatarUrlOk returns a tuple with the AvatarUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatarUrl + +`func (o *V0AppResponseItemModel) SetAvatarUrl(v NullsString)` + +SetAvatarUrl sets AvatarUrl field to given value. + +### HasAvatarUrl + +`func (o *V0AppResponseItemModel) HasAvatarUrl() bool` + +HasAvatarUrl returns a boolean if a field has been set. + +### GetIsDisabled + +`func (o *V0AppResponseItemModel) GetIsDisabled() bool` + +GetIsDisabled returns the IsDisabled field if non-nil, zero value otherwise. + +### GetIsDisabledOk + +`func (o *V0AppResponseItemModel) GetIsDisabledOk() (*bool, bool)` + +GetIsDisabledOk returns a tuple with the IsDisabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDisabled + +`func (o *V0AppResponseItemModel) SetIsDisabled(v bool)` + +SetIsDisabled sets IsDisabled field to given value. + +### HasIsDisabled + +`func (o *V0AppResponseItemModel) HasIsDisabled() bool` + +HasIsDisabled returns a boolean if a field has been set. + +### GetIsGithubChecksEnabled + +`func (o *V0AppResponseItemModel) GetIsGithubChecksEnabled() bool` + +GetIsGithubChecksEnabled returns the IsGithubChecksEnabled field if non-nil, zero value otherwise. + +### GetIsGithubChecksEnabledOk + +`func (o *V0AppResponseItemModel) GetIsGithubChecksEnabledOk() (*bool, bool)` + +GetIsGithubChecksEnabledOk returns a tuple with the IsGithubChecksEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsGithubChecksEnabled + +`func (o *V0AppResponseItemModel) SetIsGithubChecksEnabled(v bool)` + +SetIsGithubChecksEnabled sets IsGithubChecksEnabled field to given value. + +### HasIsGithubChecksEnabled + +`func (o *V0AppResponseItemModel) HasIsGithubChecksEnabled() bool` + +HasIsGithubChecksEnabled returns a boolean if a field has been set. + +### GetIsPublic + +`func (o *V0AppResponseItemModel) GetIsPublic() bool` + +GetIsPublic returns the IsPublic field if non-nil, zero value otherwise. + +### GetIsPublicOk + +`func (o *V0AppResponseItemModel) GetIsPublicOk() (*bool, bool)` + +GetIsPublicOk returns a tuple with the IsPublic field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublic + +`func (o *V0AppResponseItemModel) SetIsPublic(v bool)` + +SetIsPublic sets IsPublic field to given value. + +### HasIsPublic + +`func (o *V0AppResponseItemModel) HasIsPublic() bool` + +HasIsPublic returns a boolean if a field has been set. + +### GetOwner + +`func (o *V0AppResponseItemModel) GetOwner() V0OwnerAccountResponseModel` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *V0AppResponseItemModel) GetOwnerOk() (*V0OwnerAccountResponseModel, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *V0AppResponseItemModel) SetOwner(v V0OwnerAccountResponseModel)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *V0AppResponseItemModel) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + +### GetProjectType + +`func (o *V0AppResponseItemModel) GetProjectType() NullsString` + +GetProjectType returns the ProjectType field if non-nil, zero value otherwise. + +### GetProjectTypeOk + +`func (o *V0AppResponseItemModel) GetProjectTypeOk() (*NullsString, bool)` + +GetProjectTypeOk returns a tuple with the ProjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectType + +`func (o *V0AppResponseItemModel) SetProjectType(v NullsString)` + +SetProjectType sets ProjectType field to given value. + +### HasProjectType + +`func (o *V0AppResponseItemModel) HasProjectType() bool` + +HasProjectType returns a boolean if a field has been set. + +### GetProvider + +`func (o *V0AppResponseItemModel) GetProvider() NullsString` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *V0AppResponseItemModel) GetProviderOk() (*NullsString, 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 *V0AppResponseItemModel) SetProvider(v NullsString)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *V0AppResponseItemModel) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + +### GetRepoOwner + +`func (o *V0AppResponseItemModel) GetRepoOwner() NullsString` + +GetRepoOwner returns the RepoOwner field if non-nil, zero value otherwise. + +### GetRepoOwnerOk + +`func (o *V0AppResponseItemModel) GetRepoOwnerOk() (*NullsString, bool)` + +GetRepoOwnerOk returns a tuple with the RepoOwner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepoOwner + +`func (o *V0AppResponseItemModel) SetRepoOwner(v NullsString)` + +SetRepoOwner sets RepoOwner field to given value. + +### HasRepoOwner + +`func (o *V0AppResponseItemModel) HasRepoOwner() bool` + +HasRepoOwner returns a boolean if a field has been set. + +### GetRepoSlug + +`func (o *V0AppResponseItemModel) GetRepoSlug() NullsString` + +GetRepoSlug returns the RepoSlug field if non-nil, zero value otherwise. + +### GetRepoSlugOk + +`func (o *V0AppResponseItemModel) GetRepoSlugOk() (*NullsString, bool)` + +GetRepoSlugOk returns a tuple with the RepoSlug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepoSlug + +`func (o *V0AppResponseItemModel) SetRepoSlug(v NullsString)` + +SetRepoSlug sets RepoSlug field to given value. + +### HasRepoSlug + +`func (o *V0AppResponseItemModel) HasRepoSlug() bool` + +HasRepoSlug returns a boolean if a field has been set. + +### GetRepoUrl + +`func (o *V0AppResponseItemModel) GetRepoUrl() NullsString` + +GetRepoUrl returns the RepoUrl field if non-nil, zero value otherwise. + +### GetRepoUrlOk + +`func (o *V0AppResponseItemModel) GetRepoUrlOk() (*NullsString, bool)` + +GetRepoUrlOk returns a tuple with the RepoUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepoUrl + +`func (o *V0AppResponseItemModel) SetRepoUrl(v NullsString)` + +SetRepoUrl sets RepoUrl field to given value. + +### HasRepoUrl + +`func (o *V0AppResponseItemModel) HasRepoUrl() bool` + +HasRepoUrl returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0AppResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0AppResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0AppResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0AppResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0AppResponseItemModel) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0AppResponseItemModel) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0AppResponseItemModel) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0AppResponseItemModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTitle + +`func (o *V0AppResponseItemModel) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *V0AppResponseItemModel) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *V0AppResponseItemModel) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *V0AppResponseItemModel) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AppSecret.md b/go2/docs/V0AppSecret.md new file mode 100644 index 0000000..68a1d51 --- /dev/null +++ b/go2/docs/V0AppSecret.md @@ -0,0 +1,134 @@ +# V0AppSecret + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExpandInStepInputs** | Pointer to **bool** | Replace variable in inputs? https://devcenter.bitrise.io/en/references/steps-reference/step-inputs-reference.html#step-input-properties | [optional] +**IsExposedForPullRequests** | Pointer to **bool** | Expose for Pull Requests? | [optional] +**IsProtected** | Pointer to **bool** | Secret marked as protected? | [optional] +**Name** | Pointer to **string** | Name of the secret | [optional] + +## Methods + +### NewV0AppSecret + +`func NewV0AppSecret() *V0AppSecret` + +NewV0AppSecret instantiates a new V0AppSecret object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppSecretWithDefaults + +`func NewV0AppSecretWithDefaults() *V0AppSecret` + +NewV0AppSecretWithDefaults instantiates a new V0AppSecret object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExpandInStepInputs + +`func (o *V0AppSecret) GetExpandInStepInputs() bool` + +GetExpandInStepInputs returns the ExpandInStepInputs field if non-nil, zero value otherwise. + +### GetExpandInStepInputsOk + +`func (o *V0AppSecret) GetExpandInStepInputsOk() (*bool, bool)` + +GetExpandInStepInputsOk returns a tuple with the ExpandInStepInputs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpandInStepInputs + +`func (o *V0AppSecret) SetExpandInStepInputs(v bool)` + +SetExpandInStepInputs sets ExpandInStepInputs field to given value. + +### HasExpandInStepInputs + +`func (o *V0AppSecret) HasExpandInStepInputs() bool` + +HasExpandInStepInputs returns a boolean if a field has been set. + +### GetIsExposedForPullRequests + +`func (o *V0AppSecret) GetIsExposedForPullRequests() bool` + +GetIsExposedForPullRequests returns the IsExposedForPullRequests field if non-nil, zero value otherwise. + +### GetIsExposedForPullRequestsOk + +`func (o *V0AppSecret) GetIsExposedForPullRequestsOk() (*bool, bool)` + +GetIsExposedForPullRequestsOk returns a tuple with the IsExposedForPullRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsExposedForPullRequests + +`func (o *V0AppSecret) SetIsExposedForPullRequests(v bool)` + +SetIsExposedForPullRequests sets IsExposedForPullRequests field to given value. + +### HasIsExposedForPullRequests + +`func (o *V0AppSecret) HasIsExposedForPullRequests() bool` + +HasIsExposedForPullRequests returns a boolean if a field has been set. + +### GetIsProtected + +`func (o *V0AppSecret) GetIsProtected() bool` + +GetIsProtected returns the IsProtected field if non-nil, zero value otherwise. + +### GetIsProtectedOk + +`func (o *V0AppSecret) GetIsProtectedOk() (*bool, bool)` + +GetIsProtectedOk returns a tuple with the IsProtected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsProtected + +`func (o *V0AppSecret) SetIsProtected(v bool)` + +SetIsProtected sets IsProtected field to given value. + +### HasIsProtected + +`func (o *V0AppSecret) HasIsProtected() bool` + +HasIsProtected returns a boolean if a field has been set. + +### GetName + +`func (o *V0AppSecret) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V0AppSecret) 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 *V0AppSecret) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V0AppSecret) 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/go2/docs/V0AppSecretGetValueResponse.md b/go2/docs/V0AppSecretGetValueResponse.md new file mode 100644 index 0000000..e743bfd --- /dev/null +++ b/go2/docs/V0AppSecretGetValueResponse.md @@ -0,0 +1,56 @@ +# V0AppSecretGetValueResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewV0AppSecretGetValueResponse + +`func NewV0AppSecretGetValueResponse() *V0AppSecretGetValueResponse` + +NewV0AppSecretGetValueResponse instantiates a new V0AppSecretGetValueResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppSecretGetValueResponseWithDefaults + +`func NewV0AppSecretGetValueResponseWithDefaults() *V0AppSecretGetValueResponse` + +NewV0AppSecretGetValueResponseWithDefaults instantiates a new V0AppSecretGetValueResponse object +This 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 *V0AppSecretGetValueResponse) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *V0AppSecretGetValueResponse) 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 *V0AppSecretGetValueResponse) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *V0AppSecretGetValueResponse) 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/go2/docs/V0AppSecretListResponse.md b/go2/docs/V0AppSecretListResponse.md new file mode 100644 index 0000000..25de9e4 --- /dev/null +++ b/go2/docs/V0AppSecretListResponse.md @@ -0,0 +1,56 @@ +# V0AppSecretListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Secrets** | Pointer to [**[]V0AppSecret**](V0AppSecret.md) | | [optional] + +## Methods + +### NewV0AppSecretListResponse + +`func NewV0AppSecretListResponse() *V0AppSecretListResponse` + +NewV0AppSecretListResponse instantiates a new V0AppSecretListResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppSecretListResponseWithDefaults + +`func NewV0AppSecretListResponseWithDefaults() *V0AppSecretListResponse` + +NewV0AppSecretListResponseWithDefaults instantiates a new V0AppSecretListResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSecrets + +`func (o *V0AppSecretListResponse) GetSecrets() []V0AppSecret` + +GetSecrets returns the Secrets field if non-nil, zero value otherwise. + +### GetSecretsOk + +`func (o *V0AppSecretListResponse) GetSecretsOk() (*[]V0AppSecret, bool)` + +GetSecretsOk returns a tuple with the Secrets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecrets + +`func (o *V0AppSecretListResponse) SetSecrets(v []V0AppSecret)` + +SetSecrets sets Secrets field to given value. + +### HasSecrets + +`func (o *V0AppSecretListResponse) HasSecrets() bool` + +HasSecrets returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AppSecretUpsertParams.md b/go2/docs/V0AppSecretUpsertParams.md new file mode 100644 index 0000000..95f9cef --- /dev/null +++ b/go2/docs/V0AppSecretUpsertParams.md @@ -0,0 +1,134 @@ +# V0AppSecretUpsertParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExpandInStepInputs** | Pointer to **bool** | Replace variable in inputs? https://devcenter.bitrise.io/en/references/steps-reference/step-inputs-reference.html#step-input-properties | [optional] +**IsExposedForPullRequests** | Pointer to **bool** | Expose for Pull Requests? | [optional] +**IsProtected** | Pointer to **bool** | Secret marked as protected? | [optional] +**Value** | Pointer to **string** | Value of the secret | [optional] + +## Methods + +### NewV0AppSecretUpsertParams + +`func NewV0AppSecretUpsertParams() *V0AppSecretUpsertParams` + +NewV0AppSecretUpsertParams instantiates a new V0AppSecretUpsertParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppSecretUpsertParamsWithDefaults + +`func NewV0AppSecretUpsertParamsWithDefaults() *V0AppSecretUpsertParams` + +NewV0AppSecretUpsertParamsWithDefaults instantiates a new V0AppSecretUpsertParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExpandInStepInputs + +`func (o *V0AppSecretUpsertParams) GetExpandInStepInputs() bool` + +GetExpandInStepInputs returns the ExpandInStepInputs field if non-nil, zero value otherwise. + +### GetExpandInStepInputsOk + +`func (o *V0AppSecretUpsertParams) GetExpandInStepInputsOk() (*bool, bool)` + +GetExpandInStepInputsOk returns a tuple with the ExpandInStepInputs field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpandInStepInputs + +`func (o *V0AppSecretUpsertParams) SetExpandInStepInputs(v bool)` + +SetExpandInStepInputs sets ExpandInStepInputs field to given value. + +### HasExpandInStepInputs + +`func (o *V0AppSecretUpsertParams) HasExpandInStepInputs() bool` + +HasExpandInStepInputs returns a boolean if a field has been set. + +### GetIsExposedForPullRequests + +`func (o *V0AppSecretUpsertParams) GetIsExposedForPullRequests() bool` + +GetIsExposedForPullRequests returns the IsExposedForPullRequests field if non-nil, zero value otherwise. + +### GetIsExposedForPullRequestsOk + +`func (o *V0AppSecretUpsertParams) GetIsExposedForPullRequestsOk() (*bool, bool)` + +GetIsExposedForPullRequestsOk returns a tuple with the IsExposedForPullRequests field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsExposedForPullRequests + +`func (o *V0AppSecretUpsertParams) SetIsExposedForPullRequests(v bool)` + +SetIsExposedForPullRequests sets IsExposedForPullRequests field to given value. + +### HasIsExposedForPullRequests + +`func (o *V0AppSecretUpsertParams) HasIsExposedForPullRequests() bool` + +HasIsExposedForPullRequests returns a boolean if a field has been set. + +### GetIsProtected + +`func (o *V0AppSecretUpsertParams) GetIsProtected() bool` + +GetIsProtected returns the IsProtected field if non-nil, zero value otherwise. + +### GetIsProtectedOk + +`func (o *V0AppSecretUpsertParams) GetIsProtectedOk() (*bool, bool)` + +GetIsProtectedOk returns a tuple with the IsProtected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsProtected + +`func (o *V0AppSecretUpsertParams) SetIsProtected(v bool)` + +SetIsProtected sets IsProtected field to given value. + +### HasIsProtected + +`func (o *V0AppSecretUpsertParams) HasIsProtected() bool` + +HasIsProtected returns a boolean if a field has been set. + +### GetValue + +`func (o *V0AppSecretUpsertParams) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *V0AppSecretUpsertParams) 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 *V0AppSecretUpsertParams) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *V0AppSecretUpsertParams) 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/go2/docs/V0AppShowResponseModel.md b/go2/docs/V0AppShowResponseModel.md new file mode 100644 index 0000000..e3475b5 --- /dev/null +++ b/go2/docs/V0AppShowResponseModel.md @@ -0,0 +1,56 @@ +# V0AppShowResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0AppResponseItemModel**](V0AppResponseItemModel.md) | | [optional] + +## Methods + +### NewV0AppShowResponseModel + +`func NewV0AppShowResponseModel() *V0AppShowResponseModel` + +NewV0AppShowResponseModel instantiates a new V0AppShowResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppShowResponseModelWithDefaults + +`func NewV0AppShowResponseModelWithDefaults() *V0AppShowResponseModel` + +NewV0AppShowResponseModelWithDefaults instantiates a new V0AppShowResponseModel object +This 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 *V0AppShowResponseModel) GetData() V0AppResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0AppShowResponseModel) GetDataOk() (*V0AppResponseItemModel, 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 *V0AppShowResponseModel) SetData(v V0AppResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0AppShowResponseModel) 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/go2/docs/V0AppUpdateParams.md b/go2/docs/V0AppUpdateParams.md new file mode 100644 index 0000000..cbc9ccc --- /dev/null +++ b/go2/docs/V0AppUpdateParams.md @@ -0,0 +1,212 @@ +# V0AppUpdateParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppleCredentialUserId** | Pointer to **int32** | The new apple credential user ID (recommendation: use the UI to set this) | [optional] +**AppleCredentialUserSlug** | Pointer to **string** | The new apple credential user slug (recommendation: use the UI to set this) | [optional] +**DefaultBranch** | Pointer to **string** | The new default branch for the application. | [optional] +**IsPublic** | Pointer to **bool** | The new value of whether an application should be publicly visible | [optional] +**RepositoryUrl** | Pointer to **string** | The new repository URL for the application. | [optional] +**ServicesCredentialUserId** | Pointer to **int32** | The new service credential user ID (recommendation: use the UI to set this) | [optional] +**Title** | Pointer to **string** | The new title of the application. | [optional] + +## Methods + +### NewV0AppUpdateParams + +`func NewV0AppUpdateParams() *V0AppUpdateParams` + +NewV0AppUpdateParams instantiates a new V0AppUpdateParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppUpdateParamsWithDefaults + +`func NewV0AppUpdateParamsWithDefaults() *V0AppUpdateParams` + +NewV0AppUpdateParamsWithDefaults instantiates a new V0AppUpdateParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAppleCredentialUserId + +`func (o *V0AppUpdateParams) GetAppleCredentialUserId() int32` + +GetAppleCredentialUserId returns the AppleCredentialUserId field if non-nil, zero value otherwise. + +### GetAppleCredentialUserIdOk + +`func (o *V0AppUpdateParams) GetAppleCredentialUserIdOk() (*int32, bool)` + +GetAppleCredentialUserIdOk returns a tuple with the AppleCredentialUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppleCredentialUserId + +`func (o *V0AppUpdateParams) SetAppleCredentialUserId(v int32)` + +SetAppleCredentialUserId sets AppleCredentialUserId field to given value. + +### HasAppleCredentialUserId + +`func (o *V0AppUpdateParams) HasAppleCredentialUserId() bool` + +HasAppleCredentialUserId returns a boolean if a field has been set. + +### GetAppleCredentialUserSlug + +`func (o *V0AppUpdateParams) GetAppleCredentialUserSlug() string` + +GetAppleCredentialUserSlug returns the AppleCredentialUserSlug field if non-nil, zero value otherwise. + +### GetAppleCredentialUserSlugOk + +`func (o *V0AppUpdateParams) GetAppleCredentialUserSlugOk() (*string, bool)` + +GetAppleCredentialUserSlugOk returns a tuple with the AppleCredentialUserSlug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppleCredentialUserSlug + +`func (o *V0AppUpdateParams) SetAppleCredentialUserSlug(v string)` + +SetAppleCredentialUserSlug sets AppleCredentialUserSlug field to given value. + +### HasAppleCredentialUserSlug + +`func (o *V0AppUpdateParams) HasAppleCredentialUserSlug() bool` + +HasAppleCredentialUserSlug returns a boolean if a field has been set. + +### GetDefaultBranch + +`func (o *V0AppUpdateParams) GetDefaultBranch() string` + +GetDefaultBranch returns the DefaultBranch field if non-nil, zero value otherwise. + +### GetDefaultBranchOk + +`func (o *V0AppUpdateParams) GetDefaultBranchOk() (*string, bool)` + +GetDefaultBranchOk returns a tuple with the DefaultBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultBranch + +`func (o *V0AppUpdateParams) SetDefaultBranch(v string)` + +SetDefaultBranch sets DefaultBranch field to given value. + +### HasDefaultBranch + +`func (o *V0AppUpdateParams) HasDefaultBranch() bool` + +HasDefaultBranch returns a boolean if a field has been set. + +### GetIsPublic + +`func (o *V0AppUpdateParams) GetIsPublic() bool` + +GetIsPublic returns the IsPublic field if non-nil, zero value otherwise. + +### GetIsPublicOk + +`func (o *V0AppUpdateParams) GetIsPublicOk() (*bool, bool)` + +GetIsPublicOk returns a tuple with the IsPublic field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublic + +`func (o *V0AppUpdateParams) SetIsPublic(v bool)` + +SetIsPublic sets IsPublic field to given value. + +### HasIsPublic + +`func (o *V0AppUpdateParams) HasIsPublic() bool` + +HasIsPublic returns a boolean if a field has been set. + +### GetRepositoryUrl + +`func (o *V0AppUpdateParams) GetRepositoryUrl() string` + +GetRepositoryUrl returns the RepositoryUrl field if non-nil, zero value otherwise. + +### GetRepositoryUrlOk + +`func (o *V0AppUpdateParams) GetRepositoryUrlOk() (*string, bool)` + +GetRepositoryUrlOk returns a tuple with the RepositoryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryUrl + +`func (o *V0AppUpdateParams) SetRepositoryUrl(v string)` + +SetRepositoryUrl sets RepositoryUrl field to given value. + +### HasRepositoryUrl + +`func (o *V0AppUpdateParams) HasRepositoryUrl() bool` + +HasRepositoryUrl returns a boolean if a field has been set. + +### GetServicesCredentialUserId + +`func (o *V0AppUpdateParams) GetServicesCredentialUserId() int32` + +GetServicesCredentialUserId returns the ServicesCredentialUserId field if non-nil, zero value otherwise. + +### GetServicesCredentialUserIdOk + +`func (o *V0AppUpdateParams) GetServicesCredentialUserIdOk() (*int32, bool)` + +GetServicesCredentialUserIdOk returns a tuple with the ServicesCredentialUserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServicesCredentialUserId + +`func (o *V0AppUpdateParams) SetServicesCredentialUserId(v int32)` + +SetServicesCredentialUserId sets ServicesCredentialUserId field to given value. + +### HasServicesCredentialUserId + +`func (o *V0AppUpdateParams) HasServicesCredentialUserId() bool` + +HasServicesCredentialUserId returns a boolean if a field has been set. + +### GetTitle + +`func (o *V0AppUpdateParams) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *V0AppUpdateParams) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *V0AppUpdateParams) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *V0AppUpdateParams) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AppUpdateRespModel.md b/go2/docs/V0AppUpdateRespModel.md new file mode 100644 index 0000000..beae793 --- /dev/null +++ b/go2/docs/V0AppUpdateRespModel.md @@ -0,0 +1,56 @@ +# V0AppUpdateRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewV0AppUpdateRespModel + +`func NewV0AppUpdateRespModel() *V0AppUpdateRespModel` + +NewV0AppUpdateRespModel instantiates a new V0AppUpdateRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppUpdateRespModelWithDefaults + +`func NewV0AppUpdateRespModelWithDefaults() *V0AppUpdateRespModel` + +NewV0AppUpdateRespModelWithDefaults instantiates a new V0AppUpdateRespModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *V0AppUpdateRespModel) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0AppUpdateRespModel) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0AppUpdateRespModel) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0AppUpdateRespModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AppUploadParams.md b/go2/docs/V0AppUploadParams.md new file mode 100644 index 0000000..4b2cda9 --- /dev/null +++ b/go2/docs/V0AppUploadParams.md @@ -0,0 +1,280 @@ +# V0AppUploadParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DefaultBranchName** | Pointer to **string** | The default branch of the repository. If it's not specified, it will be `master`. | [optional] +**GitOwner** | Pointer to **string** | [Deprecated] You no longer need to provide this field. | [optional] +**GitRepoSlug** | Pointer to **string** | [Deprecated] You no longer need to provide this field. | [optional] +**IsPublic** | **bool** | If `true` then the repository visibility setting will be public, in case of `false` it will be private | +**ManualApprovalEnabled** | Pointer to **bool** | Toggles whether manual approval should be enabled for the app's builds. If it's not specified, it will be `true`. | [optional] +**OrganizationSlug** | Pointer to **string** | The slug of the organization, who will be the owner of the application. If it's not specified, then the authenticated user will be the owner. | [optional] +**Provider** | Pointer to **string** | The git provider you are using, it can be `github`, `bitbucket`, `gitlab`, `gitlab-self-hosted` or `custom` | [optional] +**RepoUrl** | **string** | The URL of your repository | +**Title** | Pointer to **string** | The title of the application. If it's not specified, it will be the git repository's name. | [optional] +**Type** | Pointer to **string** | [Deprecated] You no longer need to provide this field. | [optional] + +## Methods + +### NewV0AppUploadParams + +`func NewV0AppUploadParams(isPublic bool, repoUrl string, ) *V0AppUploadParams` + +NewV0AppUploadParams instantiates a new V0AppUploadParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppUploadParamsWithDefaults + +`func NewV0AppUploadParamsWithDefaults() *V0AppUploadParams` + +NewV0AppUploadParamsWithDefaults instantiates a new V0AppUploadParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDefaultBranchName + +`func (o *V0AppUploadParams) GetDefaultBranchName() string` + +GetDefaultBranchName returns the DefaultBranchName field if non-nil, zero value otherwise. + +### GetDefaultBranchNameOk + +`func (o *V0AppUploadParams) GetDefaultBranchNameOk() (*string, bool)` + +GetDefaultBranchNameOk returns a tuple with the DefaultBranchName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultBranchName + +`func (o *V0AppUploadParams) SetDefaultBranchName(v string)` + +SetDefaultBranchName sets DefaultBranchName field to given value. + +### HasDefaultBranchName + +`func (o *V0AppUploadParams) HasDefaultBranchName() bool` + +HasDefaultBranchName returns a boolean if a field has been set. + +### GetGitOwner + +`func (o *V0AppUploadParams) GetGitOwner() string` + +GetGitOwner returns the GitOwner field if non-nil, zero value otherwise. + +### GetGitOwnerOk + +`func (o *V0AppUploadParams) GetGitOwnerOk() (*string, bool)` + +GetGitOwnerOk returns a tuple with the GitOwner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGitOwner + +`func (o *V0AppUploadParams) SetGitOwner(v string)` + +SetGitOwner sets GitOwner field to given value. + +### HasGitOwner + +`func (o *V0AppUploadParams) HasGitOwner() bool` + +HasGitOwner returns a boolean if a field has been set. + +### GetGitRepoSlug + +`func (o *V0AppUploadParams) GetGitRepoSlug() string` + +GetGitRepoSlug returns the GitRepoSlug field if non-nil, zero value otherwise. + +### GetGitRepoSlugOk + +`func (o *V0AppUploadParams) GetGitRepoSlugOk() (*string, bool)` + +GetGitRepoSlugOk returns a tuple with the GitRepoSlug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGitRepoSlug + +`func (o *V0AppUploadParams) SetGitRepoSlug(v string)` + +SetGitRepoSlug sets GitRepoSlug field to given value. + +### HasGitRepoSlug + +`func (o *V0AppUploadParams) HasGitRepoSlug() bool` + +HasGitRepoSlug returns a boolean if a field has been set. + +### GetIsPublic + +`func (o *V0AppUploadParams) GetIsPublic() bool` + +GetIsPublic returns the IsPublic field if non-nil, zero value otherwise. + +### GetIsPublicOk + +`func (o *V0AppUploadParams) GetIsPublicOk() (*bool, bool)` + +GetIsPublicOk returns a tuple with the IsPublic field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublic + +`func (o *V0AppUploadParams) SetIsPublic(v bool)` + +SetIsPublic sets IsPublic field to given value. + + +### GetManualApprovalEnabled + +`func (o *V0AppUploadParams) GetManualApprovalEnabled() bool` + +GetManualApprovalEnabled returns the ManualApprovalEnabled field if non-nil, zero value otherwise. + +### GetManualApprovalEnabledOk + +`func (o *V0AppUploadParams) GetManualApprovalEnabledOk() (*bool, bool)` + +GetManualApprovalEnabledOk returns a tuple with the ManualApprovalEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManualApprovalEnabled + +`func (o *V0AppUploadParams) SetManualApprovalEnabled(v bool)` + +SetManualApprovalEnabled sets ManualApprovalEnabled field to given value. + +### HasManualApprovalEnabled + +`func (o *V0AppUploadParams) HasManualApprovalEnabled() bool` + +HasManualApprovalEnabled returns a boolean if a field has been set. + +### GetOrganizationSlug + +`func (o *V0AppUploadParams) GetOrganizationSlug() string` + +GetOrganizationSlug returns the OrganizationSlug field if non-nil, zero value otherwise. + +### GetOrganizationSlugOk + +`func (o *V0AppUploadParams) GetOrganizationSlugOk() (*string, bool)` + +GetOrganizationSlugOk returns a tuple with the OrganizationSlug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrganizationSlug + +`func (o *V0AppUploadParams) SetOrganizationSlug(v string)` + +SetOrganizationSlug sets OrganizationSlug field to given value. + +### HasOrganizationSlug + +`func (o *V0AppUploadParams) HasOrganizationSlug() bool` + +HasOrganizationSlug returns a boolean if a field has been set. + +### GetProvider + +`func (o *V0AppUploadParams) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *V0AppUploadParams) 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 *V0AppUploadParams) SetProvider(v string)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *V0AppUploadParams) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + +### GetRepoUrl + +`func (o *V0AppUploadParams) GetRepoUrl() string` + +GetRepoUrl returns the RepoUrl field if non-nil, zero value otherwise. + +### GetRepoUrlOk + +`func (o *V0AppUploadParams) GetRepoUrlOk() (*string, bool)` + +GetRepoUrlOk returns a tuple with the RepoUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepoUrl + +`func (o *V0AppUploadParams) SetRepoUrl(v string)` + +SetRepoUrl sets RepoUrl field to given value. + + +### GetTitle + +`func (o *V0AppUploadParams) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *V0AppUploadParams) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *V0AppUploadParams) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *V0AppUploadParams) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetType + +`func (o *V0AppUploadParams) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *V0AppUploadParams) 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 *V0AppUploadParams) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *V0AppUploadParams) 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/go2/docs/V0AppWebhookCreateParams.md b/go2/docs/V0AppWebhookCreateParams.md new file mode 100644 index 0000000..da48ee1 --- /dev/null +++ b/go2/docs/V0AppWebhookCreateParams.md @@ -0,0 +1,119 @@ +# V0AppWebhookCreateParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Events** | **[]string** | | +**Headers** | Pointer to **[]int32** | | [optional] +**Secret** | **string** | | +**Url** | **string** | | + +## Methods + +### NewV0AppWebhookCreateParams + +`func NewV0AppWebhookCreateParams(events []string, secret string, url string, ) *V0AppWebhookCreateParams` + +NewV0AppWebhookCreateParams instantiates a new V0AppWebhookCreateParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppWebhookCreateParamsWithDefaults + +`func NewV0AppWebhookCreateParamsWithDefaults() *V0AppWebhookCreateParams` + +NewV0AppWebhookCreateParamsWithDefaults instantiates a new V0AppWebhookCreateParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEvents + +`func (o *V0AppWebhookCreateParams) GetEvents() []string` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *V0AppWebhookCreateParams) GetEventsOk() (*[]string, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *V0AppWebhookCreateParams) SetEvents(v []string)` + +SetEvents sets Events field to given value. + + +### GetHeaders + +`func (o *V0AppWebhookCreateParams) GetHeaders() []int32` + +GetHeaders returns the Headers field if non-nil, zero value otherwise. + +### GetHeadersOk + +`func (o *V0AppWebhookCreateParams) GetHeadersOk() (*[]int32, bool)` + +GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeaders + +`func (o *V0AppWebhookCreateParams) SetHeaders(v []int32)` + +SetHeaders sets Headers field to given value. + +### HasHeaders + +`func (o *V0AppWebhookCreateParams) HasHeaders() bool` + +HasHeaders returns a boolean if a field has been set. + +### GetSecret + +`func (o *V0AppWebhookCreateParams) GetSecret() string` + +GetSecret returns the Secret field if non-nil, zero value otherwise. + +### GetSecretOk + +`func (o *V0AppWebhookCreateParams) GetSecretOk() (*string, bool)` + +GetSecretOk returns a tuple with the Secret field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecret + +`func (o *V0AppWebhookCreateParams) SetSecret(v string)` + +SetSecret sets Secret field to given value. + + +### GetUrl + +`func (o *V0AppWebhookCreateParams) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *V0AppWebhookCreateParams) 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 *V0AppWebhookCreateParams) SetUrl(v string)` + +SetUrl sets Url 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/go2/docs/V0AppWebhookCreatedResponseModel.md b/go2/docs/V0AppWebhookCreatedResponseModel.md new file mode 100644 index 0000000..5d5f7ef --- /dev/null +++ b/go2/docs/V0AppWebhookCreatedResponseModel.md @@ -0,0 +1,56 @@ +# V0AppWebhookCreatedResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0AppWebhookResponseItemModel**](V0AppWebhookResponseItemModel.md) | | [optional] + +## Methods + +### NewV0AppWebhookCreatedResponseModel + +`func NewV0AppWebhookCreatedResponseModel() *V0AppWebhookCreatedResponseModel` + +NewV0AppWebhookCreatedResponseModel instantiates a new V0AppWebhookCreatedResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppWebhookCreatedResponseModelWithDefaults + +`func NewV0AppWebhookCreatedResponseModelWithDefaults() *V0AppWebhookCreatedResponseModel` + +NewV0AppWebhookCreatedResponseModelWithDefaults instantiates a new V0AppWebhookCreatedResponseModel object +This 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 *V0AppWebhookCreatedResponseModel) GetData() V0AppWebhookResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0AppWebhookCreatedResponseModel) GetDataOk() (*V0AppWebhookResponseItemModel, 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 *V0AppWebhookCreatedResponseModel) SetData(v V0AppWebhookResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0AppWebhookCreatedResponseModel) 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/go2/docs/V0AppWebhookDeletedResponseModel.md b/go2/docs/V0AppWebhookDeletedResponseModel.md new file mode 100644 index 0000000..3bf4ca2 --- /dev/null +++ b/go2/docs/V0AppWebhookDeletedResponseModel.md @@ -0,0 +1,56 @@ +# V0AppWebhookDeletedResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0AppWebhookResponseItemModel**](V0AppWebhookResponseItemModel.md) | | [optional] + +## Methods + +### NewV0AppWebhookDeletedResponseModel + +`func NewV0AppWebhookDeletedResponseModel() *V0AppWebhookDeletedResponseModel` + +NewV0AppWebhookDeletedResponseModel instantiates a new V0AppWebhookDeletedResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppWebhookDeletedResponseModelWithDefaults + +`func NewV0AppWebhookDeletedResponseModelWithDefaults() *V0AppWebhookDeletedResponseModel` + +NewV0AppWebhookDeletedResponseModelWithDefaults instantiates a new V0AppWebhookDeletedResponseModel object +This 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 *V0AppWebhookDeletedResponseModel) GetData() V0AppWebhookResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0AppWebhookDeletedResponseModel) GetDataOk() (*V0AppWebhookResponseItemModel, 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 *V0AppWebhookDeletedResponseModel) SetData(v V0AppWebhookResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0AppWebhookDeletedResponseModel) 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/go2/docs/V0AppWebhookListResponseModel.md b/go2/docs/V0AppWebhookListResponseModel.md new file mode 100644 index 0000000..f4fb77d --- /dev/null +++ b/go2/docs/V0AppWebhookListResponseModel.md @@ -0,0 +1,82 @@ +# V0AppWebhookListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0AppWebhookResponseItemModel**](V0AppWebhookResponseItemModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0AppWebhookListResponseModel + +`func NewV0AppWebhookListResponseModel() *V0AppWebhookListResponseModel` + +NewV0AppWebhookListResponseModel instantiates a new V0AppWebhookListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppWebhookListResponseModelWithDefaults + +`func NewV0AppWebhookListResponseModelWithDefaults() *V0AppWebhookListResponseModel` + +NewV0AppWebhookListResponseModelWithDefaults instantiates a new V0AppWebhookListResponseModel object +This 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 *V0AppWebhookListResponseModel) GetData() []V0AppWebhookResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0AppWebhookListResponseModel) GetDataOk() (*[]V0AppWebhookResponseItemModel, 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 *V0AppWebhookListResponseModel) SetData(v []V0AppWebhookResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0AppWebhookListResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0AppWebhookListResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0AppWebhookListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0AppWebhookListResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0AppWebhookListResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0AppWebhookResponseItemModel.md b/go2/docs/V0AppWebhookResponseItemModel.md new file mode 100644 index 0000000..f590efa --- /dev/null +++ b/go2/docs/V0AppWebhookResponseItemModel.md @@ -0,0 +1,212 @@ +# V0AppWebhookResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **string** | | [optional] +**Events** | Pointer to **[]string** | | [optional] +**Headers** | Pointer to **[]int32** | | [optional] +**RegisteredByAddon** | Pointer to **bool** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **string** | | [optional] +**Url** | Pointer to **string** | | [optional] + +## Methods + +### NewV0AppWebhookResponseItemModel + +`func NewV0AppWebhookResponseItemModel() *V0AppWebhookResponseItemModel` + +NewV0AppWebhookResponseItemModel instantiates a new V0AppWebhookResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppWebhookResponseItemModelWithDefaults + +`func NewV0AppWebhookResponseItemModelWithDefaults() *V0AppWebhookResponseItemModel` + +NewV0AppWebhookResponseItemModelWithDefaults instantiates a new V0AppWebhookResponseItemModel object +This 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 *V0AppWebhookResponseItemModel) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *V0AppWebhookResponseItemModel) GetCreatedAtOk() (*string, 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 *V0AppWebhookResponseItemModel) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *V0AppWebhookResponseItemModel) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetEvents + +`func (o *V0AppWebhookResponseItemModel) GetEvents() []string` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *V0AppWebhookResponseItemModel) GetEventsOk() (*[]string, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *V0AppWebhookResponseItemModel) SetEvents(v []string)` + +SetEvents sets Events field to given value. + +### HasEvents + +`func (o *V0AppWebhookResponseItemModel) HasEvents() bool` + +HasEvents returns a boolean if a field has been set. + +### GetHeaders + +`func (o *V0AppWebhookResponseItemModel) GetHeaders() []int32` + +GetHeaders returns the Headers field if non-nil, zero value otherwise. + +### GetHeadersOk + +`func (o *V0AppWebhookResponseItemModel) GetHeadersOk() (*[]int32, bool)` + +GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeaders + +`func (o *V0AppWebhookResponseItemModel) SetHeaders(v []int32)` + +SetHeaders sets Headers field to given value. + +### HasHeaders + +`func (o *V0AppWebhookResponseItemModel) HasHeaders() bool` + +HasHeaders returns a boolean if a field has been set. + +### GetRegisteredByAddon + +`func (o *V0AppWebhookResponseItemModel) GetRegisteredByAddon() bool` + +GetRegisteredByAddon returns the RegisteredByAddon field if non-nil, zero value otherwise. + +### GetRegisteredByAddonOk + +`func (o *V0AppWebhookResponseItemModel) GetRegisteredByAddonOk() (*bool, bool)` + +GetRegisteredByAddonOk returns a tuple with the RegisteredByAddon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegisteredByAddon + +`func (o *V0AppWebhookResponseItemModel) SetRegisteredByAddon(v bool)` + +SetRegisteredByAddon sets RegisteredByAddon field to given value. + +### HasRegisteredByAddon + +`func (o *V0AppWebhookResponseItemModel) HasRegisteredByAddon() bool` + +HasRegisteredByAddon returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0AppWebhookResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0AppWebhookResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0AppWebhookResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0AppWebhookResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *V0AppWebhookResponseItemModel) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *V0AppWebhookResponseItemModel) GetUpdatedAtOk() (*string, 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 *V0AppWebhookResponseItemModel) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *V0AppWebhookResponseItemModel) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetUrl + +`func (o *V0AppWebhookResponseItemModel) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *V0AppWebhookResponseItemModel) 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 *V0AppWebhookResponseItemModel) SetUrl(v string)` + +SetUrl sets Url field to given value. + +### HasUrl + +`func (o *V0AppWebhookResponseItemModel) 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/go2/docs/V0AppWebhookResponseModel.md b/go2/docs/V0AppWebhookResponseModel.md new file mode 100644 index 0000000..fb9d407 --- /dev/null +++ b/go2/docs/V0AppWebhookResponseModel.md @@ -0,0 +1,56 @@ +# V0AppWebhookResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0AppWebhookResponseItemModel**](V0AppWebhookResponseItemModel.md) | | [optional] + +## Methods + +### NewV0AppWebhookResponseModel + +`func NewV0AppWebhookResponseModel() *V0AppWebhookResponseModel` + +NewV0AppWebhookResponseModel instantiates a new V0AppWebhookResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppWebhookResponseModelWithDefaults + +`func NewV0AppWebhookResponseModelWithDefaults() *V0AppWebhookResponseModel` + +NewV0AppWebhookResponseModelWithDefaults instantiates a new V0AppWebhookResponseModel object +This 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 *V0AppWebhookResponseModel) GetData() V0AppWebhookResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0AppWebhookResponseModel) GetDataOk() (*V0AppWebhookResponseItemModel, 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 *V0AppWebhookResponseModel) SetData(v V0AppWebhookResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0AppWebhookResponseModel) 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/go2/docs/V0AppWebhookUpdateParams.md b/go2/docs/V0AppWebhookUpdateParams.md new file mode 100644 index 0000000..452d5e1 --- /dev/null +++ b/go2/docs/V0AppWebhookUpdateParams.md @@ -0,0 +1,98 @@ +# V0AppWebhookUpdateParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Events** | **[]string** | | +**Headers** | Pointer to **[]int32** | | [optional] +**Url** | **string** | | + +## Methods + +### NewV0AppWebhookUpdateParams + +`func NewV0AppWebhookUpdateParams(events []string, url string, ) *V0AppWebhookUpdateParams` + +NewV0AppWebhookUpdateParams instantiates a new V0AppWebhookUpdateParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppWebhookUpdateParamsWithDefaults + +`func NewV0AppWebhookUpdateParamsWithDefaults() *V0AppWebhookUpdateParams` + +NewV0AppWebhookUpdateParamsWithDefaults instantiates a new V0AppWebhookUpdateParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEvents + +`func (o *V0AppWebhookUpdateParams) GetEvents() []string` + +GetEvents returns the Events field if non-nil, zero value otherwise. + +### GetEventsOk + +`func (o *V0AppWebhookUpdateParams) GetEventsOk() (*[]string, bool)` + +GetEventsOk returns a tuple with the Events field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEvents + +`func (o *V0AppWebhookUpdateParams) SetEvents(v []string)` + +SetEvents sets Events field to given value. + + +### GetHeaders + +`func (o *V0AppWebhookUpdateParams) GetHeaders() []int32` + +GetHeaders returns the Headers field if non-nil, zero value otherwise. + +### GetHeadersOk + +`func (o *V0AppWebhookUpdateParams) GetHeadersOk() (*[]int32, bool)` + +GetHeadersOk returns a tuple with the Headers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeaders + +`func (o *V0AppWebhookUpdateParams) SetHeaders(v []int32)` + +SetHeaders sets Headers field to given value. + +### HasHeaders + +`func (o *V0AppWebhookUpdateParams) HasHeaders() bool` + +HasHeaders returns a boolean if a field has been set. + +### GetUrl + +`func (o *V0AppWebhookUpdateParams) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *V0AppWebhookUpdateParams) 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 *V0AppWebhookUpdateParams) SetUrl(v string)` + +SetUrl sets Url 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/go2/docs/V0AppleAPICredentialResponseItem.md b/go2/docs/V0AppleAPICredentialResponseItem.md new file mode 100644 index 0000000..2fe2a71 --- /dev/null +++ b/go2/docs/V0AppleAPICredentialResponseItem.md @@ -0,0 +1,186 @@ +# V0AppleAPICredentialResponseItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **string** | | [optional] +**IssuerId** | Pointer to **string** | | [optional] +**KeyId** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **string** | | [optional] + +## Methods + +### NewV0AppleAPICredentialResponseItem + +`func NewV0AppleAPICredentialResponseItem() *V0AppleAPICredentialResponseItem` + +NewV0AppleAPICredentialResponseItem instantiates a new V0AppleAPICredentialResponseItem object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppleAPICredentialResponseItemWithDefaults + +`func NewV0AppleAPICredentialResponseItemWithDefaults() *V0AppleAPICredentialResponseItem` + +NewV0AppleAPICredentialResponseItemWithDefaults instantiates a new V0AppleAPICredentialResponseItem object +This 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 *V0AppleAPICredentialResponseItem) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *V0AppleAPICredentialResponseItem) GetCreatedAtOk() (*string, 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 *V0AppleAPICredentialResponseItem) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *V0AppleAPICredentialResponseItem) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetIssuerId + +`func (o *V0AppleAPICredentialResponseItem) GetIssuerId() string` + +GetIssuerId returns the IssuerId field if non-nil, zero value otherwise. + +### GetIssuerIdOk + +`func (o *V0AppleAPICredentialResponseItem) GetIssuerIdOk() (*string, bool)` + +GetIssuerIdOk returns a tuple with the IssuerId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIssuerId + +`func (o *V0AppleAPICredentialResponseItem) SetIssuerId(v string)` + +SetIssuerId sets IssuerId field to given value. + +### HasIssuerId + +`func (o *V0AppleAPICredentialResponseItem) HasIssuerId() bool` + +HasIssuerId returns a boolean if a field has been set. + +### GetKeyId + +`func (o *V0AppleAPICredentialResponseItem) GetKeyId() string` + +GetKeyId returns the KeyId field if non-nil, zero value otherwise. + +### GetKeyIdOk + +`func (o *V0AppleAPICredentialResponseItem) GetKeyIdOk() (*string, bool)` + +GetKeyIdOk returns a tuple with the KeyId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKeyId + +`func (o *V0AppleAPICredentialResponseItem) SetKeyId(v string)` + +SetKeyId sets KeyId field to given value. + +### HasKeyId + +`func (o *V0AppleAPICredentialResponseItem) HasKeyId() bool` + +HasKeyId returns a boolean if a field has been set. + +### GetName + +`func (o *V0AppleAPICredentialResponseItem) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V0AppleAPICredentialResponseItem) 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 *V0AppleAPICredentialResponseItem) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V0AppleAPICredentialResponseItem) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0AppleAPICredentialResponseItem) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0AppleAPICredentialResponseItem) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0AppleAPICredentialResponseItem) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0AppleAPICredentialResponseItem) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *V0AppleAPICredentialResponseItem) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *V0AppleAPICredentialResponseItem) GetUpdatedAtOk() (*string, 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 *V0AppleAPICredentialResponseItem) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *V0AppleAPICredentialResponseItem) 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/go2/docs/V0AppleAPICredentialsListResponse.md b/go2/docs/V0AppleAPICredentialsListResponse.md new file mode 100644 index 0000000..63d2476 --- /dev/null +++ b/go2/docs/V0AppleAPICredentialsListResponse.md @@ -0,0 +1,56 @@ +# V0AppleAPICredentialsListResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0AppleAPICredentialResponseItem**](V0AppleAPICredentialResponseItem.md) | | [optional] + +## Methods + +### NewV0AppleAPICredentialsListResponse + +`func NewV0AppleAPICredentialsListResponse() *V0AppleAPICredentialsListResponse` + +NewV0AppleAPICredentialsListResponse instantiates a new V0AppleAPICredentialsListResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0AppleAPICredentialsListResponseWithDefaults + +`func NewV0AppleAPICredentialsListResponseWithDefaults() *V0AppleAPICredentialsListResponse` + +NewV0AppleAPICredentialsListResponseWithDefaults instantiates a new V0AppleAPICredentialsListResponse object +This 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 *V0AppleAPICredentialsListResponse) GetData() []V0AppleAPICredentialResponseItem` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0AppleAPICredentialsListResponse) GetDataOk() (*[]V0AppleAPICredentialResponseItem, 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 *V0AppleAPICredentialsListResponse) SetData(v []V0AppleAPICredentialResponseItem)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0AppleAPICredentialsListResponse) 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/go2/docs/V0ArchivedBuildArtifact.md b/go2/docs/V0ArchivedBuildArtifact.md new file mode 100644 index 0000000..d30b9b0 --- /dev/null +++ b/go2/docs/V0ArchivedBuildArtifact.md @@ -0,0 +1,238 @@ +# V0ArchivedBuildArtifact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ArtifactMeta** | Pointer to **map[string]interface{}** | | [optional] +**ArtifactType** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **string** | | [optional] +**FileSizeBytes** | Pointer to **int32** | | [optional] +**Id** | Pointer to **string** | | [optional] +**IsPublicPageEnabled** | Pointer to **bool** | | [optional] +**PublicPageToken** | Pointer to **string** | | [optional] +**Title** | Pointer to **string** | | [optional] + +## Methods + +### NewV0ArchivedBuildArtifact + +`func NewV0ArchivedBuildArtifact() *V0ArchivedBuildArtifact` + +NewV0ArchivedBuildArtifact instantiates a new V0ArchivedBuildArtifact object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ArchivedBuildArtifactWithDefaults + +`func NewV0ArchivedBuildArtifactWithDefaults() *V0ArchivedBuildArtifact` + +NewV0ArchivedBuildArtifactWithDefaults instantiates a new V0ArchivedBuildArtifact object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArtifactMeta + +`func (o *V0ArchivedBuildArtifact) GetArtifactMeta() map[string]interface{}` + +GetArtifactMeta returns the ArtifactMeta field if non-nil, zero value otherwise. + +### GetArtifactMetaOk + +`func (o *V0ArchivedBuildArtifact) GetArtifactMetaOk() (*map[string]interface{}, bool)` + +GetArtifactMetaOk returns a tuple with the ArtifactMeta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifactMeta + +`func (o *V0ArchivedBuildArtifact) SetArtifactMeta(v map[string]interface{})` + +SetArtifactMeta sets ArtifactMeta field to given value. + +### HasArtifactMeta + +`func (o *V0ArchivedBuildArtifact) HasArtifactMeta() bool` + +HasArtifactMeta returns a boolean if a field has been set. + +### GetArtifactType + +`func (o *V0ArchivedBuildArtifact) GetArtifactType() string` + +GetArtifactType returns the ArtifactType field if non-nil, zero value otherwise. + +### GetArtifactTypeOk + +`func (o *V0ArchivedBuildArtifact) GetArtifactTypeOk() (*string, bool)` + +GetArtifactTypeOk returns a tuple with the ArtifactType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifactType + +`func (o *V0ArchivedBuildArtifact) SetArtifactType(v string)` + +SetArtifactType sets ArtifactType field to given value. + +### HasArtifactType + +`func (o *V0ArchivedBuildArtifact) HasArtifactType() bool` + +HasArtifactType returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *V0ArchivedBuildArtifact) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *V0ArchivedBuildArtifact) GetCreatedAtOk() (*string, 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 *V0ArchivedBuildArtifact) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *V0ArchivedBuildArtifact) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetFileSizeBytes + +`func (o *V0ArchivedBuildArtifact) GetFileSizeBytes() int32` + +GetFileSizeBytes returns the FileSizeBytes field if non-nil, zero value otherwise. + +### GetFileSizeBytesOk + +`func (o *V0ArchivedBuildArtifact) GetFileSizeBytesOk() (*int32, bool)` + +GetFileSizeBytesOk returns a tuple with the FileSizeBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileSizeBytes + +`func (o *V0ArchivedBuildArtifact) SetFileSizeBytes(v int32)` + +SetFileSizeBytes sets FileSizeBytes field to given value. + +### HasFileSizeBytes + +`func (o *V0ArchivedBuildArtifact) HasFileSizeBytes() bool` + +HasFileSizeBytes returns a boolean if a field has been set. + +### GetId + +`func (o *V0ArchivedBuildArtifact) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *V0ArchivedBuildArtifact) 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 *V0ArchivedBuildArtifact) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *V0ArchivedBuildArtifact) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIsPublicPageEnabled + +`func (o *V0ArchivedBuildArtifact) GetIsPublicPageEnabled() bool` + +GetIsPublicPageEnabled returns the IsPublicPageEnabled field if non-nil, zero value otherwise. + +### GetIsPublicPageEnabledOk + +`func (o *V0ArchivedBuildArtifact) GetIsPublicPageEnabledOk() (*bool, bool)` + +GetIsPublicPageEnabledOk returns a tuple with the IsPublicPageEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublicPageEnabled + +`func (o *V0ArchivedBuildArtifact) SetIsPublicPageEnabled(v bool)` + +SetIsPublicPageEnabled sets IsPublicPageEnabled field to given value. + +### HasIsPublicPageEnabled + +`func (o *V0ArchivedBuildArtifact) HasIsPublicPageEnabled() bool` + +HasIsPublicPageEnabled returns a boolean if a field has been set. + +### GetPublicPageToken + +`func (o *V0ArchivedBuildArtifact) GetPublicPageToken() string` + +GetPublicPageToken returns the PublicPageToken field if non-nil, zero value otherwise. + +### GetPublicPageTokenOk + +`func (o *V0ArchivedBuildArtifact) GetPublicPageTokenOk() (*string, bool)` + +GetPublicPageTokenOk returns a tuple with the PublicPageToken field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicPageToken + +`func (o *V0ArchivedBuildArtifact) SetPublicPageToken(v string)` + +SetPublicPageToken sets PublicPageToken field to given value. + +### HasPublicPageToken + +`func (o *V0ArchivedBuildArtifact) HasPublicPageToken() bool` + +HasPublicPageToken returns a boolean if a field has been set. + +### GetTitle + +`func (o *V0ArchivedBuildArtifact) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *V0ArchivedBuildArtifact) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *V0ArchivedBuildArtifact) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *V0ArchivedBuildArtifact) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ArchivedBuildListResponseModel.md b/go2/docs/V0ArchivedBuildListResponseModel.md new file mode 100644 index 0000000..5dcd1dc --- /dev/null +++ b/go2/docs/V0ArchivedBuildListResponseModel.md @@ -0,0 +1,82 @@ +# V0ArchivedBuildListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0ArchivedBuildResponseItemModel**](V0ArchivedBuildResponseItemModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0ArchivedBuildListResponseModel + +`func NewV0ArchivedBuildListResponseModel() *V0ArchivedBuildListResponseModel` + +NewV0ArchivedBuildListResponseModel instantiates a new V0ArchivedBuildListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ArchivedBuildListResponseModelWithDefaults + +`func NewV0ArchivedBuildListResponseModelWithDefaults() *V0ArchivedBuildListResponseModel` + +NewV0ArchivedBuildListResponseModelWithDefaults instantiates a new V0ArchivedBuildListResponseModel object +This 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 *V0ArchivedBuildListResponseModel) GetData() []V0ArchivedBuildResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0ArchivedBuildListResponseModel) GetDataOk() (*[]V0ArchivedBuildResponseItemModel, 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 *V0ArchivedBuildListResponseModel) SetData(v []V0ArchivedBuildResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0ArchivedBuildListResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0ArchivedBuildListResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0ArchivedBuildListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0ArchivedBuildListResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0ArchivedBuildListResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ArchivedBuildResponseItemModel.md b/go2/docs/V0ArchivedBuildResponseItemModel.md new file mode 100644 index 0000000..27ed73c --- /dev/null +++ b/go2/docs/V0ArchivedBuildResponseItemModel.md @@ -0,0 +1,602 @@ +# V0ArchivedBuildResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AbortReason** | Pointer to **string** | | [optional] +**Branch** | Pointer to **string** | | [optional] +**BuildArtifacts** | Pointer to [**[]V0ArchivedBuildArtifact**](V0ArchivedBuildArtifact.md) | | [optional] +**BuildNumber** | Pointer to **int32** | | [optional] +**CommitHash** | Pointer to **string** | | [optional] +**CommitMessage** | Pointer to **string** | | [optional] +**CreditCost** | Pointer to **int32** | | [optional] +**FinishedAt** | Pointer to **string** | | [optional] +**MachineTypeId** | Pointer to **string** | | [optional] +**OriginalBuildParams** | Pointer to **[]int32** | | [optional] +**PipelineWorkflowId** | Pointer to **string** | | [optional] +**PullRequestId** | Pointer to **int32** | | [optional] +**PullRequestTargetBranch** | Pointer to **string** | | [optional] +**PullRequestViewUrl** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**StackIdentifier** | Pointer to **string** | | [optional] +**StartedOnWorkerAt** | Pointer to **string** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**StatusText** | Pointer to **string** | | [optional] +**Tag** | Pointer to **string** | | [optional] +**TriggeredBy** | Pointer to **string** | | [optional] +**TriggeredWorkflow** | Pointer to **string** | | [optional] + +## Methods + +### NewV0ArchivedBuildResponseItemModel + +`func NewV0ArchivedBuildResponseItemModel() *V0ArchivedBuildResponseItemModel` + +NewV0ArchivedBuildResponseItemModel instantiates a new V0ArchivedBuildResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ArchivedBuildResponseItemModelWithDefaults + +`func NewV0ArchivedBuildResponseItemModelWithDefaults() *V0ArchivedBuildResponseItemModel` + +NewV0ArchivedBuildResponseItemModelWithDefaults instantiates a new V0ArchivedBuildResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAbortReason + +`func (o *V0ArchivedBuildResponseItemModel) GetAbortReason() string` + +GetAbortReason returns the AbortReason field if non-nil, zero value otherwise. + +### GetAbortReasonOk + +`func (o *V0ArchivedBuildResponseItemModel) GetAbortReasonOk() (*string, bool)` + +GetAbortReasonOk returns a tuple with the AbortReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbortReason + +`func (o *V0ArchivedBuildResponseItemModel) SetAbortReason(v string)` + +SetAbortReason sets AbortReason field to given value. + +### HasAbortReason + +`func (o *V0ArchivedBuildResponseItemModel) HasAbortReason() bool` + +HasAbortReason returns a boolean if a field has been set. + +### GetBranch + +`func (o *V0ArchivedBuildResponseItemModel) GetBranch() string` + +GetBranch returns the Branch field if non-nil, zero value otherwise. + +### GetBranchOk + +`func (o *V0ArchivedBuildResponseItemModel) GetBranchOk() (*string, bool)` + +GetBranchOk returns a tuple with the Branch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranch + +`func (o *V0ArchivedBuildResponseItemModel) SetBranch(v string)` + +SetBranch sets Branch field to given value. + +### HasBranch + +`func (o *V0ArchivedBuildResponseItemModel) HasBranch() bool` + +HasBranch returns a boolean if a field has been set. + +### GetBuildArtifacts + +`func (o *V0ArchivedBuildResponseItemModel) GetBuildArtifacts() []V0ArchivedBuildArtifact` + +GetBuildArtifacts returns the BuildArtifacts field if non-nil, zero value otherwise. + +### GetBuildArtifactsOk + +`func (o *V0ArchivedBuildResponseItemModel) GetBuildArtifactsOk() (*[]V0ArchivedBuildArtifact, bool)` + +GetBuildArtifactsOk returns a tuple with the BuildArtifacts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildArtifacts + +`func (o *V0ArchivedBuildResponseItemModel) SetBuildArtifacts(v []V0ArchivedBuildArtifact)` + +SetBuildArtifacts sets BuildArtifacts field to given value. + +### HasBuildArtifacts + +`func (o *V0ArchivedBuildResponseItemModel) HasBuildArtifacts() bool` + +HasBuildArtifacts returns a boolean if a field has been set. + +### GetBuildNumber + +`func (o *V0ArchivedBuildResponseItemModel) GetBuildNumber() int32` + +GetBuildNumber returns the BuildNumber field if non-nil, zero value otherwise. + +### GetBuildNumberOk + +`func (o *V0ArchivedBuildResponseItemModel) GetBuildNumberOk() (*int32, bool)` + +GetBuildNumberOk returns a tuple with the BuildNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildNumber + +`func (o *V0ArchivedBuildResponseItemModel) SetBuildNumber(v int32)` + +SetBuildNumber sets BuildNumber field to given value. + +### HasBuildNumber + +`func (o *V0ArchivedBuildResponseItemModel) HasBuildNumber() bool` + +HasBuildNumber returns a boolean if a field has been set. + +### GetCommitHash + +`func (o *V0ArchivedBuildResponseItemModel) GetCommitHash() string` + +GetCommitHash returns the CommitHash field if non-nil, zero value otherwise. + +### GetCommitHashOk + +`func (o *V0ArchivedBuildResponseItemModel) GetCommitHashOk() (*string, bool)` + +GetCommitHashOk returns a tuple with the CommitHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitHash + +`func (o *V0ArchivedBuildResponseItemModel) SetCommitHash(v string)` + +SetCommitHash sets CommitHash field to given value. + +### HasCommitHash + +`func (o *V0ArchivedBuildResponseItemModel) HasCommitHash() bool` + +HasCommitHash returns a boolean if a field has been set. + +### GetCommitMessage + +`func (o *V0ArchivedBuildResponseItemModel) GetCommitMessage() string` + +GetCommitMessage returns the CommitMessage field if non-nil, zero value otherwise. + +### GetCommitMessageOk + +`func (o *V0ArchivedBuildResponseItemModel) GetCommitMessageOk() (*string, bool)` + +GetCommitMessageOk returns a tuple with the CommitMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitMessage + +`func (o *V0ArchivedBuildResponseItemModel) SetCommitMessage(v string)` + +SetCommitMessage sets CommitMessage field to given value. + +### HasCommitMessage + +`func (o *V0ArchivedBuildResponseItemModel) HasCommitMessage() bool` + +HasCommitMessage returns a boolean if a field has been set. + +### GetCreditCost + +`func (o *V0ArchivedBuildResponseItemModel) GetCreditCost() int32` + +GetCreditCost returns the CreditCost field if non-nil, zero value otherwise. + +### GetCreditCostOk + +`func (o *V0ArchivedBuildResponseItemModel) GetCreditCostOk() (*int32, bool)` + +GetCreditCostOk returns a tuple with the CreditCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreditCost + +`func (o *V0ArchivedBuildResponseItemModel) SetCreditCost(v int32)` + +SetCreditCost sets CreditCost field to given value. + +### HasCreditCost + +`func (o *V0ArchivedBuildResponseItemModel) HasCreditCost() bool` + +HasCreditCost returns a boolean if a field has been set. + +### GetFinishedAt + +`func (o *V0ArchivedBuildResponseItemModel) GetFinishedAt() string` + +GetFinishedAt returns the FinishedAt field if non-nil, zero value otherwise. + +### GetFinishedAtOk + +`func (o *V0ArchivedBuildResponseItemModel) GetFinishedAtOk() (*string, bool)` + +GetFinishedAtOk returns a tuple with the FinishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFinishedAt + +`func (o *V0ArchivedBuildResponseItemModel) SetFinishedAt(v string)` + +SetFinishedAt sets FinishedAt field to given value. + +### HasFinishedAt + +`func (o *V0ArchivedBuildResponseItemModel) HasFinishedAt() bool` + +HasFinishedAt returns a boolean if a field has been set. + +### GetMachineTypeId + +`func (o *V0ArchivedBuildResponseItemModel) GetMachineTypeId() string` + +GetMachineTypeId returns the MachineTypeId field if non-nil, zero value otherwise. + +### GetMachineTypeIdOk + +`func (o *V0ArchivedBuildResponseItemModel) GetMachineTypeIdOk() (*string, bool)` + +GetMachineTypeIdOk returns a tuple with the MachineTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMachineTypeId + +`func (o *V0ArchivedBuildResponseItemModel) SetMachineTypeId(v string)` + +SetMachineTypeId sets MachineTypeId field to given value. + +### HasMachineTypeId + +`func (o *V0ArchivedBuildResponseItemModel) HasMachineTypeId() bool` + +HasMachineTypeId returns a boolean if a field has been set. + +### GetOriginalBuildParams + +`func (o *V0ArchivedBuildResponseItemModel) GetOriginalBuildParams() []int32` + +GetOriginalBuildParams returns the OriginalBuildParams field if non-nil, zero value otherwise. + +### GetOriginalBuildParamsOk + +`func (o *V0ArchivedBuildResponseItemModel) GetOriginalBuildParamsOk() (*[]int32, bool)` + +GetOriginalBuildParamsOk returns a tuple with the OriginalBuildParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalBuildParams + +`func (o *V0ArchivedBuildResponseItemModel) SetOriginalBuildParams(v []int32)` + +SetOriginalBuildParams sets OriginalBuildParams field to given value. + +### HasOriginalBuildParams + +`func (o *V0ArchivedBuildResponseItemModel) HasOriginalBuildParams() bool` + +HasOriginalBuildParams returns a boolean if a field has been set. + +### GetPipelineWorkflowId + +`func (o *V0ArchivedBuildResponseItemModel) GetPipelineWorkflowId() string` + +GetPipelineWorkflowId returns the PipelineWorkflowId field if non-nil, zero value otherwise. + +### GetPipelineWorkflowIdOk + +`func (o *V0ArchivedBuildResponseItemModel) GetPipelineWorkflowIdOk() (*string, bool)` + +GetPipelineWorkflowIdOk returns a tuple with the PipelineWorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelineWorkflowId + +`func (o *V0ArchivedBuildResponseItemModel) SetPipelineWorkflowId(v string)` + +SetPipelineWorkflowId sets PipelineWorkflowId field to given value. + +### HasPipelineWorkflowId + +`func (o *V0ArchivedBuildResponseItemModel) HasPipelineWorkflowId() bool` + +HasPipelineWorkflowId returns a boolean if a field has been set. + +### GetPullRequestId + +`func (o *V0ArchivedBuildResponseItemModel) GetPullRequestId() int32` + +GetPullRequestId returns the PullRequestId field if non-nil, zero value otherwise. + +### GetPullRequestIdOk + +`func (o *V0ArchivedBuildResponseItemModel) GetPullRequestIdOk() (*int32, bool)` + +GetPullRequestIdOk returns a tuple with the PullRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestId + +`func (o *V0ArchivedBuildResponseItemModel) SetPullRequestId(v int32)` + +SetPullRequestId sets PullRequestId field to given value. + +### HasPullRequestId + +`func (o *V0ArchivedBuildResponseItemModel) HasPullRequestId() bool` + +HasPullRequestId returns a boolean if a field has been set. + +### GetPullRequestTargetBranch + +`func (o *V0ArchivedBuildResponseItemModel) GetPullRequestTargetBranch() string` + +GetPullRequestTargetBranch returns the PullRequestTargetBranch field if non-nil, zero value otherwise. + +### GetPullRequestTargetBranchOk + +`func (o *V0ArchivedBuildResponseItemModel) GetPullRequestTargetBranchOk() (*string, bool)` + +GetPullRequestTargetBranchOk returns a tuple with the PullRequestTargetBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestTargetBranch + +`func (o *V0ArchivedBuildResponseItemModel) SetPullRequestTargetBranch(v string)` + +SetPullRequestTargetBranch sets PullRequestTargetBranch field to given value. + +### HasPullRequestTargetBranch + +`func (o *V0ArchivedBuildResponseItemModel) HasPullRequestTargetBranch() bool` + +HasPullRequestTargetBranch returns a boolean if a field has been set. + +### GetPullRequestViewUrl + +`func (o *V0ArchivedBuildResponseItemModel) GetPullRequestViewUrl() string` + +GetPullRequestViewUrl returns the PullRequestViewUrl field if non-nil, zero value otherwise. + +### GetPullRequestViewUrlOk + +`func (o *V0ArchivedBuildResponseItemModel) GetPullRequestViewUrlOk() (*string, bool)` + +GetPullRequestViewUrlOk returns a tuple with the PullRequestViewUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestViewUrl + +`func (o *V0ArchivedBuildResponseItemModel) SetPullRequestViewUrl(v string)` + +SetPullRequestViewUrl sets PullRequestViewUrl field to given value. + +### HasPullRequestViewUrl + +`func (o *V0ArchivedBuildResponseItemModel) HasPullRequestViewUrl() bool` + +HasPullRequestViewUrl returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0ArchivedBuildResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0ArchivedBuildResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0ArchivedBuildResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0ArchivedBuildResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetStackIdentifier + +`func (o *V0ArchivedBuildResponseItemModel) GetStackIdentifier() string` + +GetStackIdentifier returns the StackIdentifier field if non-nil, zero value otherwise. + +### GetStackIdentifierOk + +`func (o *V0ArchivedBuildResponseItemModel) GetStackIdentifierOk() (*string, bool)` + +GetStackIdentifierOk returns a tuple with the StackIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStackIdentifier + +`func (o *V0ArchivedBuildResponseItemModel) SetStackIdentifier(v string)` + +SetStackIdentifier sets StackIdentifier field to given value. + +### HasStackIdentifier + +`func (o *V0ArchivedBuildResponseItemModel) HasStackIdentifier() bool` + +HasStackIdentifier returns a boolean if a field has been set. + +### GetStartedOnWorkerAt + +`func (o *V0ArchivedBuildResponseItemModel) GetStartedOnWorkerAt() string` + +GetStartedOnWorkerAt returns the StartedOnWorkerAt field if non-nil, zero value otherwise. + +### GetStartedOnWorkerAtOk + +`func (o *V0ArchivedBuildResponseItemModel) GetStartedOnWorkerAtOk() (*string, bool)` + +GetStartedOnWorkerAtOk returns a tuple with the StartedOnWorkerAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartedOnWorkerAt + +`func (o *V0ArchivedBuildResponseItemModel) SetStartedOnWorkerAt(v string)` + +SetStartedOnWorkerAt sets StartedOnWorkerAt field to given value. + +### HasStartedOnWorkerAt + +`func (o *V0ArchivedBuildResponseItemModel) HasStartedOnWorkerAt() bool` + +HasStartedOnWorkerAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0ArchivedBuildResponseItemModel) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0ArchivedBuildResponseItemModel) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0ArchivedBuildResponseItemModel) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0ArchivedBuildResponseItemModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatusText + +`func (o *V0ArchivedBuildResponseItemModel) GetStatusText() string` + +GetStatusText returns the StatusText field if non-nil, zero value otherwise. + +### GetStatusTextOk + +`func (o *V0ArchivedBuildResponseItemModel) GetStatusTextOk() (*string, bool)` + +GetStatusTextOk returns a tuple with the StatusText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusText + +`func (o *V0ArchivedBuildResponseItemModel) SetStatusText(v string)` + +SetStatusText sets StatusText field to given value. + +### HasStatusText + +`func (o *V0ArchivedBuildResponseItemModel) HasStatusText() bool` + +HasStatusText returns a boolean if a field has been set. + +### GetTag + +`func (o *V0ArchivedBuildResponseItemModel) GetTag() string` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *V0ArchivedBuildResponseItemModel) GetTagOk() (*string, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *V0ArchivedBuildResponseItemModel) SetTag(v string)` + +SetTag sets Tag field to given value. + +### HasTag + +`func (o *V0ArchivedBuildResponseItemModel) HasTag() bool` + +HasTag returns a boolean if a field has been set. + +### GetTriggeredBy + +`func (o *V0ArchivedBuildResponseItemModel) GetTriggeredBy() string` + +GetTriggeredBy returns the TriggeredBy field if non-nil, zero value otherwise. + +### GetTriggeredByOk + +`func (o *V0ArchivedBuildResponseItemModel) GetTriggeredByOk() (*string, bool)` + +GetTriggeredByOk returns a tuple with the TriggeredBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredBy + +`func (o *V0ArchivedBuildResponseItemModel) SetTriggeredBy(v string)` + +SetTriggeredBy sets TriggeredBy field to given value. + +### HasTriggeredBy + +`func (o *V0ArchivedBuildResponseItemModel) HasTriggeredBy() bool` + +HasTriggeredBy returns a boolean if a field has been set. + +### GetTriggeredWorkflow + +`func (o *V0ArchivedBuildResponseItemModel) GetTriggeredWorkflow() string` + +GetTriggeredWorkflow returns the TriggeredWorkflow field if non-nil, zero value otherwise. + +### GetTriggeredWorkflowOk + +`func (o *V0ArchivedBuildResponseItemModel) GetTriggeredWorkflowOk() (*string, bool)` + +GetTriggeredWorkflowOk returns a tuple with the TriggeredWorkflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredWorkflow + +`func (o *V0ArchivedBuildResponseItemModel) SetTriggeredWorkflow(v string)` + +SetTriggeredWorkflow sets TriggeredWorkflow field to given value. + +### HasTriggeredWorkflow + +`func (o *V0ArchivedBuildResponseItemModel) HasTriggeredWorkflow() bool` + +HasTriggeredWorkflow returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ArtifactDeleteResponseModel.md b/go2/docs/V0ArtifactDeleteResponseModel.md new file mode 100644 index 0000000..a5577c2 --- /dev/null +++ b/go2/docs/V0ArtifactDeleteResponseModel.md @@ -0,0 +1,56 @@ +# V0ArtifactDeleteResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0ArtifactResponseItemModel**](V0ArtifactResponseItemModel.md) | | [optional] + +## Methods + +### NewV0ArtifactDeleteResponseModel + +`func NewV0ArtifactDeleteResponseModel() *V0ArtifactDeleteResponseModel` + +NewV0ArtifactDeleteResponseModel instantiates a new V0ArtifactDeleteResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ArtifactDeleteResponseModelWithDefaults + +`func NewV0ArtifactDeleteResponseModelWithDefaults() *V0ArtifactDeleteResponseModel` + +NewV0ArtifactDeleteResponseModelWithDefaults instantiates a new V0ArtifactDeleteResponseModel object +This 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 *V0ArtifactDeleteResponseModel) GetData() V0ArtifactResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0ArtifactDeleteResponseModel) GetDataOk() (*V0ArtifactResponseItemModel, 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 *V0ArtifactDeleteResponseModel) SetData(v V0ArtifactResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0ArtifactDeleteResponseModel) 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/go2/docs/V0ArtifactListElementResponseModel.md b/go2/docs/V0ArtifactListElementResponseModel.md new file mode 100644 index 0000000..8370a63 --- /dev/null +++ b/go2/docs/V0ArtifactListElementResponseModel.md @@ -0,0 +1,212 @@ +# V0ArtifactListElementResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ArtifactMeta** | Pointer to **[]int32** | | [optional] +**ArtifactType** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**FileSizeBytes** | Pointer to **int32** | | [optional] +**IntermediateFileInfo** | Pointer to **[]int32** | | [optional] +**IsPublicPageEnabled** | Pointer to **bool** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Title** | Pointer to [**NullsString**](NullsString.md) | | [optional] + +## Methods + +### NewV0ArtifactListElementResponseModel + +`func NewV0ArtifactListElementResponseModel() *V0ArtifactListElementResponseModel` + +NewV0ArtifactListElementResponseModel instantiates a new V0ArtifactListElementResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ArtifactListElementResponseModelWithDefaults + +`func NewV0ArtifactListElementResponseModelWithDefaults() *V0ArtifactListElementResponseModel` + +NewV0ArtifactListElementResponseModelWithDefaults instantiates a new V0ArtifactListElementResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArtifactMeta + +`func (o *V0ArtifactListElementResponseModel) GetArtifactMeta() []int32` + +GetArtifactMeta returns the ArtifactMeta field if non-nil, zero value otherwise. + +### GetArtifactMetaOk + +`func (o *V0ArtifactListElementResponseModel) GetArtifactMetaOk() (*[]int32, bool)` + +GetArtifactMetaOk returns a tuple with the ArtifactMeta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifactMeta + +`func (o *V0ArtifactListElementResponseModel) SetArtifactMeta(v []int32)` + +SetArtifactMeta sets ArtifactMeta field to given value. + +### HasArtifactMeta + +`func (o *V0ArtifactListElementResponseModel) HasArtifactMeta() bool` + +HasArtifactMeta returns a boolean if a field has been set. + +### GetArtifactType + +`func (o *V0ArtifactListElementResponseModel) GetArtifactType() NullsString` + +GetArtifactType returns the ArtifactType field if non-nil, zero value otherwise. + +### GetArtifactTypeOk + +`func (o *V0ArtifactListElementResponseModel) GetArtifactTypeOk() (*NullsString, bool)` + +GetArtifactTypeOk returns a tuple with the ArtifactType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifactType + +`func (o *V0ArtifactListElementResponseModel) SetArtifactType(v NullsString)` + +SetArtifactType sets ArtifactType field to given value. + +### HasArtifactType + +`func (o *V0ArtifactListElementResponseModel) HasArtifactType() bool` + +HasArtifactType returns a boolean if a field has been set. + +### GetFileSizeBytes + +`func (o *V0ArtifactListElementResponseModel) GetFileSizeBytes() int32` + +GetFileSizeBytes returns the FileSizeBytes field if non-nil, zero value otherwise. + +### GetFileSizeBytesOk + +`func (o *V0ArtifactListElementResponseModel) GetFileSizeBytesOk() (*int32, bool)` + +GetFileSizeBytesOk returns a tuple with the FileSizeBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileSizeBytes + +`func (o *V0ArtifactListElementResponseModel) SetFileSizeBytes(v int32)` + +SetFileSizeBytes sets FileSizeBytes field to given value. + +### HasFileSizeBytes + +`func (o *V0ArtifactListElementResponseModel) HasFileSizeBytes() bool` + +HasFileSizeBytes returns a boolean if a field has been set. + +### GetIntermediateFileInfo + +`func (o *V0ArtifactListElementResponseModel) GetIntermediateFileInfo() []int32` + +GetIntermediateFileInfo returns the IntermediateFileInfo field if non-nil, zero value otherwise. + +### GetIntermediateFileInfoOk + +`func (o *V0ArtifactListElementResponseModel) GetIntermediateFileInfoOk() (*[]int32, bool)` + +GetIntermediateFileInfoOk returns a tuple with the IntermediateFileInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIntermediateFileInfo + +`func (o *V0ArtifactListElementResponseModel) SetIntermediateFileInfo(v []int32)` + +SetIntermediateFileInfo sets IntermediateFileInfo field to given value. + +### HasIntermediateFileInfo + +`func (o *V0ArtifactListElementResponseModel) HasIntermediateFileInfo() bool` + +HasIntermediateFileInfo returns a boolean if a field has been set. + +### GetIsPublicPageEnabled + +`func (o *V0ArtifactListElementResponseModel) GetIsPublicPageEnabled() bool` + +GetIsPublicPageEnabled returns the IsPublicPageEnabled field if non-nil, zero value otherwise. + +### GetIsPublicPageEnabledOk + +`func (o *V0ArtifactListElementResponseModel) GetIsPublicPageEnabledOk() (*bool, bool)` + +GetIsPublicPageEnabledOk returns a tuple with the IsPublicPageEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublicPageEnabled + +`func (o *V0ArtifactListElementResponseModel) SetIsPublicPageEnabled(v bool)` + +SetIsPublicPageEnabled sets IsPublicPageEnabled field to given value. + +### HasIsPublicPageEnabled + +`func (o *V0ArtifactListElementResponseModel) HasIsPublicPageEnabled() bool` + +HasIsPublicPageEnabled returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0ArtifactListElementResponseModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0ArtifactListElementResponseModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0ArtifactListElementResponseModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0ArtifactListElementResponseModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetTitle + +`func (o *V0ArtifactListElementResponseModel) GetTitle() NullsString` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *V0ArtifactListElementResponseModel) GetTitleOk() (*NullsString, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *V0ArtifactListElementResponseModel) SetTitle(v NullsString)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *V0ArtifactListElementResponseModel) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ArtifactListResponseModel.md b/go2/docs/V0ArtifactListResponseModel.md new file mode 100644 index 0000000..35923b1 --- /dev/null +++ b/go2/docs/V0ArtifactListResponseModel.md @@ -0,0 +1,82 @@ +# V0ArtifactListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0ArtifactListElementResponseModel**](V0ArtifactListElementResponseModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0ArtifactListResponseModel + +`func NewV0ArtifactListResponseModel() *V0ArtifactListResponseModel` + +NewV0ArtifactListResponseModel instantiates a new V0ArtifactListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ArtifactListResponseModelWithDefaults + +`func NewV0ArtifactListResponseModelWithDefaults() *V0ArtifactListResponseModel` + +NewV0ArtifactListResponseModelWithDefaults instantiates a new V0ArtifactListResponseModel object +This 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 *V0ArtifactListResponseModel) GetData() []V0ArtifactListElementResponseModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0ArtifactListResponseModel) GetDataOk() (*[]V0ArtifactListElementResponseModel, 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 *V0ArtifactListResponseModel) SetData(v []V0ArtifactListElementResponseModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0ArtifactListResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0ArtifactListResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0ArtifactListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0ArtifactListResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0ArtifactListResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ArtifactResponseItemModel.md b/go2/docs/V0ArtifactResponseItemModel.md new file mode 100644 index 0000000..ebb94f4 --- /dev/null +++ b/go2/docs/V0ArtifactResponseItemModel.md @@ -0,0 +1,264 @@ +# V0ArtifactResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ArtifactMeta** | Pointer to **[]int32** | | [optional] +**ArtifactType** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**ExpiringDownloadUrl** | Pointer to **string** | | [optional] +**FileSizeBytes** | Pointer to **int32** | | [optional] +**IntermediateFileInfo** | Pointer to **[]int32** | | [optional] +**IsPublicPageEnabled** | Pointer to **bool** | | [optional] +**PublicInstallPageUrl** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Title** | Pointer to [**NullsString**](NullsString.md) | | [optional] + +## Methods + +### NewV0ArtifactResponseItemModel + +`func NewV0ArtifactResponseItemModel() *V0ArtifactResponseItemModel` + +NewV0ArtifactResponseItemModel instantiates a new V0ArtifactResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ArtifactResponseItemModelWithDefaults + +`func NewV0ArtifactResponseItemModelWithDefaults() *V0ArtifactResponseItemModel` + +NewV0ArtifactResponseItemModelWithDefaults instantiates a new V0ArtifactResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArtifactMeta + +`func (o *V0ArtifactResponseItemModel) GetArtifactMeta() []int32` + +GetArtifactMeta returns the ArtifactMeta field if non-nil, zero value otherwise. + +### GetArtifactMetaOk + +`func (o *V0ArtifactResponseItemModel) GetArtifactMetaOk() (*[]int32, bool)` + +GetArtifactMetaOk returns a tuple with the ArtifactMeta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifactMeta + +`func (o *V0ArtifactResponseItemModel) SetArtifactMeta(v []int32)` + +SetArtifactMeta sets ArtifactMeta field to given value. + +### HasArtifactMeta + +`func (o *V0ArtifactResponseItemModel) HasArtifactMeta() bool` + +HasArtifactMeta returns a boolean if a field has been set. + +### GetArtifactType + +`func (o *V0ArtifactResponseItemModel) GetArtifactType() NullsString` + +GetArtifactType returns the ArtifactType field if non-nil, zero value otherwise. + +### GetArtifactTypeOk + +`func (o *V0ArtifactResponseItemModel) GetArtifactTypeOk() (*NullsString, bool)` + +GetArtifactTypeOk returns a tuple with the ArtifactType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifactType + +`func (o *V0ArtifactResponseItemModel) SetArtifactType(v NullsString)` + +SetArtifactType sets ArtifactType field to given value. + +### HasArtifactType + +`func (o *V0ArtifactResponseItemModel) HasArtifactType() bool` + +HasArtifactType returns a boolean if a field has been set. + +### GetExpiringDownloadUrl + +`func (o *V0ArtifactResponseItemModel) GetExpiringDownloadUrl() string` + +GetExpiringDownloadUrl returns the ExpiringDownloadUrl field if non-nil, zero value otherwise. + +### GetExpiringDownloadUrlOk + +`func (o *V0ArtifactResponseItemModel) GetExpiringDownloadUrlOk() (*string, bool)` + +GetExpiringDownloadUrlOk returns a tuple with the ExpiringDownloadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiringDownloadUrl + +`func (o *V0ArtifactResponseItemModel) SetExpiringDownloadUrl(v string)` + +SetExpiringDownloadUrl sets ExpiringDownloadUrl field to given value. + +### HasExpiringDownloadUrl + +`func (o *V0ArtifactResponseItemModel) HasExpiringDownloadUrl() bool` + +HasExpiringDownloadUrl returns a boolean if a field has been set. + +### GetFileSizeBytes + +`func (o *V0ArtifactResponseItemModel) GetFileSizeBytes() int32` + +GetFileSizeBytes returns the FileSizeBytes field if non-nil, zero value otherwise. + +### GetFileSizeBytesOk + +`func (o *V0ArtifactResponseItemModel) GetFileSizeBytesOk() (*int32, bool)` + +GetFileSizeBytesOk returns a tuple with the FileSizeBytes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileSizeBytes + +`func (o *V0ArtifactResponseItemModel) SetFileSizeBytes(v int32)` + +SetFileSizeBytes sets FileSizeBytes field to given value. + +### HasFileSizeBytes + +`func (o *V0ArtifactResponseItemModel) HasFileSizeBytes() bool` + +HasFileSizeBytes returns a boolean if a field has been set. + +### GetIntermediateFileInfo + +`func (o *V0ArtifactResponseItemModel) GetIntermediateFileInfo() []int32` + +GetIntermediateFileInfo returns the IntermediateFileInfo field if non-nil, zero value otherwise. + +### GetIntermediateFileInfoOk + +`func (o *V0ArtifactResponseItemModel) GetIntermediateFileInfoOk() (*[]int32, bool)` + +GetIntermediateFileInfoOk returns a tuple with the IntermediateFileInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIntermediateFileInfo + +`func (o *V0ArtifactResponseItemModel) SetIntermediateFileInfo(v []int32)` + +SetIntermediateFileInfo sets IntermediateFileInfo field to given value. + +### HasIntermediateFileInfo + +`func (o *V0ArtifactResponseItemModel) HasIntermediateFileInfo() bool` + +HasIntermediateFileInfo returns a boolean if a field has been set. + +### GetIsPublicPageEnabled + +`func (o *V0ArtifactResponseItemModel) GetIsPublicPageEnabled() bool` + +GetIsPublicPageEnabled returns the IsPublicPageEnabled field if non-nil, zero value otherwise. + +### GetIsPublicPageEnabledOk + +`func (o *V0ArtifactResponseItemModel) GetIsPublicPageEnabledOk() (*bool, bool)` + +GetIsPublicPageEnabledOk returns a tuple with the IsPublicPageEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublicPageEnabled + +`func (o *V0ArtifactResponseItemModel) SetIsPublicPageEnabled(v bool)` + +SetIsPublicPageEnabled sets IsPublicPageEnabled field to given value. + +### HasIsPublicPageEnabled + +`func (o *V0ArtifactResponseItemModel) HasIsPublicPageEnabled() bool` + +HasIsPublicPageEnabled returns a boolean if a field has been set. + +### GetPublicInstallPageUrl + +`func (o *V0ArtifactResponseItemModel) GetPublicInstallPageUrl() string` + +GetPublicInstallPageUrl returns the PublicInstallPageUrl field if non-nil, zero value otherwise. + +### GetPublicInstallPageUrlOk + +`func (o *V0ArtifactResponseItemModel) GetPublicInstallPageUrlOk() (*string, bool)` + +GetPublicInstallPageUrlOk returns a tuple with the PublicInstallPageUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicInstallPageUrl + +`func (o *V0ArtifactResponseItemModel) SetPublicInstallPageUrl(v string)` + +SetPublicInstallPageUrl sets PublicInstallPageUrl field to given value. + +### HasPublicInstallPageUrl + +`func (o *V0ArtifactResponseItemModel) HasPublicInstallPageUrl() bool` + +HasPublicInstallPageUrl returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0ArtifactResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0ArtifactResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0ArtifactResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0ArtifactResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetTitle + +`func (o *V0ArtifactResponseItemModel) GetTitle() NullsString` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *V0ArtifactResponseItemModel) GetTitleOk() (*NullsString, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *V0ArtifactResponseItemModel) SetTitle(v NullsString)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *V0ArtifactResponseItemModel) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ArtifactShowResponseModel.md b/go2/docs/V0ArtifactShowResponseModel.md new file mode 100644 index 0000000..62f2cfa --- /dev/null +++ b/go2/docs/V0ArtifactShowResponseModel.md @@ -0,0 +1,56 @@ +# V0ArtifactShowResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0ArtifactResponseItemModel**](V0ArtifactResponseItemModel.md) | | [optional] + +## Methods + +### NewV0ArtifactShowResponseModel + +`func NewV0ArtifactShowResponseModel() *V0ArtifactShowResponseModel` + +NewV0ArtifactShowResponseModel instantiates a new V0ArtifactShowResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ArtifactShowResponseModelWithDefaults + +`func NewV0ArtifactShowResponseModelWithDefaults() *V0ArtifactShowResponseModel` + +NewV0ArtifactShowResponseModelWithDefaults instantiates a new V0ArtifactShowResponseModel object +This 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 *V0ArtifactShowResponseModel) GetData() V0ArtifactResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0ArtifactShowResponseModel) GetDataOk() (*V0ArtifactResponseItemModel, 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 *V0ArtifactShowResponseModel) SetData(v V0ArtifactResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0ArtifactShowResponseModel) 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/go2/docs/V0ArtifactUpdateParams.md b/go2/docs/V0ArtifactUpdateParams.md new file mode 100644 index 0000000..7398997 --- /dev/null +++ b/go2/docs/V0ArtifactUpdateParams.md @@ -0,0 +1,51 @@ +# V0ArtifactUpdateParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsPublicPageEnabled** | **bool** | | + +## Methods + +### NewV0ArtifactUpdateParams + +`func NewV0ArtifactUpdateParams(isPublicPageEnabled bool, ) *V0ArtifactUpdateParams` + +NewV0ArtifactUpdateParams instantiates a new V0ArtifactUpdateParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ArtifactUpdateParamsWithDefaults + +`func NewV0ArtifactUpdateParamsWithDefaults() *V0ArtifactUpdateParams` + +NewV0ArtifactUpdateParamsWithDefaults instantiates a new V0ArtifactUpdateParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsPublicPageEnabled + +`func (o *V0ArtifactUpdateParams) GetIsPublicPageEnabled() bool` + +GetIsPublicPageEnabled returns the IsPublicPageEnabled field if non-nil, zero value otherwise. + +### GetIsPublicPageEnabledOk + +`func (o *V0ArtifactUpdateParams) GetIsPublicPageEnabledOk() (*bool, bool)` + +GetIsPublicPageEnabledOk returns a tuple with the IsPublicPageEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPublicPageEnabled + +`func (o *V0ArtifactUpdateParams) SetIsPublicPageEnabled(v bool)` + +SetIsPublicPageEnabled sets IsPublicPageEnabled 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/go2/docs/V0BitriseYMLConfigGetResponse.md b/go2/docs/V0BitriseYMLConfigGetResponse.md new file mode 100644 index 0000000..0142e57 --- /dev/null +++ b/go2/docs/V0BitriseYMLConfigGetResponse.md @@ -0,0 +1,56 @@ +# V0BitriseYMLConfigGetResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Location** | Pointer to [**WebsiteBitriseYMLLocation**](WebsiteBitriseYMLLocation.md) | | [optional] + +## Methods + +### NewV0BitriseYMLConfigGetResponse + +`func NewV0BitriseYMLConfigGetResponse() *V0BitriseYMLConfigGetResponse` + +NewV0BitriseYMLConfigGetResponse instantiates a new V0BitriseYMLConfigGetResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BitriseYMLConfigGetResponseWithDefaults + +`func NewV0BitriseYMLConfigGetResponseWithDefaults() *V0BitriseYMLConfigGetResponse` + +NewV0BitriseYMLConfigGetResponseWithDefaults instantiates a new V0BitriseYMLConfigGetResponse object +This 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 *V0BitriseYMLConfigGetResponse) GetLocation() WebsiteBitriseYMLLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *V0BitriseYMLConfigGetResponse) GetLocationOk() (*WebsiteBitriseYMLLocation, 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 *V0BitriseYMLConfigGetResponse) SetLocation(v WebsiteBitriseYMLLocation)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *V0BitriseYMLConfigGetResponse) 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/go2/docs/V0BitriseYMLConfigUpdateParams.md b/go2/docs/V0BitriseYMLConfigUpdateParams.md new file mode 100644 index 0000000..ad22df8 --- /dev/null +++ b/go2/docs/V0BitriseYMLConfigUpdateParams.md @@ -0,0 +1,56 @@ +# V0BitriseYMLConfigUpdateParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Location** | Pointer to [**WebsiteBitriseYMLLocation**](WebsiteBitriseYMLLocation.md) | | [optional] + +## Methods + +### NewV0BitriseYMLConfigUpdateParams + +`func NewV0BitriseYMLConfigUpdateParams() *V0BitriseYMLConfigUpdateParams` + +NewV0BitriseYMLConfigUpdateParams instantiates a new V0BitriseYMLConfigUpdateParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BitriseYMLConfigUpdateParamsWithDefaults + +`func NewV0BitriseYMLConfigUpdateParamsWithDefaults() *V0BitriseYMLConfigUpdateParams` + +NewV0BitriseYMLConfigUpdateParamsWithDefaults instantiates a new V0BitriseYMLConfigUpdateParams object +This 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 *V0BitriseYMLConfigUpdateParams) GetLocation() WebsiteBitriseYMLLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *V0BitriseYMLConfigUpdateParams) GetLocationOk() (*WebsiteBitriseYMLLocation, 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 *V0BitriseYMLConfigUpdateParams) SetLocation(v WebsiteBitriseYMLLocation)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *V0BitriseYMLConfigUpdateParams) 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/go2/docs/V0BranchListResponseModel.md b/go2/docs/V0BranchListResponseModel.md new file mode 100644 index 0000000..a5ea93e --- /dev/null +++ b/go2/docs/V0BranchListResponseModel.md @@ -0,0 +1,56 @@ +# V0BranchListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **[]string** | | [optional] + +## Methods + +### NewV0BranchListResponseModel + +`func NewV0BranchListResponseModel() *V0BranchListResponseModel` + +NewV0BranchListResponseModel instantiates a new V0BranchListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BranchListResponseModelWithDefaults + +`func NewV0BranchListResponseModelWithDefaults() *V0BranchListResponseModel` + +NewV0BranchListResponseModelWithDefaults instantiates a new V0BranchListResponseModel object +This 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 *V0BranchListResponseModel) GetData() []string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0BranchListResponseModel) GetDataOk() (*[]string, 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 *V0BranchListResponseModel) SetData(v []string)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0BranchListResponseModel) 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/go2/docs/V0BuildAbortParams.md b/go2/docs/V0BuildAbortParams.md new file mode 100644 index 0000000..b480a76 --- /dev/null +++ b/go2/docs/V0BuildAbortParams.md @@ -0,0 +1,93 @@ +# V0BuildAbortParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AbortReason** | **string** | | +**AbortWithSuccess** | **bool** | | +**SkipNotifications** | **bool** | | + +## Methods + +### NewV0BuildAbortParams + +`func NewV0BuildAbortParams(abortReason string, abortWithSuccess bool, skipNotifications bool, ) *V0BuildAbortParams` + +NewV0BuildAbortParams instantiates a new V0BuildAbortParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildAbortParamsWithDefaults + +`func NewV0BuildAbortParamsWithDefaults() *V0BuildAbortParams` + +NewV0BuildAbortParamsWithDefaults instantiates a new V0BuildAbortParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAbortReason + +`func (o *V0BuildAbortParams) GetAbortReason() string` + +GetAbortReason returns the AbortReason field if non-nil, zero value otherwise. + +### GetAbortReasonOk + +`func (o *V0BuildAbortParams) GetAbortReasonOk() (*string, bool)` + +GetAbortReasonOk returns a tuple with the AbortReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbortReason + +`func (o *V0BuildAbortParams) SetAbortReason(v string)` + +SetAbortReason sets AbortReason field to given value. + + +### GetAbortWithSuccess + +`func (o *V0BuildAbortParams) GetAbortWithSuccess() bool` + +GetAbortWithSuccess returns the AbortWithSuccess field if non-nil, zero value otherwise. + +### GetAbortWithSuccessOk + +`func (o *V0BuildAbortParams) GetAbortWithSuccessOk() (*bool, bool)` + +GetAbortWithSuccessOk returns a tuple with the AbortWithSuccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbortWithSuccess + +`func (o *V0BuildAbortParams) SetAbortWithSuccess(v bool)` + +SetAbortWithSuccess sets AbortWithSuccess field to given value. + + +### GetSkipNotifications + +`func (o *V0BuildAbortParams) GetSkipNotifications() bool` + +GetSkipNotifications returns the SkipNotifications field if non-nil, zero value otherwise. + +### GetSkipNotificationsOk + +`func (o *V0BuildAbortParams) GetSkipNotificationsOk() (*bool, bool)` + +GetSkipNotificationsOk returns a tuple with the SkipNotifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkipNotifications + +`func (o *V0BuildAbortParams) SetSkipNotifications(v bool)` + +SetSkipNotifications sets SkipNotifications 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/go2/docs/V0BuildAbortResponseModel.md b/go2/docs/V0BuildAbortResponseModel.md new file mode 100644 index 0000000..63e1739 --- /dev/null +++ b/go2/docs/V0BuildAbortResponseModel.md @@ -0,0 +1,56 @@ +# V0BuildAbortResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewV0BuildAbortResponseModel + +`func NewV0BuildAbortResponseModel() *V0BuildAbortResponseModel` + +NewV0BuildAbortResponseModel instantiates a new V0BuildAbortResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildAbortResponseModelWithDefaults + +`func NewV0BuildAbortResponseModelWithDefaults() *V0BuildAbortResponseModel` + +NewV0BuildAbortResponseModelWithDefaults instantiates a new V0BuildAbortResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *V0BuildAbortResponseModel) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0BuildAbortResponseModel) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0BuildAbortResponseModel) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0BuildAbortResponseModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0BuildCertificateListResponseModel.md b/go2/docs/V0BuildCertificateListResponseModel.md new file mode 100644 index 0000000..acbede1 --- /dev/null +++ b/go2/docs/V0BuildCertificateListResponseModel.md @@ -0,0 +1,82 @@ +# V0BuildCertificateListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0BuildCertificateResponseItemModel**](V0BuildCertificateResponseItemModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0BuildCertificateListResponseModel + +`func NewV0BuildCertificateListResponseModel() *V0BuildCertificateListResponseModel` + +NewV0BuildCertificateListResponseModel instantiates a new V0BuildCertificateListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildCertificateListResponseModelWithDefaults + +`func NewV0BuildCertificateListResponseModelWithDefaults() *V0BuildCertificateListResponseModel` + +NewV0BuildCertificateListResponseModelWithDefaults instantiates a new V0BuildCertificateListResponseModel object +This 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 *V0BuildCertificateListResponseModel) GetData() []V0BuildCertificateResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0BuildCertificateListResponseModel) GetDataOk() (*[]V0BuildCertificateResponseItemModel, 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 *V0BuildCertificateListResponseModel) SetData(v []V0BuildCertificateResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0BuildCertificateListResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0BuildCertificateListResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0BuildCertificateListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0BuildCertificateListResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0BuildCertificateListResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0BuildCertificateResponseItemModel.md b/go2/docs/V0BuildCertificateResponseItemModel.md new file mode 100644 index 0000000..b766ca9 --- /dev/null +++ b/go2/docs/V0BuildCertificateResponseItemModel.md @@ -0,0 +1,264 @@ +# V0BuildCertificateResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificatePassword** | Pointer to **string** | | [optional] +**DownloadUrl** | Pointer to **string** | | [optional] +**IsExpose** | Pointer to **bool** | | [optional] +**IsProtected** | Pointer to **bool** | | [optional] +**Processed** | Pointer to **bool** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**UploadFileName** | Pointer to **string** | | [optional] +**UploadFileSize** | Pointer to **int32** | | [optional] +**UploadUrl** | Pointer to **string** | | [optional] + +## Methods + +### NewV0BuildCertificateResponseItemModel + +`func NewV0BuildCertificateResponseItemModel() *V0BuildCertificateResponseItemModel` + +NewV0BuildCertificateResponseItemModel instantiates a new V0BuildCertificateResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildCertificateResponseItemModelWithDefaults + +`func NewV0BuildCertificateResponseItemModelWithDefaults() *V0BuildCertificateResponseItemModel` + +NewV0BuildCertificateResponseItemModelWithDefaults instantiates a new V0BuildCertificateResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificatePassword + +`func (o *V0BuildCertificateResponseItemModel) GetCertificatePassword() string` + +GetCertificatePassword returns the CertificatePassword field if non-nil, zero value otherwise. + +### GetCertificatePasswordOk + +`func (o *V0BuildCertificateResponseItemModel) GetCertificatePasswordOk() (*string, bool)` + +GetCertificatePasswordOk returns a tuple with the CertificatePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificatePassword + +`func (o *V0BuildCertificateResponseItemModel) SetCertificatePassword(v string)` + +SetCertificatePassword sets CertificatePassword field to given value. + +### HasCertificatePassword + +`func (o *V0BuildCertificateResponseItemModel) HasCertificatePassword() bool` + +HasCertificatePassword returns a boolean if a field has been set. + +### GetDownloadUrl + +`func (o *V0BuildCertificateResponseItemModel) GetDownloadUrl() string` + +GetDownloadUrl returns the DownloadUrl field if non-nil, zero value otherwise. + +### GetDownloadUrlOk + +`func (o *V0BuildCertificateResponseItemModel) GetDownloadUrlOk() (*string, bool)` + +GetDownloadUrlOk returns a tuple with the DownloadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownloadUrl + +`func (o *V0BuildCertificateResponseItemModel) SetDownloadUrl(v string)` + +SetDownloadUrl sets DownloadUrl field to given value. + +### HasDownloadUrl + +`func (o *V0BuildCertificateResponseItemModel) HasDownloadUrl() bool` + +HasDownloadUrl returns a boolean if a field has been set. + +### GetIsExpose + +`func (o *V0BuildCertificateResponseItemModel) GetIsExpose() bool` + +GetIsExpose returns the IsExpose field if non-nil, zero value otherwise. + +### GetIsExposeOk + +`func (o *V0BuildCertificateResponseItemModel) GetIsExposeOk() (*bool, bool)` + +GetIsExposeOk returns a tuple with the IsExpose field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsExpose + +`func (o *V0BuildCertificateResponseItemModel) SetIsExpose(v bool)` + +SetIsExpose sets IsExpose field to given value. + +### HasIsExpose + +`func (o *V0BuildCertificateResponseItemModel) HasIsExpose() bool` + +HasIsExpose returns a boolean if a field has been set. + +### GetIsProtected + +`func (o *V0BuildCertificateResponseItemModel) GetIsProtected() bool` + +GetIsProtected returns the IsProtected field if non-nil, zero value otherwise. + +### GetIsProtectedOk + +`func (o *V0BuildCertificateResponseItemModel) GetIsProtectedOk() (*bool, bool)` + +GetIsProtectedOk returns a tuple with the IsProtected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsProtected + +`func (o *V0BuildCertificateResponseItemModel) SetIsProtected(v bool)` + +SetIsProtected sets IsProtected field to given value. + +### HasIsProtected + +`func (o *V0BuildCertificateResponseItemModel) HasIsProtected() bool` + +HasIsProtected returns a boolean if a field has been set. + +### GetProcessed + +`func (o *V0BuildCertificateResponseItemModel) GetProcessed() bool` + +GetProcessed returns the Processed field if non-nil, zero value otherwise. + +### GetProcessedOk + +`func (o *V0BuildCertificateResponseItemModel) GetProcessedOk() (*bool, bool)` + +GetProcessedOk returns a tuple with the Processed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessed + +`func (o *V0BuildCertificateResponseItemModel) SetProcessed(v bool)` + +SetProcessed sets Processed field to given value. + +### HasProcessed + +`func (o *V0BuildCertificateResponseItemModel) HasProcessed() bool` + +HasProcessed returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0BuildCertificateResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0BuildCertificateResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0BuildCertificateResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0BuildCertificateResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetUploadFileName + +`func (o *V0BuildCertificateResponseItemModel) GetUploadFileName() string` + +GetUploadFileName returns the UploadFileName field if non-nil, zero value otherwise. + +### GetUploadFileNameOk + +`func (o *V0BuildCertificateResponseItemModel) GetUploadFileNameOk() (*string, bool)` + +GetUploadFileNameOk returns a tuple with the UploadFileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileName + +`func (o *V0BuildCertificateResponseItemModel) SetUploadFileName(v string)` + +SetUploadFileName sets UploadFileName field to given value. + +### HasUploadFileName + +`func (o *V0BuildCertificateResponseItemModel) HasUploadFileName() bool` + +HasUploadFileName returns a boolean if a field has been set. + +### GetUploadFileSize + +`func (o *V0BuildCertificateResponseItemModel) GetUploadFileSize() int32` + +GetUploadFileSize returns the UploadFileSize field if non-nil, zero value otherwise. + +### GetUploadFileSizeOk + +`func (o *V0BuildCertificateResponseItemModel) GetUploadFileSizeOk() (*int32, bool)` + +GetUploadFileSizeOk returns a tuple with the UploadFileSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileSize + +`func (o *V0BuildCertificateResponseItemModel) SetUploadFileSize(v int32)` + +SetUploadFileSize sets UploadFileSize field to given value. + +### HasUploadFileSize + +`func (o *V0BuildCertificateResponseItemModel) HasUploadFileSize() bool` + +HasUploadFileSize returns a boolean if a field has been set. + +### GetUploadUrl + +`func (o *V0BuildCertificateResponseItemModel) GetUploadUrl() string` + +GetUploadUrl returns the UploadUrl field if non-nil, zero value otherwise. + +### GetUploadUrlOk + +`func (o *V0BuildCertificateResponseItemModel) GetUploadUrlOk() (*string, bool)` + +GetUploadUrlOk returns a tuple with the UploadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadUrl + +`func (o *V0BuildCertificateResponseItemModel) SetUploadUrl(v string)` + +SetUploadUrl sets UploadUrl field to given value. + +### HasUploadUrl + +`func (o *V0BuildCertificateResponseItemModel) HasUploadUrl() bool` + +HasUploadUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0BuildCertificateResponseModel.md b/go2/docs/V0BuildCertificateResponseModel.md new file mode 100644 index 0000000..1526586 --- /dev/null +++ b/go2/docs/V0BuildCertificateResponseModel.md @@ -0,0 +1,56 @@ +# V0BuildCertificateResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0BuildCertificateResponseItemModel**](V0BuildCertificateResponseItemModel.md) | | [optional] + +## Methods + +### NewV0BuildCertificateResponseModel + +`func NewV0BuildCertificateResponseModel() *V0BuildCertificateResponseModel` + +NewV0BuildCertificateResponseModel instantiates a new V0BuildCertificateResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildCertificateResponseModelWithDefaults + +`func NewV0BuildCertificateResponseModelWithDefaults() *V0BuildCertificateResponseModel` + +NewV0BuildCertificateResponseModelWithDefaults instantiates a new V0BuildCertificateResponseModel object +This 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 *V0BuildCertificateResponseModel) GetData() V0BuildCertificateResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0BuildCertificateResponseModel) GetDataOk() (*V0BuildCertificateResponseItemModel, 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 *V0BuildCertificateResponseModel) SetData(v V0BuildCertificateResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0BuildCertificateResponseModel) 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/go2/docs/V0BuildCertificateUpdateParams.md b/go2/docs/V0BuildCertificateUpdateParams.md new file mode 100644 index 0000000..b77f770 --- /dev/null +++ b/go2/docs/V0BuildCertificateUpdateParams.md @@ -0,0 +1,134 @@ +# V0BuildCertificateUpdateParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CertificatePassword** | Pointer to **string** | | [optional] +**IsExpose** | Pointer to **bool** | | [optional] +**IsProtected** | Pointer to **bool** | | [optional] +**Processed** | Pointer to **bool** | | [optional] + +## Methods + +### NewV0BuildCertificateUpdateParams + +`func NewV0BuildCertificateUpdateParams() *V0BuildCertificateUpdateParams` + +NewV0BuildCertificateUpdateParams instantiates a new V0BuildCertificateUpdateParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildCertificateUpdateParamsWithDefaults + +`func NewV0BuildCertificateUpdateParamsWithDefaults() *V0BuildCertificateUpdateParams` + +NewV0BuildCertificateUpdateParamsWithDefaults instantiates a new V0BuildCertificateUpdateParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCertificatePassword + +`func (o *V0BuildCertificateUpdateParams) GetCertificatePassword() string` + +GetCertificatePassword returns the CertificatePassword field if non-nil, zero value otherwise. + +### GetCertificatePasswordOk + +`func (o *V0BuildCertificateUpdateParams) GetCertificatePasswordOk() (*string, bool)` + +GetCertificatePasswordOk returns a tuple with the CertificatePassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCertificatePassword + +`func (o *V0BuildCertificateUpdateParams) SetCertificatePassword(v string)` + +SetCertificatePassword sets CertificatePassword field to given value. + +### HasCertificatePassword + +`func (o *V0BuildCertificateUpdateParams) HasCertificatePassword() bool` + +HasCertificatePassword returns a boolean if a field has been set. + +### GetIsExpose + +`func (o *V0BuildCertificateUpdateParams) GetIsExpose() bool` + +GetIsExpose returns the IsExpose field if non-nil, zero value otherwise. + +### GetIsExposeOk + +`func (o *V0BuildCertificateUpdateParams) GetIsExposeOk() (*bool, bool)` + +GetIsExposeOk returns a tuple with the IsExpose field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsExpose + +`func (o *V0BuildCertificateUpdateParams) SetIsExpose(v bool)` + +SetIsExpose sets IsExpose field to given value. + +### HasIsExpose + +`func (o *V0BuildCertificateUpdateParams) HasIsExpose() bool` + +HasIsExpose returns a boolean if a field has been set. + +### GetIsProtected + +`func (o *V0BuildCertificateUpdateParams) GetIsProtected() bool` + +GetIsProtected returns the IsProtected field if non-nil, zero value otherwise. + +### GetIsProtectedOk + +`func (o *V0BuildCertificateUpdateParams) GetIsProtectedOk() (*bool, bool)` + +GetIsProtectedOk returns a tuple with the IsProtected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsProtected + +`func (o *V0BuildCertificateUpdateParams) SetIsProtected(v bool)` + +SetIsProtected sets IsProtected field to given value. + +### HasIsProtected + +`func (o *V0BuildCertificateUpdateParams) HasIsProtected() bool` + +HasIsProtected returns a boolean if a field has been set. + +### GetProcessed + +`func (o *V0BuildCertificateUpdateParams) GetProcessed() bool` + +GetProcessed returns the Processed field if non-nil, zero value otherwise. + +### GetProcessedOk + +`func (o *V0BuildCertificateUpdateParams) GetProcessedOk() (*bool, bool)` + +GetProcessedOk returns a tuple with the Processed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessed + +`func (o *V0BuildCertificateUpdateParams) SetProcessed(v bool)` + +SetProcessed sets Processed field to given value. + +### HasProcessed + +`func (o *V0BuildCertificateUpdateParams) HasProcessed() bool` + +HasProcessed returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0BuildCertificateUploadParams.md b/go2/docs/V0BuildCertificateUploadParams.md new file mode 100644 index 0000000..effcc11 --- /dev/null +++ b/go2/docs/V0BuildCertificateUploadParams.md @@ -0,0 +1,72 @@ +# V0BuildCertificateUploadParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UploadFileName** | **string** | | +**UploadFileSize** | **int32** | | + +## Methods + +### NewV0BuildCertificateUploadParams + +`func NewV0BuildCertificateUploadParams(uploadFileName string, uploadFileSize int32, ) *V0BuildCertificateUploadParams` + +NewV0BuildCertificateUploadParams instantiates a new V0BuildCertificateUploadParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildCertificateUploadParamsWithDefaults + +`func NewV0BuildCertificateUploadParamsWithDefaults() *V0BuildCertificateUploadParams` + +NewV0BuildCertificateUploadParamsWithDefaults instantiates a new V0BuildCertificateUploadParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUploadFileName + +`func (o *V0BuildCertificateUploadParams) GetUploadFileName() string` + +GetUploadFileName returns the UploadFileName field if non-nil, zero value otherwise. + +### GetUploadFileNameOk + +`func (o *V0BuildCertificateUploadParams) GetUploadFileNameOk() (*string, bool)` + +GetUploadFileNameOk returns a tuple with the UploadFileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileName + +`func (o *V0BuildCertificateUploadParams) SetUploadFileName(v string)` + +SetUploadFileName sets UploadFileName field to given value. + + +### GetUploadFileSize + +`func (o *V0BuildCertificateUploadParams) GetUploadFileSize() int32` + +GetUploadFileSize returns the UploadFileSize field if non-nil, zero value otherwise. + +### GetUploadFileSizeOk + +`func (o *V0BuildCertificateUploadParams) GetUploadFileSizeOk() (*int32, bool)` + +GetUploadFileSizeOk returns a tuple with the UploadFileSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileSize + +`func (o *V0BuildCertificateUploadParams) SetUploadFileSize(v int32)` + +SetUploadFileSize sets UploadFileSize 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/go2/docs/V0BuildListAllResponseItemModel.md b/go2/docs/V0BuildListAllResponseItemModel.md new file mode 100644 index 0000000..967f1e5 --- /dev/null +++ b/go2/docs/V0BuildListAllResponseItemModel.md @@ -0,0 +1,706 @@ +# V0BuildListAllResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AbortReason** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**Branch** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**BuildNumber** | Pointer to **int32** | | [optional] +**CommitHash** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**CommitMessage** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**CommitViewUrl** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**CreditCost** | Pointer to [**NullsInt64**](NullsInt64.md) | | [optional] +**EnvironmentPrepareFinishedAt** | Pointer to **string** | | [optional] +**FinishedAt** | Pointer to **string** | | [optional] +**IsOnHold** | Pointer to **bool** | | [optional] +**IsProcessed** | Pointer to **bool** | | [optional] +**MachineTypeId** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**OriginalBuildParams** | Pointer to **[]int32** | | [optional] +**PullRequestId** | Pointer to **int32** | | [optional] +**PullRequestTargetBranch** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**PullRequestViewUrl** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**Repository** | Pointer to [**V0AppResponseItemModel**](V0AppResponseItemModel.md) | | [optional] +**Slug** | Pointer to **string** | | [optional] +**StackIdentifier** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**StartedOnWorkerAt** | Pointer to **string** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**StatusText** | Pointer to **string** | | [optional] +**Tag** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**TriggeredAt** | Pointer to **string** | | [optional] +**TriggeredBy** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**TriggeredWorkflow** | Pointer to **string** | | [optional] + +## Methods + +### NewV0BuildListAllResponseItemModel + +`func NewV0BuildListAllResponseItemModel() *V0BuildListAllResponseItemModel` + +NewV0BuildListAllResponseItemModel instantiates a new V0BuildListAllResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildListAllResponseItemModelWithDefaults + +`func NewV0BuildListAllResponseItemModelWithDefaults() *V0BuildListAllResponseItemModel` + +NewV0BuildListAllResponseItemModelWithDefaults instantiates a new V0BuildListAllResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAbortReason + +`func (o *V0BuildListAllResponseItemModel) GetAbortReason() NullsString` + +GetAbortReason returns the AbortReason field if non-nil, zero value otherwise. + +### GetAbortReasonOk + +`func (o *V0BuildListAllResponseItemModel) GetAbortReasonOk() (*NullsString, bool)` + +GetAbortReasonOk returns a tuple with the AbortReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbortReason + +`func (o *V0BuildListAllResponseItemModel) SetAbortReason(v NullsString)` + +SetAbortReason sets AbortReason field to given value. + +### HasAbortReason + +`func (o *V0BuildListAllResponseItemModel) HasAbortReason() bool` + +HasAbortReason returns a boolean if a field has been set. + +### GetBranch + +`func (o *V0BuildListAllResponseItemModel) GetBranch() NullsString` + +GetBranch returns the Branch field if non-nil, zero value otherwise. + +### GetBranchOk + +`func (o *V0BuildListAllResponseItemModel) GetBranchOk() (*NullsString, bool)` + +GetBranchOk returns a tuple with the Branch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranch + +`func (o *V0BuildListAllResponseItemModel) SetBranch(v NullsString)` + +SetBranch sets Branch field to given value. + +### HasBranch + +`func (o *V0BuildListAllResponseItemModel) HasBranch() bool` + +HasBranch returns a boolean if a field has been set. + +### GetBuildNumber + +`func (o *V0BuildListAllResponseItemModel) GetBuildNumber() int32` + +GetBuildNumber returns the BuildNumber field if non-nil, zero value otherwise. + +### GetBuildNumberOk + +`func (o *V0BuildListAllResponseItemModel) GetBuildNumberOk() (*int32, bool)` + +GetBuildNumberOk returns a tuple with the BuildNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildNumber + +`func (o *V0BuildListAllResponseItemModel) SetBuildNumber(v int32)` + +SetBuildNumber sets BuildNumber field to given value. + +### HasBuildNumber + +`func (o *V0BuildListAllResponseItemModel) HasBuildNumber() bool` + +HasBuildNumber returns a boolean if a field has been set. + +### GetCommitHash + +`func (o *V0BuildListAllResponseItemModel) GetCommitHash() NullsString` + +GetCommitHash returns the CommitHash field if non-nil, zero value otherwise. + +### GetCommitHashOk + +`func (o *V0BuildListAllResponseItemModel) GetCommitHashOk() (*NullsString, bool)` + +GetCommitHashOk returns a tuple with the CommitHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitHash + +`func (o *V0BuildListAllResponseItemModel) SetCommitHash(v NullsString)` + +SetCommitHash sets CommitHash field to given value. + +### HasCommitHash + +`func (o *V0BuildListAllResponseItemModel) HasCommitHash() bool` + +HasCommitHash returns a boolean if a field has been set. + +### GetCommitMessage + +`func (o *V0BuildListAllResponseItemModel) GetCommitMessage() NullsString` + +GetCommitMessage returns the CommitMessage field if non-nil, zero value otherwise. + +### GetCommitMessageOk + +`func (o *V0BuildListAllResponseItemModel) GetCommitMessageOk() (*NullsString, bool)` + +GetCommitMessageOk returns a tuple with the CommitMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitMessage + +`func (o *V0BuildListAllResponseItemModel) SetCommitMessage(v NullsString)` + +SetCommitMessage sets CommitMessage field to given value. + +### HasCommitMessage + +`func (o *V0BuildListAllResponseItemModel) HasCommitMessage() bool` + +HasCommitMessage returns a boolean if a field has been set. + +### GetCommitViewUrl + +`func (o *V0BuildListAllResponseItemModel) GetCommitViewUrl() NullsString` + +GetCommitViewUrl returns the CommitViewUrl field if non-nil, zero value otherwise. + +### GetCommitViewUrlOk + +`func (o *V0BuildListAllResponseItemModel) GetCommitViewUrlOk() (*NullsString, bool)` + +GetCommitViewUrlOk returns a tuple with the CommitViewUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitViewUrl + +`func (o *V0BuildListAllResponseItemModel) SetCommitViewUrl(v NullsString)` + +SetCommitViewUrl sets CommitViewUrl field to given value. + +### HasCommitViewUrl + +`func (o *V0BuildListAllResponseItemModel) HasCommitViewUrl() bool` + +HasCommitViewUrl returns a boolean if a field has been set. + +### GetCreditCost + +`func (o *V0BuildListAllResponseItemModel) GetCreditCost() NullsInt64` + +GetCreditCost returns the CreditCost field if non-nil, zero value otherwise. + +### GetCreditCostOk + +`func (o *V0BuildListAllResponseItemModel) GetCreditCostOk() (*NullsInt64, bool)` + +GetCreditCostOk returns a tuple with the CreditCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreditCost + +`func (o *V0BuildListAllResponseItemModel) SetCreditCost(v NullsInt64)` + +SetCreditCost sets CreditCost field to given value. + +### HasCreditCost + +`func (o *V0BuildListAllResponseItemModel) HasCreditCost() bool` + +HasCreditCost returns a boolean if a field has been set. + +### GetEnvironmentPrepareFinishedAt + +`func (o *V0BuildListAllResponseItemModel) GetEnvironmentPrepareFinishedAt() string` + +GetEnvironmentPrepareFinishedAt returns the EnvironmentPrepareFinishedAt field if non-nil, zero value otherwise. + +### GetEnvironmentPrepareFinishedAtOk + +`func (o *V0BuildListAllResponseItemModel) GetEnvironmentPrepareFinishedAtOk() (*string, bool)` + +GetEnvironmentPrepareFinishedAtOk returns a tuple with the EnvironmentPrepareFinishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentPrepareFinishedAt + +`func (o *V0BuildListAllResponseItemModel) SetEnvironmentPrepareFinishedAt(v string)` + +SetEnvironmentPrepareFinishedAt sets EnvironmentPrepareFinishedAt field to given value. + +### HasEnvironmentPrepareFinishedAt + +`func (o *V0BuildListAllResponseItemModel) HasEnvironmentPrepareFinishedAt() bool` + +HasEnvironmentPrepareFinishedAt returns a boolean if a field has been set. + +### GetFinishedAt + +`func (o *V0BuildListAllResponseItemModel) GetFinishedAt() string` + +GetFinishedAt returns the FinishedAt field if non-nil, zero value otherwise. + +### GetFinishedAtOk + +`func (o *V0BuildListAllResponseItemModel) GetFinishedAtOk() (*string, bool)` + +GetFinishedAtOk returns a tuple with the FinishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFinishedAt + +`func (o *V0BuildListAllResponseItemModel) SetFinishedAt(v string)` + +SetFinishedAt sets FinishedAt field to given value. + +### HasFinishedAt + +`func (o *V0BuildListAllResponseItemModel) HasFinishedAt() bool` + +HasFinishedAt returns a boolean if a field has been set. + +### GetIsOnHold + +`func (o *V0BuildListAllResponseItemModel) GetIsOnHold() bool` + +GetIsOnHold returns the IsOnHold field if non-nil, zero value otherwise. + +### GetIsOnHoldOk + +`func (o *V0BuildListAllResponseItemModel) GetIsOnHoldOk() (*bool, bool)` + +GetIsOnHoldOk returns a tuple with the IsOnHold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsOnHold + +`func (o *V0BuildListAllResponseItemModel) SetIsOnHold(v bool)` + +SetIsOnHold sets IsOnHold field to given value. + +### HasIsOnHold + +`func (o *V0BuildListAllResponseItemModel) HasIsOnHold() bool` + +HasIsOnHold returns a boolean if a field has been set. + +### GetIsProcessed + +`func (o *V0BuildListAllResponseItemModel) GetIsProcessed() bool` + +GetIsProcessed returns the IsProcessed field if non-nil, zero value otherwise. + +### GetIsProcessedOk + +`func (o *V0BuildListAllResponseItemModel) GetIsProcessedOk() (*bool, bool)` + +GetIsProcessedOk returns a tuple with the IsProcessed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsProcessed + +`func (o *V0BuildListAllResponseItemModel) SetIsProcessed(v bool)` + +SetIsProcessed sets IsProcessed field to given value. + +### HasIsProcessed + +`func (o *V0BuildListAllResponseItemModel) HasIsProcessed() bool` + +HasIsProcessed returns a boolean if a field has been set. + +### GetMachineTypeId + +`func (o *V0BuildListAllResponseItemModel) GetMachineTypeId() NullsString` + +GetMachineTypeId returns the MachineTypeId field if non-nil, zero value otherwise. + +### GetMachineTypeIdOk + +`func (o *V0BuildListAllResponseItemModel) GetMachineTypeIdOk() (*NullsString, bool)` + +GetMachineTypeIdOk returns a tuple with the MachineTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMachineTypeId + +`func (o *V0BuildListAllResponseItemModel) SetMachineTypeId(v NullsString)` + +SetMachineTypeId sets MachineTypeId field to given value. + +### HasMachineTypeId + +`func (o *V0BuildListAllResponseItemModel) HasMachineTypeId() bool` + +HasMachineTypeId returns a boolean if a field has been set. + +### GetOriginalBuildParams + +`func (o *V0BuildListAllResponseItemModel) GetOriginalBuildParams() []int32` + +GetOriginalBuildParams returns the OriginalBuildParams field if non-nil, zero value otherwise. + +### GetOriginalBuildParamsOk + +`func (o *V0BuildListAllResponseItemModel) GetOriginalBuildParamsOk() (*[]int32, bool)` + +GetOriginalBuildParamsOk returns a tuple with the OriginalBuildParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalBuildParams + +`func (o *V0BuildListAllResponseItemModel) SetOriginalBuildParams(v []int32)` + +SetOriginalBuildParams sets OriginalBuildParams field to given value. + +### HasOriginalBuildParams + +`func (o *V0BuildListAllResponseItemModel) HasOriginalBuildParams() bool` + +HasOriginalBuildParams returns a boolean if a field has been set. + +### GetPullRequestId + +`func (o *V0BuildListAllResponseItemModel) GetPullRequestId() int32` + +GetPullRequestId returns the PullRequestId field if non-nil, zero value otherwise. + +### GetPullRequestIdOk + +`func (o *V0BuildListAllResponseItemModel) GetPullRequestIdOk() (*int32, bool)` + +GetPullRequestIdOk returns a tuple with the PullRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestId + +`func (o *V0BuildListAllResponseItemModel) SetPullRequestId(v int32)` + +SetPullRequestId sets PullRequestId field to given value. + +### HasPullRequestId + +`func (o *V0BuildListAllResponseItemModel) HasPullRequestId() bool` + +HasPullRequestId returns a boolean if a field has been set. + +### GetPullRequestTargetBranch + +`func (o *V0BuildListAllResponseItemModel) GetPullRequestTargetBranch() NullsString` + +GetPullRequestTargetBranch returns the PullRequestTargetBranch field if non-nil, zero value otherwise. + +### GetPullRequestTargetBranchOk + +`func (o *V0BuildListAllResponseItemModel) GetPullRequestTargetBranchOk() (*NullsString, bool)` + +GetPullRequestTargetBranchOk returns a tuple with the PullRequestTargetBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestTargetBranch + +`func (o *V0BuildListAllResponseItemModel) SetPullRequestTargetBranch(v NullsString)` + +SetPullRequestTargetBranch sets PullRequestTargetBranch field to given value. + +### HasPullRequestTargetBranch + +`func (o *V0BuildListAllResponseItemModel) HasPullRequestTargetBranch() bool` + +HasPullRequestTargetBranch returns a boolean if a field has been set. + +### GetPullRequestViewUrl + +`func (o *V0BuildListAllResponseItemModel) GetPullRequestViewUrl() NullsString` + +GetPullRequestViewUrl returns the PullRequestViewUrl field if non-nil, zero value otherwise. + +### GetPullRequestViewUrlOk + +`func (o *V0BuildListAllResponseItemModel) GetPullRequestViewUrlOk() (*NullsString, bool)` + +GetPullRequestViewUrlOk returns a tuple with the PullRequestViewUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestViewUrl + +`func (o *V0BuildListAllResponseItemModel) SetPullRequestViewUrl(v NullsString)` + +SetPullRequestViewUrl sets PullRequestViewUrl field to given value. + +### HasPullRequestViewUrl + +`func (o *V0BuildListAllResponseItemModel) HasPullRequestViewUrl() bool` + +HasPullRequestViewUrl returns a boolean if a field has been set. + +### GetRepository + +`func (o *V0BuildListAllResponseItemModel) GetRepository() V0AppResponseItemModel` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *V0BuildListAllResponseItemModel) GetRepositoryOk() (*V0AppResponseItemModel, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *V0BuildListAllResponseItemModel) SetRepository(v V0AppResponseItemModel)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *V0BuildListAllResponseItemModel) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0BuildListAllResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0BuildListAllResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0BuildListAllResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0BuildListAllResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetStackIdentifier + +`func (o *V0BuildListAllResponseItemModel) GetStackIdentifier() NullsString` + +GetStackIdentifier returns the StackIdentifier field if non-nil, zero value otherwise. + +### GetStackIdentifierOk + +`func (o *V0BuildListAllResponseItemModel) GetStackIdentifierOk() (*NullsString, bool)` + +GetStackIdentifierOk returns a tuple with the StackIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStackIdentifier + +`func (o *V0BuildListAllResponseItemModel) SetStackIdentifier(v NullsString)` + +SetStackIdentifier sets StackIdentifier field to given value. + +### HasStackIdentifier + +`func (o *V0BuildListAllResponseItemModel) HasStackIdentifier() bool` + +HasStackIdentifier returns a boolean if a field has been set. + +### GetStartedOnWorkerAt + +`func (o *V0BuildListAllResponseItemModel) GetStartedOnWorkerAt() string` + +GetStartedOnWorkerAt returns the StartedOnWorkerAt field if non-nil, zero value otherwise. + +### GetStartedOnWorkerAtOk + +`func (o *V0BuildListAllResponseItemModel) GetStartedOnWorkerAtOk() (*string, bool)` + +GetStartedOnWorkerAtOk returns a tuple with the StartedOnWorkerAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartedOnWorkerAt + +`func (o *V0BuildListAllResponseItemModel) SetStartedOnWorkerAt(v string)` + +SetStartedOnWorkerAt sets StartedOnWorkerAt field to given value. + +### HasStartedOnWorkerAt + +`func (o *V0BuildListAllResponseItemModel) HasStartedOnWorkerAt() bool` + +HasStartedOnWorkerAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0BuildListAllResponseItemModel) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0BuildListAllResponseItemModel) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0BuildListAllResponseItemModel) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0BuildListAllResponseItemModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatusText + +`func (o *V0BuildListAllResponseItemModel) GetStatusText() string` + +GetStatusText returns the StatusText field if non-nil, zero value otherwise. + +### GetStatusTextOk + +`func (o *V0BuildListAllResponseItemModel) GetStatusTextOk() (*string, bool)` + +GetStatusTextOk returns a tuple with the StatusText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusText + +`func (o *V0BuildListAllResponseItemModel) SetStatusText(v string)` + +SetStatusText sets StatusText field to given value. + +### HasStatusText + +`func (o *V0BuildListAllResponseItemModel) HasStatusText() bool` + +HasStatusText returns a boolean if a field has been set. + +### GetTag + +`func (o *V0BuildListAllResponseItemModel) GetTag() NullsString` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *V0BuildListAllResponseItemModel) GetTagOk() (*NullsString, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *V0BuildListAllResponseItemModel) SetTag(v NullsString)` + +SetTag sets Tag field to given value. + +### HasTag + +`func (o *V0BuildListAllResponseItemModel) HasTag() bool` + +HasTag returns a boolean if a field has been set. + +### GetTriggeredAt + +`func (o *V0BuildListAllResponseItemModel) GetTriggeredAt() string` + +GetTriggeredAt returns the TriggeredAt field if non-nil, zero value otherwise. + +### GetTriggeredAtOk + +`func (o *V0BuildListAllResponseItemModel) GetTriggeredAtOk() (*string, bool)` + +GetTriggeredAtOk returns a tuple with the TriggeredAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredAt + +`func (o *V0BuildListAllResponseItemModel) SetTriggeredAt(v string)` + +SetTriggeredAt sets TriggeredAt field to given value. + +### HasTriggeredAt + +`func (o *V0BuildListAllResponseItemModel) HasTriggeredAt() bool` + +HasTriggeredAt returns a boolean if a field has been set. + +### GetTriggeredBy + +`func (o *V0BuildListAllResponseItemModel) GetTriggeredBy() NullsString` + +GetTriggeredBy returns the TriggeredBy field if non-nil, zero value otherwise. + +### GetTriggeredByOk + +`func (o *V0BuildListAllResponseItemModel) GetTriggeredByOk() (*NullsString, bool)` + +GetTriggeredByOk returns a tuple with the TriggeredBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredBy + +`func (o *V0BuildListAllResponseItemModel) SetTriggeredBy(v NullsString)` + +SetTriggeredBy sets TriggeredBy field to given value. + +### HasTriggeredBy + +`func (o *V0BuildListAllResponseItemModel) HasTriggeredBy() bool` + +HasTriggeredBy returns a boolean if a field has been set. + +### GetTriggeredWorkflow + +`func (o *V0BuildListAllResponseItemModel) GetTriggeredWorkflow() string` + +GetTriggeredWorkflow returns the TriggeredWorkflow field if non-nil, zero value otherwise. + +### GetTriggeredWorkflowOk + +`func (o *V0BuildListAllResponseItemModel) GetTriggeredWorkflowOk() (*string, bool)` + +GetTriggeredWorkflowOk returns a tuple with the TriggeredWorkflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredWorkflow + +`func (o *V0BuildListAllResponseItemModel) SetTriggeredWorkflow(v string)` + +SetTriggeredWorkflow sets TriggeredWorkflow field to given value. + +### HasTriggeredWorkflow + +`func (o *V0BuildListAllResponseItemModel) HasTriggeredWorkflow() bool` + +HasTriggeredWorkflow returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0BuildListAllResponseModel.md b/go2/docs/V0BuildListAllResponseModel.md new file mode 100644 index 0000000..e39116a --- /dev/null +++ b/go2/docs/V0BuildListAllResponseModel.md @@ -0,0 +1,82 @@ +# V0BuildListAllResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0BuildListAllResponseItemModel**](V0BuildListAllResponseItemModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0BuildListAllResponseModel + +`func NewV0BuildListAllResponseModel() *V0BuildListAllResponseModel` + +NewV0BuildListAllResponseModel instantiates a new V0BuildListAllResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildListAllResponseModelWithDefaults + +`func NewV0BuildListAllResponseModelWithDefaults() *V0BuildListAllResponseModel` + +NewV0BuildListAllResponseModelWithDefaults instantiates a new V0BuildListAllResponseModel object +This 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 *V0BuildListAllResponseModel) GetData() []V0BuildListAllResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0BuildListAllResponseModel) GetDataOk() (*[]V0BuildListAllResponseItemModel, 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 *V0BuildListAllResponseModel) SetData(v []V0BuildListAllResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0BuildListAllResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0BuildListAllResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0BuildListAllResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0BuildListAllResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0BuildListAllResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0BuildListResponseModel.md b/go2/docs/V0BuildListResponseModel.md new file mode 100644 index 0000000..5f01cee --- /dev/null +++ b/go2/docs/V0BuildListResponseModel.md @@ -0,0 +1,82 @@ +# V0BuildListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0BuildResponseItemModel**](V0BuildResponseItemModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0BuildListResponseModel + +`func NewV0BuildListResponseModel() *V0BuildListResponseModel` + +NewV0BuildListResponseModel instantiates a new V0BuildListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildListResponseModelWithDefaults + +`func NewV0BuildListResponseModelWithDefaults() *V0BuildListResponseModel` + +NewV0BuildListResponseModelWithDefaults instantiates a new V0BuildListResponseModel object +This 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 *V0BuildListResponseModel) GetData() []V0BuildResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0BuildListResponseModel) GetDataOk() (*[]V0BuildResponseItemModel, 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 *V0BuildListResponseModel) SetData(v []V0BuildResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0BuildListResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0BuildListResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0BuildListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0BuildListResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0BuildListResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0BuildParamsEnvironment.md b/go2/docs/V0BuildParamsEnvironment.md new file mode 100644 index 0000000..dc4aef5 --- /dev/null +++ b/go2/docs/V0BuildParamsEnvironment.md @@ -0,0 +1,108 @@ +# V0BuildParamsEnvironment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsExpand** | Pointer to **bool** | | [optional] +**MappedTo** | Pointer to **string** | | [optional] +**Value** | Pointer to **string** | | [optional] + +## Methods + +### NewV0BuildParamsEnvironment + +`func NewV0BuildParamsEnvironment() *V0BuildParamsEnvironment` + +NewV0BuildParamsEnvironment instantiates a new V0BuildParamsEnvironment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildParamsEnvironmentWithDefaults + +`func NewV0BuildParamsEnvironmentWithDefaults() *V0BuildParamsEnvironment` + +NewV0BuildParamsEnvironmentWithDefaults instantiates a new V0BuildParamsEnvironment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsExpand + +`func (o *V0BuildParamsEnvironment) GetIsExpand() bool` + +GetIsExpand returns the IsExpand field if non-nil, zero value otherwise. + +### GetIsExpandOk + +`func (o *V0BuildParamsEnvironment) GetIsExpandOk() (*bool, bool)` + +GetIsExpandOk returns a tuple with the IsExpand field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsExpand + +`func (o *V0BuildParamsEnvironment) SetIsExpand(v bool)` + +SetIsExpand sets IsExpand field to given value. + +### HasIsExpand + +`func (o *V0BuildParamsEnvironment) HasIsExpand() bool` + +HasIsExpand returns a boolean if a field has been set. + +### GetMappedTo + +`func (o *V0BuildParamsEnvironment) GetMappedTo() string` + +GetMappedTo returns the MappedTo field if non-nil, zero value otherwise. + +### GetMappedToOk + +`func (o *V0BuildParamsEnvironment) GetMappedToOk() (*string, bool)` + +GetMappedToOk returns a tuple with the MappedTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMappedTo + +`func (o *V0BuildParamsEnvironment) SetMappedTo(v string)` + +SetMappedTo sets MappedTo field to given value. + +### HasMappedTo + +`func (o *V0BuildParamsEnvironment) HasMappedTo() bool` + +HasMappedTo returns a boolean if a field has been set. + +### GetValue + +`func (o *V0BuildParamsEnvironment) GetValue() string` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *V0BuildParamsEnvironment) 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 *V0BuildParamsEnvironment) SetValue(v string)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *V0BuildParamsEnvironment) 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/go2/docs/V0BuildRequestListResponseModel.md b/go2/docs/V0BuildRequestListResponseModel.md new file mode 100644 index 0000000..69b9fb0 --- /dev/null +++ b/go2/docs/V0BuildRequestListResponseModel.md @@ -0,0 +1,56 @@ +# V0BuildRequestListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0BuildRequestResponseItemModel**](V0BuildRequestResponseItemModel.md) | | [optional] + +## Methods + +### NewV0BuildRequestListResponseModel + +`func NewV0BuildRequestListResponseModel() *V0BuildRequestListResponseModel` + +NewV0BuildRequestListResponseModel instantiates a new V0BuildRequestListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildRequestListResponseModelWithDefaults + +`func NewV0BuildRequestListResponseModelWithDefaults() *V0BuildRequestListResponseModel` + +NewV0BuildRequestListResponseModelWithDefaults instantiates a new V0BuildRequestListResponseModel object +This 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 *V0BuildRequestListResponseModel) GetData() []V0BuildRequestResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0BuildRequestListResponseModel) GetDataOk() (*[]V0BuildRequestResponseItemModel, 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 *V0BuildRequestListResponseModel) SetData(v []V0BuildRequestResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0BuildRequestListResponseModel) 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/go2/docs/V0BuildRequestResponseItemModel.md b/go2/docs/V0BuildRequestResponseItemModel.md new file mode 100644 index 0000000..c84fc3e --- /dev/null +++ b/go2/docs/V0BuildRequestResponseItemModel.md @@ -0,0 +1,134 @@ +# V0BuildRequestResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuildParams** | Pointer to **[]int32** | | [optional] +**CreatedAt** | Pointer to **string** | | [optional] +**PullRequestUrl** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] + +## Methods + +### NewV0BuildRequestResponseItemModel + +`func NewV0BuildRequestResponseItemModel() *V0BuildRequestResponseItemModel` + +NewV0BuildRequestResponseItemModel instantiates a new V0BuildRequestResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildRequestResponseItemModelWithDefaults + +`func NewV0BuildRequestResponseItemModelWithDefaults() *V0BuildRequestResponseItemModel` + +NewV0BuildRequestResponseItemModelWithDefaults instantiates a new V0BuildRequestResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuildParams + +`func (o *V0BuildRequestResponseItemModel) GetBuildParams() []int32` + +GetBuildParams returns the BuildParams field if non-nil, zero value otherwise. + +### GetBuildParamsOk + +`func (o *V0BuildRequestResponseItemModel) GetBuildParamsOk() (*[]int32, bool)` + +GetBuildParamsOk returns a tuple with the BuildParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildParams + +`func (o *V0BuildRequestResponseItemModel) SetBuildParams(v []int32)` + +SetBuildParams sets BuildParams field to given value. + +### HasBuildParams + +`func (o *V0BuildRequestResponseItemModel) HasBuildParams() bool` + +HasBuildParams returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *V0BuildRequestResponseItemModel) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *V0BuildRequestResponseItemModel) GetCreatedAtOk() (*string, 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 *V0BuildRequestResponseItemModel) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *V0BuildRequestResponseItemModel) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetPullRequestUrl + +`func (o *V0BuildRequestResponseItemModel) GetPullRequestUrl() string` + +GetPullRequestUrl returns the PullRequestUrl field if non-nil, zero value otherwise. + +### GetPullRequestUrlOk + +`func (o *V0BuildRequestResponseItemModel) GetPullRequestUrlOk() (*string, bool)` + +GetPullRequestUrlOk returns a tuple with the PullRequestUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestUrl + +`func (o *V0BuildRequestResponseItemModel) SetPullRequestUrl(v string)` + +SetPullRequestUrl sets PullRequestUrl field to given value. + +### HasPullRequestUrl + +`func (o *V0BuildRequestResponseItemModel) HasPullRequestUrl() bool` + +HasPullRequestUrl returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0BuildRequestResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0BuildRequestResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0BuildRequestResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0BuildRequestResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0BuildRequestUpdateParams.md b/go2/docs/V0BuildRequestUpdateParams.md new file mode 100644 index 0000000..a8610b1 --- /dev/null +++ b/go2/docs/V0BuildRequestUpdateParams.md @@ -0,0 +1,51 @@ +# V0BuildRequestUpdateParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsApproved** | **bool** | | + +## Methods + +### NewV0BuildRequestUpdateParams + +`func NewV0BuildRequestUpdateParams(isApproved bool, ) *V0BuildRequestUpdateParams` + +NewV0BuildRequestUpdateParams instantiates a new V0BuildRequestUpdateParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildRequestUpdateParamsWithDefaults + +`func NewV0BuildRequestUpdateParamsWithDefaults() *V0BuildRequestUpdateParams` + +NewV0BuildRequestUpdateParamsWithDefaults instantiates a new V0BuildRequestUpdateParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsApproved + +`func (o *V0BuildRequestUpdateParams) GetIsApproved() bool` + +GetIsApproved returns the IsApproved field if non-nil, zero value otherwise. + +### GetIsApprovedOk + +`func (o *V0BuildRequestUpdateParams) GetIsApprovedOk() (*bool, bool)` + +GetIsApprovedOk returns a tuple with the IsApproved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsApproved + +`func (o *V0BuildRequestUpdateParams) SetIsApproved(v bool)` + +SetIsApproved sets IsApproved 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/go2/docs/V0BuildRequestUpdateResponseModel.md b/go2/docs/V0BuildRequestUpdateResponseModel.md new file mode 100644 index 0000000..f31ff72 --- /dev/null +++ b/go2/docs/V0BuildRequestUpdateResponseModel.md @@ -0,0 +1,56 @@ +# V0BuildRequestUpdateResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0BuildRequestResponseItemModel**](V0BuildRequestResponseItemModel.md) | | [optional] + +## Methods + +### NewV0BuildRequestUpdateResponseModel + +`func NewV0BuildRequestUpdateResponseModel() *V0BuildRequestUpdateResponseModel` + +NewV0BuildRequestUpdateResponseModel instantiates a new V0BuildRequestUpdateResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildRequestUpdateResponseModelWithDefaults + +`func NewV0BuildRequestUpdateResponseModelWithDefaults() *V0BuildRequestUpdateResponseModel` + +NewV0BuildRequestUpdateResponseModelWithDefaults instantiates a new V0BuildRequestUpdateResponseModel object +This 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 *V0BuildRequestUpdateResponseModel) GetData() V0BuildRequestResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0BuildRequestUpdateResponseModel) GetDataOk() (*V0BuildRequestResponseItemModel, 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 *V0BuildRequestUpdateResponseModel) SetData(v V0BuildRequestResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0BuildRequestUpdateResponseModel) 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/go2/docs/V0BuildResponseItemModel.md b/go2/docs/V0BuildResponseItemModel.md new file mode 100644 index 0000000..4e16aa3 --- /dev/null +++ b/go2/docs/V0BuildResponseItemModel.md @@ -0,0 +1,758 @@ +# V0BuildResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AbortReason** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**Branch** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**BuildNumber** | Pointer to **int32** | | [optional] +**CommitHash** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**CommitMessage** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**CommitViewUrl** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**CreditCost** | Pointer to [**NullsInt64**](NullsInt64.md) | | [optional] +**EnvironmentPrepareFinishedAt** | Pointer to **string** | | [optional] +**FinishedAt** | Pointer to **string** | | [optional] +**IsOnHold** | Pointer to **bool** | | [optional] +**IsProcessed** | Pointer to **bool** | | [optional] +**IsStatusSent** | Pointer to **bool** | | [optional] +**LogFormat** | Pointer to **string** | | [optional] +**MachineTypeId** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**OriginalBuildParams** | Pointer to **[]int32** | | [optional] +**PipelineWorkflowId** | Pointer to **string** | | [optional] +**PullRequestId** | Pointer to **int32** | | [optional] +**PullRequestTargetBranch** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**PullRequestViewUrl** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**Slug** | Pointer to **string** | | [optional] +**StackIdentifier** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**StartedOnWorkerAt** | Pointer to **string** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**StatusText** | Pointer to **string** | | [optional] +**Tag** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**TriggeredAt** | Pointer to **string** | | [optional] +**TriggeredBy** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**TriggeredWorkflow** | Pointer to **string** | | [optional] + +## Methods + +### NewV0BuildResponseItemModel + +`func NewV0BuildResponseItemModel() *V0BuildResponseItemModel` + +NewV0BuildResponseItemModel instantiates a new V0BuildResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildResponseItemModelWithDefaults + +`func NewV0BuildResponseItemModelWithDefaults() *V0BuildResponseItemModel` + +NewV0BuildResponseItemModelWithDefaults instantiates a new V0BuildResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAbortReason + +`func (o *V0BuildResponseItemModel) GetAbortReason() NullsString` + +GetAbortReason returns the AbortReason field if non-nil, zero value otherwise. + +### GetAbortReasonOk + +`func (o *V0BuildResponseItemModel) GetAbortReasonOk() (*NullsString, bool)` + +GetAbortReasonOk returns a tuple with the AbortReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbortReason + +`func (o *V0BuildResponseItemModel) SetAbortReason(v NullsString)` + +SetAbortReason sets AbortReason field to given value. + +### HasAbortReason + +`func (o *V0BuildResponseItemModel) HasAbortReason() bool` + +HasAbortReason returns a boolean if a field has been set. + +### GetBranch + +`func (o *V0BuildResponseItemModel) GetBranch() NullsString` + +GetBranch returns the Branch field if non-nil, zero value otherwise. + +### GetBranchOk + +`func (o *V0BuildResponseItemModel) GetBranchOk() (*NullsString, bool)` + +GetBranchOk returns a tuple with the Branch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranch + +`func (o *V0BuildResponseItemModel) SetBranch(v NullsString)` + +SetBranch sets Branch field to given value. + +### HasBranch + +`func (o *V0BuildResponseItemModel) HasBranch() bool` + +HasBranch returns a boolean if a field has been set. + +### GetBuildNumber + +`func (o *V0BuildResponseItemModel) GetBuildNumber() int32` + +GetBuildNumber returns the BuildNumber field if non-nil, zero value otherwise. + +### GetBuildNumberOk + +`func (o *V0BuildResponseItemModel) GetBuildNumberOk() (*int32, bool)` + +GetBuildNumberOk returns a tuple with the BuildNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildNumber + +`func (o *V0BuildResponseItemModel) SetBuildNumber(v int32)` + +SetBuildNumber sets BuildNumber field to given value. + +### HasBuildNumber + +`func (o *V0BuildResponseItemModel) HasBuildNumber() bool` + +HasBuildNumber returns a boolean if a field has been set. + +### GetCommitHash + +`func (o *V0BuildResponseItemModel) GetCommitHash() NullsString` + +GetCommitHash returns the CommitHash field if non-nil, zero value otherwise. + +### GetCommitHashOk + +`func (o *V0BuildResponseItemModel) GetCommitHashOk() (*NullsString, bool)` + +GetCommitHashOk returns a tuple with the CommitHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitHash + +`func (o *V0BuildResponseItemModel) SetCommitHash(v NullsString)` + +SetCommitHash sets CommitHash field to given value. + +### HasCommitHash + +`func (o *V0BuildResponseItemModel) HasCommitHash() bool` + +HasCommitHash returns a boolean if a field has been set. + +### GetCommitMessage + +`func (o *V0BuildResponseItemModel) GetCommitMessage() NullsString` + +GetCommitMessage returns the CommitMessage field if non-nil, zero value otherwise. + +### GetCommitMessageOk + +`func (o *V0BuildResponseItemModel) GetCommitMessageOk() (*NullsString, bool)` + +GetCommitMessageOk returns a tuple with the CommitMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitMessage + +`func (o *V0BuildResponseItemModel) SetCommitMessage(v NullsString)` + +SetCommitMessage sets CommitMessage field to given value. + +### HasCommitMessage + +`func (o *V0BuildResponseItemModel) HasCommitMessage() bool` + +HasCommitMessage returns a boolean if a field has been set. + +### GetCommitViewUrl + +`func (o *V0BuildResponseItemModel) GetCommitViewUrl() NullsString` + +GetCommitViewUrl returns the CommitViewUrl field if non-nil, zero value otherwise. + +### GetCommitViewUrlOk + +`func (o *V0BuildResponseItemModel) GetCommitViewUrlOk() (*NullsString, bool)` + +GetCommitViewUrlOk returns a tuple with the CommitViewUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitViewUrl + +`func (o *V0BuildResponseItemModel) SetCommitViewUrl(v NullsString)` + +SetCommitViewUrl sets CommitViewUrl field to given value. + +### HasCommitViewUrl + +`func (o *V0BuildResponseItemModel) HasCommitViewUrl() bool` + +HasCommitViewUrl returns a boolean if a field has been set. + +### GetCreditCost + +`func (o *V0BuildResponseItemModel) GetCreditCost() NullsInt64` + +GetCreditCost returns the CreditCost field if non-nil, zero value otherwise. + +### GetCreditCostOk + +`func (o *V0BuildResponseItemModel) GetCreditCostOk() (*NullsInt64, bool)` + +GetCreditCostOk returns a tuple with the CreditCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreditCost + +`func (o *V0BuildResponseItemModel) SetCreditCost(v NullsInt64)` + +SetCreditCost sets CreditCost field to given value. + +### HasCreditCost + +`func (o *V0BuildResponseItemModel) HasCreditCost() bool` + +HasCreditCost returns a boolean if a field has been set. + +### GetEnvironmentPrepareFinishedAt + +`func (o *V0BuildResponseItemModel) GetEnvironmentPrepareFinishedAt() string` + +GetEnvironmentPrepareFinishedAt returns the EnvironmentPrepareFinishedAt field if non-nil, zero value otherwise. + +### GetEnvironmentPrepareFinishedAtOk + +`func (o *V0BuildResponseItemModel) GetEnvironmentPrepareFinishedAtOk() (*string, bool)` + +GetEnvironmentPrepareFinishedAtOk returns a tuple with the EnvironmentPrepareFinishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentPrepareFinishedAt + +`func (o *V0BuildResponseItemModel) SetEnvironmentPrepareFinishedAt(v string)` + +SetEnvironmentPrepareFinishedAt sets EnvironmentPrepareFinishedAt field to given value. + +### HasEnvironmentPrepareFinishedAt + +`func (o *V0BuildResponseItemModel) HasEnvironmentPrepareFinishedAt() bool` + +HasEnvironmentPrepareFinishedAt returns a boolean if a field has been set. + +### GetFinishedAt + +`func (o *V0BuildResponseItemModel) GetFinishedAt() string` + +GetFinishedAt returns the FinishedAt field if non-nil, zero value otherwise. + +### GetFinishedAtOk + +`func (o *V0BuildResponseItemModel) GetFinishedAtOk() (*string, bool)` + +GetFinishedAtOk returns a tuple with the FinishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFinishedAt + +`func (o *V0BuildResponseItemModel) SetFinishedAt(v string)` + +SetFinishedAt sets FinishedAt field to given value. + +### HasFinishedAt + +`func (o *V0BuildResponseItemModel) HasFinishedAt() bool` + +HasFinishedAt returns a boolean if a field has been set. + +### GetIsOnHold + +`func (o *V0BuildResponseItemModel) GetIsOnHold() bool` + +GetIsOnHold returns the IsOnHold field if non-nil, zero value otherwise. + +### GetIsOnHoldOk + +`func (o *V0BuildResponseItemModel) GetIsOnHoldOk() (*bool, bool)` + +GetIsOnHoldOk returns a tuple with the IsOnHold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsOnHold + +`func (o *V0BuildResponseItemModel) SetIsOnHold(v bool)` + +SetIsOnHold sets IsOnHold field to given value. + +### HasIsOnHold + +`func (o *V0BuildResponseItemModel) HasIsOnHold() bool` + +HasIsOnHold returns a boolean if a field has been set. + +### GetIsProcessed + +`func (o *V0BuildResponseItemModel) GetIsProcessed() bool` + +GetIsProcessed returns the IsProcessed field if non-nil, zero value otherwise. + +### GetIsProcessedOk + +`func (o *V0BuildResponseItemModel) GetIsProcessedOk() (*bool, bool)` + +GetIsProcessedOk returns a tuple with the IsProcessed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsProcessed + +`func (o *V0BuildResponseItemModel) SetIsProcessed(v bool)` + +SetIsProcessed sets IsProcessed field to given value. + +### HasIsProcessed + +`func (o *V0BuildResponseItemModel) HasIsProcessed() bool` + +HasIsProcessed returns a boolean if a field has been set. + +### GetIsStatusSent + +`func (o *V0BuildResponseItemModel) GetIsStatusSent() bool` + +GetIsStatusSent returns the IsStatusSent field if non-nil, zero value otherwise. + +### GetIsStatusSentOk + +`func (o *V0BuildResponseItemModel) GetIsStatusSentOk() (*bool, bool)` + +GetIsStatusSentOk returns a tuple with the IsStatusSent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsStatusSent + +`func (o *V0BuildResponseItemModel) SetIsStatusSent(v bool)` + +SetIsStatusSent sets IsStatusSent field to given value. + +### HasIsStatusSent + +`func (o *V0BuildResponseItemModel) HasIsStatusSent() bool` + +HasIsStatusSent returns a boolean if a field has been set. + +### GetLogFormat + +`func (o *V0BuildResponseItemModel) GetLogFormat() string` + +GetLogFormat returns the LogFormat field if non-nil, zero value otherwise. + +### GetLogFormatOk + +`func (o *V0BuildResponseItemModel) GetLogFormatOk() (*string, bool)` + +GetLogFormatOk returns a tuple with the LogFormat field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLogFormat + +`func (o *V0BuildResponseItemModel) SetLogFormat(v string)` + +SetLogFormat sets LogFormat field to given value. + +### HasLogFormat + +`func (o *V0BuildResponseItemModel) HasLogFormat() bool` + +HasLogFormat returns a boolean if a field has been set. + +### GetMachineTypeId + +`func (o *V0BuildResponseItemModel) GetMachineTypeId() NullsString` + +GetMachineTypeId returns the MachineTypeId field if non-nil, zero value otherwise. + +### GetMachineTypeIdOk + +`func (o *V0BuildResponseItemModel) GetMachineTypeIdOk() (*NullsString, bool)` + +GetMachineTypeIdOk returns a tuple with the MachineTypeId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMachineTypeId + +`func (o *V0BuildResponseItemModel) SetMachineTypeId(v NullsString)` + +SetMachineTypeId sets MachineTypeId field to given value. + +### HasMachineTypeId + +`func (o *V0BuildResponseItemModel) HasMachineTypeId() bool` + +HasMachineTypeId returns a boolean if a field has been set. + +### GetOriginalBuildParams + +`func (o *V0BuildResponseItemModel) GetOriginalBuildParams() []int32` + +GetOriginalBuildParams returns the OriginalBuildParams field if non-nil, zero value otherwise. + +### GetOriginalBuildParamsOk + +`func (o *V0BuildResponseItemModel) GetOriginalBuildParamsOk() (*[]int32, bool)` + +GetOriginalBuildParamsOk returns a tuple with the OriginalBuildParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginalBuildParams + +`func (o *V0BuildResponseItemModel) SetOriginalBuildParams(v []int32)` + +SetOriginalBuildParams sets OriginalBuildParams field to given value. + +### HasOriginalBuildParams + +`func (o *V0BuildResponseItemModel) HasOriginalBuildParams() bool` + +HasOriginalBuildParams returns a boolean if a field has been set. + +### GetPipelineWorkflowId + +`func (o *V0BuildResponseItemModel) GetPipelineWorkflowId() string` + +GetPipelineWorkflowId returns the PipelineWorkflowId field if non-nil, zero value otherwise. + +### GetPipelineWorkflowIdOk + +`func (o *V0BuildResponseItemModel) GetPipelineWorkflowIdOk() (*string, bool)` + +GetPipelineWorkflowIdOk returns a tuple with the PipelineWorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelineWorkflowId + +`func (o *V0BuildResponseItemModel) SetPipelineWorkflowId(v string)` + +SetPipelineWorkflowId sets PipelineWorkflowId field to given value. + +### HasPipelineWorkflowId + +`func (o *V0BuildResponseItemModel) HasPipelineWorkflowId() bool` + +HasPipelineWorkflowId returns a boolean if a field has been set. + +### GetPullRequestId + +`func (o *V0BuildResponseItemModel) GetPullRequestId() int32` + +GetPullRequestId returns the PullRequestId field if non-nil, zero value otherwise. + +### GetPullRequestIdOk + +`func (o *V0BuildResponseItemModel) GetPullRequestIdOk() (*int32, bool)` + +GetPullRequestIdOk returns a tuple with the PullRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestId + +`func (o *V0BuildResponseItemModel) SetPullRequestId(v int32)` + +SetPullRequestId sets PullRequestId field to given value. + +### HasPullRequestId + +`func (o *V0BuildResponseItemModel) HasPullRequestId() bool` + +HasPullRequestId returns a boolean if a field has been set. + +### GetPullRequestTargetBranch + +`func (o *V0BuildResponseItemModel) GetPullRequestTargetBranch() NullsString` + +GetPullRequestTargetBranch returns the PullRequestTargetBranch field if non-nil, zero value otherwise. + +### GetPullRequestTargetBranchOk + +`func (o *V0BuildResponseItemModel) GetPullRequestTargetBranchOk() (*NullsString, bool)` + +GetPullRequestTargetBranchOk returns a tuple with the PullRequestTargetBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestTargetBranch + +`func (o *V0BuildResponseItemModel) SetPullRequestTargetBranch(v NullsString)` + +SetPullRequestTargetBranch sets PullRequestTargetBranch field to given value. + +### HasPullRequestTargetBranch + +`func (o *V0BuildResponseItemModel) HasPullRequestTargetBranch() bool` + +HasPullRequestTargetBranch returns a boolean if a field has been set. + +### GetPullRequestViewUrl + +`func (o *V0BuildResponseItemModel) GetPullRequestViewUrl() NullsString` + +GetPullRequestViewUrl returns the PullRequestViewUrl field if non-nil, zero value otherwise. + +### GetPullRequestViewUrlOk + +`func (o *V0BuildResponseItemModel) GetPullRequestViewUrlOk() (*NullsString, bool)` + +GetPullRequestViewUrlOk returns a tuple with the PullRequestViewUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestViewUrl + +`func (o *V0BuildResponseItemModel) SetPullRequestViewUrl(v NullsString)` + +SetPullRequestViewUrl sets PullRequestViewUrl field to given value. + +### HasPullRequestViewUrl + +`func (o *V0BuildResponseItemModel) HasPullRequestViewUrl() bool` + +HasPullRequestViewUrl returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0BuildResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0BuildResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0BuildResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0BuildResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetStackIdentifier + +`func (o *V0BuildResponseItemModel) GetStackIdentifier() NullsString` + +GetStackIdentifier returns the StackIdentifier field if non-nil, zero value otherwise. + +### GetStackIdentifierOk + +`func (o *V0BuildResponseItemModel) GetStackIdentifierOk() (*NullsString, bool)` + +GetStackIdentifierOk returns a tuple with the StackIdentifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStackIdentifier + +`func (o *V0BuildResponseItemModel) SetStackIdentifier(v NullsString)` + +SetStackIdentifier sets StackIdentifier field to given value. + +### HasStackIdentifier + +`func (o *V0BuildResponseItemModel) HasStackIdentifier() bool` + +HasStackIdentifier returns a boolean if a field has been set. + +### GetStartedOnWorkerAt + +`func (o *V0BuildResponseItemModel) GetStartedOnWorkerAt() string` + +GetStartedOnWorkerAt returns the StartedOnWorkerAt field if non-nil, zero value otherwise. + +### GetStartedOnWorkerAtOk + +`func (o *V0BuildResponseItemModel) GetStartedOnWorkerAtOk() (*string, bool)` + +GetStartedOnWorkerAtOk returns a tuple with the StartedOnWorkerAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartedOnWorkerAt + +`func (o *V0BuildResponseItemModel) SetStartedOnWorkerAt(v string)` + +SetStartedOnWorkerAt sets StartedOnWorkerAt field to given value. + +### HasStartedOnWorkerAt + +`func (o *V0BuildResponseItemModel) HasStartedOnWorkerAt() bool` + +HasStartedOnWorkerAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0BuildResponseItemModel) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0BuildResponseItemModel) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0BuildResponseItemModel) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0BuildResponseItemModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatusText + +`func (o *V0BuildResponseItemModel) GetStatusText() string` + +GetStatusText returns the StatusText field if non-nil, zero value otherwise. + +### GetStatusTextOk + +`func (o *V0BuildResponseItemModel) GetStatusTextOk() (*string, bool)` + +GetStatusTextOk returns a tuple with the StatusText field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusText + +`func (o *V0BuildResponseItemModel) SetStatusText(v string)` + +SetStatusText sets StatusText field to given value. + +### HasStatusText + +`func (o *V0BuildResponseItemModel) HasStatusText() bool` + +HasStatusText returns a boolean if a field has been set. + +### GetTag + +`func (o *V0BuildResponseItemModel) GetTag() NullsString` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *V0BuildResponseItemModel) GetTagOk() (*NullsString, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *V0BuildResponseItemModel) SetTag(v NullsString)` + +SetTag sets Tag field to given value. + +### HasTag + +`func (o *V0BuildResponseItemModel) HasTag() bool` + +HasTag returns a boolean if a field has been set. + +### GetTriggeredAt + +`func (o *V0BuildResponseItemModel) GetTriggeredAt() string` + +GetTriggeredAt returns the TriggeredAt field if non-nil, zero value otherwise. + +### GetTriggeredAtOk + +`func (o *V0BuildResponseItemModel) GetTriggeredAtOk() (*string, bool)` + +GetTriggeredAtOk returns a tuple with the TriggeredAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredAt + +`func (o *V0BuildResponseItemModel) SetTriggeredAt(v string)` + +SetTriggeredAt sets TriggeredAt field to given value. + +### HasTriggeredAt + +`func (o *V0BuildResponseItemModel) HasTriggeredAt() bool` + +HasTriggeredAt returns a boolean if a field has been set. + +### GetTriggeredBy + +`func (o *V0BuildResponseItemModel) GetTriggeredBy() NullsString` + +GetTriggeredBy returns the TriggeredBy field if non-nil, zero value otherwise. + +### GetTriggeredByOk + +`func (o *V0BuildResponseItemModel) GetTriggeredByOk() (*NullsString, bool)` + +GetTriggeredByOk returns a tuple with the TriggeredBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredBy + +`func (o *V0BuildResponseItemModel) SetTriggeredBy(v NullsString)` + +SetTriggeredBy sets TriggeredBy field to given value. + +### HasTriggeredBy + +`func (o *V0BuildResponseItemModel) HasTriggeredBy() bool` + +HasTriggeredBy returns a boolean if a field has been set. + +### GetTriggeredWorkflow + +`func (o *V0BuildResponseItemModel) GetTriggeredWorkflow() string` + +GetTriggeredWorkflow returns the TriggeredWorkflow field if non-nil, zero value otherwise. + +### GetTriggeredWorkflowOk + +`func (o *V0BuildResponseItemModel) GetTriggeredWorkflowOk() (*string, bool)` + +GetTriggeredWorkflowOk returns a tuple with the TriggeredWorkflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredWorkflow + +`func (o *V0BuildResponseItemModel) SetTriggeredWorkflow(v string)` + +SetTriggeredWorkflow sets TriggeredWorkflow field to given value. + +### HasTriggeredWorkflow + +`func (o *V0BuildResponseItemModel) HasTriggeredWorkflow() bool` + +HasTriggeredWorkflow returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0BuildShowResponseModel.md b/go2/docs/V0BuildShowResponseModel.md new file mode 100644 index 0000000..4fbb986 --- /dev/null +++ b/go2/docs/V0BuildShowResponseModel.md @@ -0,0 +1,56 @@ +# V0BuildShowResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0BuildResponseItemModel**](V0BuildResponseItemModel.md) | | [optional] + +## Methods + +### NewV0BuildShowResponseModel + +`func NewV0BuildShowResponseModel() *V0BuildShowResponseModel` + +NewV0BuildShowResponseModel instantiates a new V0BuildShowResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildShowResponseModelWithDefaults + +`func NewV0BuildShowResponseModelWithDefaults() *V0BuildShowResponseModel` + +NewV0BuildShowResponseModelWithDefaults instantiates a new V0BuildShowResponseModel object +This 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 *V0BuildShowResponseModel) GetData() V0BuildResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0BuildShowResponseModel) GetDataOk() (*V0BuildResponseItemModel, 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 *V0BuildShowResponseModel) SetData(v V0BuildResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0BuildShowResponseModel) 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/go2/docs/V0BuildTriggerParams.md b/go2/docs/V0BuildTriggerParams.md new file mode 100644 index 0000000..7272450 --- /dev/null +++ b/go2/docs/V0BuildTriggerParams.md @@ -0,0 +1,82 @@ +# V0BuildTriggerParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuildParams** | Pointer to [**V0BuildTriggerParamsBuildParams**](V0BuildTriggerParamsBuildParams.md) | | [optional] +**HookInfo** | Pointer to [**V0BuildTriggerParamsHookInfo**](V0BuildTriggerParamsHookInfo.md) | | [optional] + +## Methods + +### NewV0BuildTriggerParams + +`func NewV0BuildTriggerParams() *V0BuildTriggerParams` + +NewV0BuildTriggerParams instantiates a new V0BuildTriggerParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildTriggerParamsWithDefaults + +`func NewV0BuildTriggerParamsWithDefaults() *V0BuildTriggerParams` + +NewV0BuildTriggerParamsWithDefaults instantiates a new V0BuildTriggerParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuildParams + +`func (o *V0BuildTriggerParams) GetBuildParams() V0BuildTriggerParamsBuildParams` + +GetBuildParams returns the BuildParams field if non-nil, zero value otherwise. + +### GetBuildParamsOk + +`func (o *V0BuildTriggerParams) GetBuildParamsOk() (*V0BuildTriggerParamsBuildParams, bool)` + +GetBuildParamsOk returns a tuple with the BuildParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildParams + +`func (o *V0BuildTriggerParams) SetBuildParams(v V0BuildTriggerParamsBuildParams)` + +SetBuildParams sets BuildParams field to given value. + +### HasBuildParams + +`func (o *V0BuildTriggerParams) HasBuildParams() bool` + +HasBuildParams returns a boolean if a field has been set. + +### GetHookInfo + +`func (o *V0BuildTriggerParams) GetHookInfo() V0BuildTriggerParamsHookInfo` + +GetHookInfo returns the HookInfo field if non-nil, zero value otherwise. + +### GetHookInfoOk + +`func (o *V0BuildTriggerParams) GetHookInfoOk() (*V0BuildTriggerParamsHookInfo, bool)` + +GetHookInfoOk returns a tuple with the HookInfo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHookInfo + +`func (o *V0BuildTriggerParams) SetHookInfo(v V0BuildTriggerParamsHookInfo)` + +SetHookInfo sets HookInfo field to given value. + +### HasHookInfo + +`func (o *V0BuildTriggerParams) HasHookInfo() bool` + +HasHookInfo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0BuildTriggerParamsBuildParams.md b/go2/docs/V0BuildTriggerParamsBuildParams.md new file mode 100644 index 0000000..127f952 --- /dev/null +++ b/go2/docs/V0BuildTriggerParamsBuildParams.md @@ -0,0 +1,602 @@ +# V0BuildTriggerParamsBuildParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BaseRepositoryUrl** | Pointer to **string** | | [optional] +**Branch** | Pointer to **string** | | [optional] +**BranchDest** | Pointer to **string** | | [optional] +**BranchDestRepoOwner** | Pointer to **string** | | [optional] +**BranchRepoOwner** | Pointer to **string** | | [optional] +**BuildRequestSlug** | Pointer to **string** | | [optional] +**CommitHash** | Pointer to **string** | | [optional] +**CommitMessage** | Pointer to **string** | | [optional] +**CommitPaths** | Pointer to [**[]V0CommitPaths**](V0CommitPaths.md) | | [optional] +**DiffUrl** | Pointer to **string** | | [optional] +**Environments** | Pointer to [**[]V0BuildParamsEnvironment**](V0BuildParamsEnvironment.md) | | [optional] +**HeadRepositoryUrl** | Pointer to **string** | | [optional] +**PipelineId** | Pointer to **string** | | [optional] +**PullRequestAuthor** | Pointer to **string** | | [optional] +**PullRequestHeadBranch** | Pointer to **string** | | [optional] +**PullRequestId** | Pointer to **map[string]interface{}** | | [optional] +**PullRequestMergeBranch** | Pointer to **string** | | [optional] +**PullRequestRepositoryUrl** | Pointer to **string** | | [optional] +**PullRequestUnverifiedMergeBranch** | Pointer to **string** | | [optional] +**SkipGitStatusReport** | Pointer to **bool** | | [optional] +**Tag** | Pointer to **string** | | [optional] +**WorkflowId** | Pointer to **string** | | [optional] + +## Methods + +### NewV0BuildTriggerParamsBuildParams + +`func NewV0BuildTriggerParamsBuildParams() *V0BuildTriggerParamsBuildParams` + +NewV0BuildTriggerParamsBuildParams instantiates a new V0BuildTriggerParamsBuildParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildTriggerParamsBuildParamsWithDefaults + +`func NewV0BuildTriggerParamsBuildParamsWithDefaults() *V0BuildTriggerParamsBuildParams` + +NewV0BuildTriggerParamsBuildParamsWithDefaults instantiates a new V0BuildTriggerParamsBuildParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBaseRepositoryUrl + +`func (o *V0BuildTriggerParamsBuildParams) GetBaseRepositoryUrl() string` + +GetBaseRepositoryUrl returns the BaseRepositoryUrl field if non-nil, zero value otherwise. + +### GetBaseRepositoryUrlOk + +`func (o *V0BuildTriggerParamsBuildParams) GetBaseRepositoryUrlOk() (*string, bool)` + +GetBaseRepositoryUrlOk returns a tuple with the BaseRepositoryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBaseRepositoryUrl + +`func (o *V0BuildTriggerParamsBuildParams) SetBaseRepositoryUrl(v string)` + +SetBaseRepositoryUrl sets BaseRepositoryUrl field to given value. + +### HasBaseRepositoryUrl + +`func (o *V0BuildTriggerParamsBuildParams) HasBaseRepositoryUrl() bool` + +HasBaseRepositoryUrl returns a boolean if a field has been set. + +### GetBranch + +`func (o *V0BuildTriggerParamsBuildParams) GetBranch() string` + +GetBranch returns the Branch field if non-nil, zero value otherwise. + +### GetBranchOk + +`func (o *V0BuildTriggerParamsBuildParams) GetBranchOk() (*string, bool)` + +GetBranchOk returns a tuple with the Branch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranch + +`func (o *V0BuildTriggerParamsBuildParams) SetBranch(v string)` + +SetBranch sets Branch field to given value. + +### HasBranch + +`func (o *V0BuildTriggerParamsBuildParams) HasBranch() bool` + +HasBranch returns a boolean if a field has been set. + +### GetBranchDest + +`func (o *V0BuildTriggerParamsBuildParams) GetBranchDest() string` + +GetBranchDest returns the BranchDest field if non-nil, zero value otherwise. + +### GetBranchDestOk + +`func (o *V0BuildTriggerParamsBuildParams) GetBranchDestOk() (*string, bool)` + +GetBranchDestOk returns a tuple with the BranchDest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranchDest + +`func (o *V0BuildTriggerParamsBuildParams) SetBranchDest(v string)` + +SetBranchDest sets BranchDest field to given value. + +### HasBranchDest + +`func (o *V0BuildTriggerParamsBuildParams) HasBranchDest() bool` + +HasBranchDest returns a boolean if a field has been set. + +### GetBranchDestRepoOwner + +`func (o *V0BuildTriggerParamsBuildParams) GetBranchDestRepoOwner() string` + +GetBranchDestRepoOwner returns the BranchDestRepoOwner field if non-nil, zero value otherwise. + +### GetBranchDestRepoOwnerOk + +`func (o *V0BuildTriggerParamsBuildParams) GetBranchDestRepoOwnerOk() (*string, bool)` + +GetBranchDestRepoOwnerOk returns a tuple with the BranchDestRepoOwner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranchDestRepoOwner + +`func (o *V0BuildTriggerParamsBuildParams) SetBranchDestRepoOwner(v string)` + +SetBranchDestRepoOwner sets BranchDestRepoOwner field to given value. + +### HasBranchDestRepoOwner + +`func (o *V0BuildTriggerParamsBuildParams) HasBranchDestRepoOwner() bool` + +HasBranchDestRepoOwner returns a boolean if a field has been set. + +### GetBranchRepoOwner + +`func (o *V0BuildTriggerParamsBuildParams) GetBranchRepoOwner() string` + +GetBranchRepoOwner returns the BranchRepoOwner field if non-nil, zero value otherwise. + +### GetBranchRepoOwnerOk + +`func (o *V0BuildTriggerParamsBuildParams) GetBranchRepoOwnerOk() (*string, bool)` + +GetBranchRepoOwnerOk returns a tuple with the BranchRepoOwner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranchRepoOwner + +`func (o *V0BuildTriggerParamsBuildParams) SetBranchRepoOwner(v string)` + +SetBranchRepoOwner sets BranchRepoOwner field to given value. + +### HasBranchRepoOwner + +`func (o *V0BuildTriggerParamsBuildParams) HasBranchRepoOwner() bool` + +HasBranchRepoOwner returns a boolean if a field has been set. + +### GetBuildRequestSlug + +`func (o *V0BuildTriggerParamsBuildParams) GetBuildRequestSlug() string` + +GetBuildRequestSlug returns the BuildRequestSlug field if non-nil, zero value otherwise. + +### GetBuildRequestSlugOk + +`func (o *V0BuildTriggerParamsBuildParams) GetBuildRequestSlugOk() (*string, bool)` + +GetBuildRequestSlugOk returns a tuple with the BuildRequestSlug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildRequestSlug + +`func (o *V0BuildTriggerParamsBuildParams) SetBuildRequestSlug(v string)` + +SetBuildRequestSlug sets BuildRequestSlug field to given value. + +### HasBuildRequestSlug + +`func (o *V0BuildTriggerParamsBuildParams) HasBuildRequestSlug() bool` + +HasBuildRequestSlug returns a boolean if a field has been set. + +### GetCommitHash + +`func (o *V0BuildTriggerParamsBuildParams) GetCommitHash() string` + +GetCommitHash returns the CommitHash field if non-nil, zero value otherwise. + +### GetCommitHashOk + +`func (o *V0BuildTriggerParamsBuildParams) GetCommitHashOk() (*string, bool)` + +GetCommitHashOk returns a tuple with the CommitHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitHash + +`func (o *V0BuildTriggerParamsBuildParams) SetCommitHash(v string)` + +SetCommitHash sets CommitHash field to given value. + +### HasCommitHash + +`func (o *V0BuildTriggerParamsBuildParams) HasCommitHash() bool` + +HasCommitHash returns a boolean if a field has been set. + +### GetCommitMessage + +`func (o *V0BuildTriggerParamsBuildParams) GetCommitMessage() string` + +GetCommitMessage returns the CommitMessage field if non-nil, zero value otherwise. + +### GetCommitMessageOk + +`func (o *V0BuildTriggerParamsBuildParams) GetCommitMessageOk() (*string, bool)` + +GetCommitMessageOk returns a tuple with the CommitMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitMessage + +`func (o *V0BuildTriggerParamsBuildParams) SetCommitMessage(v string)` + +SetCommitMessage sets CommitMessage field to given value. + +### HasCommitMessage + +`func (o *V0BuildTriggerParamsBuildParams) HasCommitMessage() bool` + +HasCommitMessage returns a boolean if a field has been set. + +### GetCommitPaths + +`func (o *V0BuildTriggerParamsBuildParams) GetCommitPaths() []V0CommitPaths` + +GetCommitPaths returns the CommitPaths field if non-nil, zero value otherwise. + +### GetCommitPathsOk + +`func (o *V0BuildTriggerParamsBuildParams) GetCommitPathsOk() (*[]V0CommitPaths, bool)` + +GetCommitPathsOk returns a tuple with the CommitPaths field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitPaths + +`func (o *V0BuildTriggerParamsBuildParams) SetCommitPaths(v []V0CommitPaths)` + +SetCommitPaths sets CommitPaths field to given value. + +### HasCommitPaths + +`func (o *V0BuildTriggerParamsBuildParams) HasCommitPaths() bool` + +HasCommitPaths returns a boolean if a field has been set. + +### GetDiffUrl + +`func (o *V0BuildTriggerParamsBuildParams) GetDiffUrl() string` + +GetDiffUrl returns the DiffUrl field if non-nil, zero value otherwise. + +### GetDiffUrlOk + +`func (o *V0BuildTriggerParamsBuildParams) GetDiffUrlOk() (*string, bool)` + +GetDiffUrlOk returns a tuple with the DiffUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDiffUrl + +`func (o *V0BuildTriggerParamsBuildParams) SetDiffUrl(v string)` + +SetDiffUrl sets DiffUrl field to given value. + +### HasDiffUrl + +`func (o *V0BuildTriggerParamsBuildParams) HasDiffUrl() bool` + +HasDiffUrl returns a boolean if a field has been set. + +### GetEnvironments + +`func (o *V0BuildTriggerParamsBuildParams) GetEnvironments() []V0BuildParamsEnvironment` + +GetEnvironments returns the Environments field if non-nil, zero value otherwise. + +### GetEnvironmentsOk + +`func (o *V0BuildTriggerParamsBuildParams) GetEnvironmentsOk() (*[]V0BuildParamsEnvironment, bool)` + +GetEnvironmentsOk returns a tuple with the Environments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironments + +`func (o *V0BuildTriggerParamsBuildParams) SetEnvironments(v []V0BuildParamsEnvironment)` + +SetEnvironments sets Environments field to given value. + +### HasEnvironments + +`func (o *V0BuildTriggerParamsBuildParams) HasEnvironments() bool` + +HasEnvironments returns a boolean if a field has been set. + +### GetHeadRepositoryUrl + +`func (o *V0BuildTriggerParamsBuildParams) GetHeadRepositoryUrl() string` + +GetHeadRepositoryUrl returns the HeadRepositoryUrl field if non-nil, zero value otherwise. + +### GetHeadRepositoryUrlOk + +`func (o *V0BuildTriggerParamsBuildParams) GetHeadRepositoryUrlOk() (*string, bool)` + +GetHeadRepositoryUrlOk returns a tuple with the HeadRepositoryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHeadRepositoryUrl + +`func (o *V0BuildTriggerParamsBuildParams) SetHeadRepositoryUrl(v string)` + +SetHeadRepositoryUrl sets HeadRepositoryUrl field to given value. + +### HasHeadRepositoryUrl + +`func (o *V0BuildTriggerParamsBuildParams) HasHeadRepositoryUrl() bool` + +HasHeadRepositoryUrl returns a boolean if a field has been set. + +### GetPipelineId + +`func (o *V0BuildTriggerParamsBuildParams) GetPipelineId() string` + +GetPipelineId returns the PipelineId field if non-nil, zero value otherwise. + +### GetPipelineIdOk + +`func (o *V0BuildTriggerParamsBuildParams) GetPipelineIdOk() (*string, bool)` + +GetPipelineIdOk returns a tuple with the PipelineId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPipelineId + +`func (o *V0BuildTriggerParamsBuildParams) SetPipelineId(v string)` + +SetPipelineId sets PipelineId field to given value. + +### HasPipelineId + +`func (o *V0BuildTriggerParamsBuildParams) HasPipelineId() bool` + +HasPipelineId returns a boolean if a field has been set. + +### GetPullRequestAuthor + +`func (o *V0BuildTriggerParamsBuildParams) GetPullRequestAuthor() string` + +GetPullRequestAuthor returns the PullRequestAuthor field if non-nil, zero value otherwise. + +### GetPullRequestAuthorOk + +`func (o *V0BuildTriggerParamsBuildParams) GetPullRequestAuthorOk() (*string, bool)` + +GetPullRequestAuthorOk returns a tuple with the PullRequestAuthor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestAuthor + +`func (o *V0BuildTriggerParamsBuildParams) SetPullRequestAuthor(v string)` + +SetPullRequestAuthor sets PullRequestAuthor field to given value. + +### HasPullRequestAuthor + +`func (o *V0BuildTriggerParamsBuildParams) HasPullRequestAuthor() bool` + +HasPullRequestAuthor returns a boolean if a field has been set. + +### GetPullRequestHeadBranch + +`func (o *V0BuildTriggerParamsBuildParams) GetPullRequestHeadBranch() string` + +GetPullRequestHeadBranch returns the PullRequestHeadBranch field if non-nil, zero value otherwise. + +### GetPullRequestHeadBranchOk + +`func (o *V0BuildTriggerParamsBuildParams) GetPullRequestHeadBranchOk() (*string, bool)` + +GetPullRequestHeadBranchOk returns a tuple with the PullRequestHeadBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestHeadBranch + +`func (o *V0BuildTriggerParamsBuildParams) SetPullRequestHeadBranch(v string)` + +SetPullRequestHeadBranch sets PullRequestHeadBranch field to given value. + +### HasPullRequestHeadBranch + +`func (o *V0BuildTriggerParamsBuildParams) HasPullRequestHeadBranch() bool` + +HasPullRequestHeadBranch returns a boolean if a field has been set. + +### GetPullRequestId + +`func (o *V0BuildTriggerParamsBuildParams) GetPullRequestId() map[string]interface{}` + +GetPullRequestId returns the PullRequestId field if non-nil, zero value otherwise. + +### GetPullRequestIdOk + +`func (o *V0BuildTriggerParamsBuildParams) GetPullRequestIdOk() (*map[string]interface{}, bool)` + +GetPullRequestIdOk returns a tuple with the PullRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestId + +`func (o *V0BuildTriggerParamsBuildParams) SetPullRequestId(v map[string]interface{})` + +SetPullRequestId sets PullRequestId field to given value. + +### HasPullRequestId + +`func (o *V0BuildTriggerParamsBuildParams) HasPullRequestId() bool` + +HasPullRequestId returns a boolean if a field has been set. + +### GetPullRequestMergeBranch + +`func (o *V0BuildTriggerParamsBuildParams) GetPullRequestMergeBranch() string` + +GetPullRequestMergeBranch returns the PullRequestMergeBranch field if non-nil, zero value otherwise. + +### GetPullRequestMergeBranchOk + +`func (o *V0BuildTriggerParamsBuildParams) GetPullRequestMergeBranchOk() (*string, bool)` + +GetPullRequestMergeBranchOk returns a tuple with the PullRequestMergeBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestMergeBranch + +`func (o *V0BuildTriggerParamsBuildParams) SetPullRequestMergeBranch(v string)` + +SetPullRequestMergeBranch sets PullRequestMergeBranch field to given value. + +### HasPullRequestMergeBranch + +`func (o *V0BuildTriggerParamsBuildParams) HasPullRequestMergeBranch() bool` + +HasPullRequestMergeBranch returns a boolean if a field has been set. + +### GetPullRequestRepositoryUrl + +`func (o *V0BuildTriggerParamsBuildParams) GetPullRequestRepositoryUrl() string` + +GetPullRequestRepositoryUrl returns the PullRequestRepositoryUrl field if non-nil, zero value otherwise. + +### GetPullRequestRepositoryUrlOk + +`func (o *V0BuildTriggerParamsBuildParams) GetPullRequestRepositoryUrlOk() (*string, bool)` + +GetPullRequestRepositoryUrlOk returns a tuple with the PullRequestRepositoryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestRepositoryUrl + +`func (o *V0BuildTriggerParamsBuildParams) SetPullRequestRepositoryUrl(v string)` + +SetPullRequestRepositoryUrl sets PullRequestRepositoryUrl field to given value. + +### HasPullRequestRepositoryUrl + +`func (o *V0BuildTriggerParamsBuildParams) HasPullRequestRepositoryUrl() bool` + +HasPullRequestRepositoryUrl returns a boolean if a field has been set. + +### GetPullRequestUnverifiedMergeBranch + +`func (o *V0BuildTriggerParamsBuildParams) GetPullRequestUnverifiedMergeBranch() string` + +GetPullRequestUnverifiedMergeBranch returns the PullRequestUnverifiedMergeBranch field if non-nil, zero value otherwise. + +### GetPullRequestUnverifiedMergeBranchOk + +`func (o *V0BuildTriggerParamsBuildParams) GetPullRequestUnverifiedMergeBranchOk() (*string, bool)` + +GetPullRequestUnverifiedMergeBranchOk returns a tuple with the PullRequestUnverifiedMergeBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestUnverifiedMergeBranch + +`func (o *V0BuildTriggerParamsBuildParams) SetPullRequestUnverifiedMergeBranch(v string)` + +SetPullRequestUnverifiedMergeBranch sets PullRequestUnverifiedMergeBranch field to given value. + +### HasPullRequestUnverifiedMergeBranch + +`func (o *V0BuildTriggerParamsBuildParams) HasPullRequestUnverifiedMergeBranch() bool` + +HasPullRequestUnverifiedMergeBranch returns a boolean if a field has been set. + +### GetSkipGitStatusReport + +`func (o *V0BuildTriggerParamsBuildParams) GetSkipGitStatusReport() bool` + +GetSkipGitStatusReport returns the SkipGitStatusReport field if non-nil, zero value otherwise. + +### GetSkipGitStatusReportOk + +`func (o *V0BuildTriggerParamsBuildParams) GetSkipGitStatusReportOk() (*bool, bool)` + +GetSkipGitStatusReportOk returns a tuple with the SkipGitStatusReport field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkipGitStatusReport + +`func (o *V0BuildTriggerParamsBuildParams) SetSkipGitStatusReport(v bool)` + +SetSkipGitStatusReport sets SkipGitStatusReport field to given value. + +### HasSkipGitStatusReport + +`func (o *V0BuildTriggerParamsBuildParams) HasSkipGitStatusReport() bool` + +HasSkipGitStatusReport returns a boolean if a field has been set. + +### GetTag + +`func (o *V0BuildTriggerParamsBuildParams) GetTag() string` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *V0BuildTriggerParamsBuildParams) GetTagOk() (*string, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *V0BuildTriggerParamsBuildParams) SetTag(v string)` + +SetTag sets Tag field to given value. + +### HasTag + +`func (o *V0BuildTriggerParamsBuildParams) HasTag() bool` + +HasTag returns a boolean if a field has been set. + +### GetWorkflowId + +`func (o *V0BuildTriggerParamsBuildParams) GetWorkflowId() string` + +GetWorkflowId returns the WorkflowId field if non-nil, zero value otherwise. + +### GetWorkflowIdOk + +`func (o *V0BuildTriggerParamsBuildParams) GetWorkflowIdOk() (*string, bool)` + +GetWorkflowIdOk returns a tuple with the WorkflowId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflowId + +`func (o *V0BuildTriggerParamsBuildParams) SetWorkflowId(v string)` + +SetWorkflowId sets WorkflowId field to given value. + +### HasWorkflowId + +`func (o *V0BuildTriggerParamsBuildParams) HasWorkflowId() bool` + +HasWorkflowId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0BuildTriggerParamsHookInfo.md b/go2/docs/V0BuildTriggerParamsHookInfo.md new file mode 100644 index 0000000..28c35ad --- /dev/null +++ b/go2/docs/V0BuildTriggerParamsHookInfo.md @@ -0,0 +1,56 @@ +# V0BuildTriggerParamsHookInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Type** | Pointer to **string** | Should be \"bitrise\" | [optional] + +## Methods + +### NewV0BuildTriggerParamsHookInfo + +`func NewV0BuildTriggerParamsHookInfo() *V0BuildTriggerParamsHookInfo` + +NewV0BuildTriggerParamsHookInfo instantiates a new V0BuildTriggerParamsHookInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildTriggerParamsHookInfoWithDefaults + +`func NewV0BuildTriggerParamsHookInfoWithDefaults() *V0BuildTriggerParamsHookInfo` + +NewV0BuildTriggerParamsHookInfoWithDefaults instantiates a new V0BuildTriggerParamsHookInfo object +This 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 *V0BuildTriggerParamsHookInfo) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *V0BuildTriggerParamsHookInfo) 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 *V0BuildTriggerParamsHookInfo) SetType(v string)` + +SetType sets Type field to given value. + +### HasType + +`func (o *V0BuildTriggerParamsHookInfo) 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/go2/docs/V0BuildTriggerRespModel.md b/go2/docs/V0BuildTriggerRespModel.md new file mode 100644 index 0000000..a938cd5 --- /dev/null +++ b/go2/docs/V0BuildTriggerRespModel.md @@ -0,0 +1,238 @@ +# V0BuildTriggerRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BuildNumber** | Pointer to **int32** | | [optional] +**BuildSlug** | Pointer to **string** | | [optional] +**BuildUrl** | Pointer to **string** | | [optional] +**Message** | Pointer to **string** | | [optional] +**Service** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**TriggeredWorkflow** | Pointer to **string** | | [optional] + +## Methods + +### NewV0BuildTriggerRespModel + +`func NewV0BuildTriggerRespModel() *V0BuildTriggerRespModel` + +NewV0BuildTriggerRespModel instantiates a new V0BuildTriggerRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildTriggerRespModelWithDefaults + +`func NewV0BuildTriggerRespModelWithDefaults() *V0BuildTriggerRespModel` + +NewV0BuildTriggerRespModelWithDefaults instantiates a new V0BuildTriggerRespModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBuildNumber + +`func (o *V0BuildTriggerRespModel) GetBuildNumber() int32` + +GetBuildNumber returns the BuildNumber field if non-nil, zero value otherwise. + +### GetBuildNumberOk + +`func (o *V0BuildTriggerRespModel) GetBuildNumberOk() (*int32, bool)` + +GetBuildNumberOk returns a tuple with the BuildNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildNumber + +`func (o *V0BuildTriggerRespModel) SetBuildNumber(v int32)` + +SetBuildNumber sets BuildNumber field to given value. + +### HasBuildNumber + +`func (o *V0BuildTriggerRespModel) HasBuildNumber() bool` + +HasBuildNumber returns a boolean if a field has been set. + +### GetBuildSlug + +`func (o *V0BuildTriggerRespModel) GetBuildSlug() string` + +GetBuildSlug returns the BuildSlug field if non-nil, zero value otherwise. + +### GetBuildSlugOk + +`func (o *V0BuildTriggerRespModel) GetBuildSlugOk() (*string, bool)` + +GetBuildSlugOk returns a tuple with the BuildSlug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildSlug + +`func (o *V0BuildTriggerRespModel) SetBuildSlug(v string)` + +SetBuildSlug sets BuildSlug field to given value. + +### HasBuildSlug + +`func (o *V0BuildTriggerRespModel) HasBuildSlug() bool` + +HasBuildSlug returns a boolean if a field has been set. + +### GetBuildUrl + +`func (o *V0BuildTriggerRespModel) GetBuildUrl() string` + +GetBuildUrl returns the BuildUrl field if non-nil, zero value otherwise. + +### GetBuildUrlOk + +`func (o *V0BuildTriggerRespModel) GetBuildUrlOk() (*string, bool)` + +GetBuildUrlOk returns a tuple with the BuildUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildUrl + +`func (o *V0BuildTriggerRespModel) SetBuildUrl(v string)` + +SetBuildUrl sets BuildUrl field to given value. + +### HasBuildUrl + +`func (o *V0BuildTriggerRespModel) HasBuildUrl() bool` + +HasBuildUrl returns a boolean if a field has been set. + +### GetMessage + +`func (o *V0BuildTriggerRespModel) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *V0BuildTriggerRespModel) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *V0BuildTriggerRespModel) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *V0BuildTriggerRespModel) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetService + +`func (o *V0BuildTriggerRespModel) GetService() string` + +GetService returns the Service field if non-nil, zero value otherwise. + +### GetServiceOk + +`func (o *V0BuildTriggerRespModel) GetServiceOk() (*string, bool)` + +GetServiceOk returns a tuple with the Service field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetService + +`func (o *V0BuildTriggerRespModel) SetService(v string)` + +SetService sets Service field to given value. + +### HasService + +`func (o *V0BuildTriggerRespModel) HasService() bool` + +HasService returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0BuildTriggerRespModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0BuildTriggerRespModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0BuildTriggerRespModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0BuildTriggerRespModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0BuildTriggerRespModel) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0BuildTriggerRespModel) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0BuildTriggerRespModel) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0BuildTriggerRespModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTriggeredWorkflow + +`func (o *V0BuildTriggerRespModel) GetTriggeredWorkflow() string` + +GetTriggeredWorkflow returns the TriggeredWorkflow field if non-nil, zero value otherwise. + +### GetTriggeredWorkflowOk + +`func (o *V0BuildTriggerRespModel) GetTriggeredWorkflowOk() (*string, bool)` + +GetTriggeredWorkflowOk returns a tuple with the TriggeredWorkflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredWorkflow + +`func (o *V0BuildTriggerRespModel) SetTriggeredWorkflow(v string)` + +SetTriggeredWorkflow sets TriggeredWorkflow field to given value. + +### HasTriggeredWorkflow + +`func (o *V0BuildTriggerRespModel) HasTriggeredWorkflow() bool` + +HasTriggeredWorkflow returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0BuildWorkflowListResponseModel.md b/go2/docs/V0BuildWorkflowListResponseModel.md new file mode 100644 index 0000000..90f8bf7 --- /dev/null +++ b/go2/docs/V0BuildWorkflowListResponseModel.md @@ -0,0 +1,56 @@ +# V0BuildWorkflowListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **[]string** | | [optional] + +## Methods + +### NewV0BuildWorkflowListResponseModel + +`func NewV0BuildWorkflowListResponseModel() *V0BuildWorkflowListResponseModel` + +NewV0BuildWorkflowListResponseModel instantiates a new V0BuildWorkflowListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0BuildWorkflowListResponseModelWithDefaults + +`func NewV0BuildWorkflowListResponseModelWithDefaults() *V0BuildWorkflowListResponseModel` + +NewV0BuildWorkflowListResponseModelWithDefaults instantiates a new V0BuildWorkflowListResponseModel object +This 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 *V0BuildWorkflowListResponseModel) GetData() []string` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0BuildWorkflowListResponseModel) GetDataOk() (*[]string, 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 *V0BuildWorkflowListResponseModel) SetData(v []string)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0BuildWorkflowListResponseModel) 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/go2/docs/V0CacheItemDownloadResponseModel.md b/go2/docs/V0CacheItemDownloadResponseModel.md new file mode 100644 index 0000000..69d2bc6 --- /dev/null +++ b/go2/docs/V0CacheItemDownloadResponseModel.md @@ -0,0 +1,56 @@ +# V0CacheItemDownloadResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0CacheItemDownloadURLResponseModel**](V0CacheItemDownloadURLResponseModel.md) | | [optional] + +## Methods + +### NewV0CacheItemDownloadResponseModel + +`func NewV0CacheItemDownloadResponseModel() *V0CacheItemDownloadResponseModel` + +NewV0CacheItemDownloadResponseModel instantiates a new V0CacheItemDownloadResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0CacheItemDownloadResponseModelWithDefaults + +`func NewV0CacheItemDownloadResponseModelWithDefaults() *V0CacheItemDownloadResponseModel` + +NewV0CacheItemDownloadResponseModelWithDefaults instantiates a new V0CacheItemDownloadResponseModel object +This 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 *V0CacheItemDownloadResponseModel) GetData() V0CacheItemDownloadURLResponseModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0CacheItemDownloadResponseModel) GetDataOk() (*V0CacheItemDownloadURLResponseModel, 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 *V0CacheItemDownloadResponseModel) SetData(v V0CacheItemDownloadURLResponseModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0CacheItemDownloadResponseModel) 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/go2/docs/V0CacheItemDownloadURLResponseModel.md b/go2/docs/V0CacheItemDownloadURLResponseModel.md new file mode 100644 index 0000000..50c441a --- /dev/null +++ b/go2/docs/V0CacheItemDownloadURLResponseModel.md @@ -0,0 +1,56 @@ +# V0CacheItemDownloadURLResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DownloadUrl** | Pointer to **string** | | [optional] + +## Methods + +### NewV0CacheItemDownloadURLResponseModel + +`func NewV0CacheItemDownloadURLResponseModel() *V0CacheItemDownloadURLResponseModel` + +NewV0CacheItemDownloadURLResponseModel instantiates a new V0CacheItemDownloadURLResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0CacheItemDownloadURLResponseModelWithDefaults + +`func NewV0CacheItemDownloadURLResponseModelWithDefaults() *V0CacheItemDownloadURLResponseModel` + +NewV0CacheItemDownloadURLResponseModelWithDefaults instantiates a new V0CacheItemDownloadURLResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDownloadUrl + +`func (o *V0CacheItemDownloadURLResponseModel) GetDownloadUrl() string` + +GetDownloadUrl returns the DownloadUrl field if non-nil, zero value otherwise. + +### GetDownloadUrlOk + +`func (o *V0CacheItemDownloadURLResponseModel) GetDownloadUrlOk() (*string, bool)` + +GetDownloadUrlOk returns a tuple with the DownloadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownloadUrl + +`func (o *V0CacheItemDownloadURLResponseModel) SetDownloadUrl(v string)` + +SetDownloadUrl sets DownloadUrl field to given value. + +### HasDownloadUrl + +`func (o *V0CacheItemDownloadURLResponseModel) HasDownloadUrl() bool` + +HasDownloadUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0CacheItemListResponseItemModel.md b/go2/docs/V0CacheItemListResponseItemModel.md new file mode 100644 index 0000000..5b306f0 --- /dev/null +++ b/go2/docs/V0CacheItemListResponseItemModel.md @@ -0,0 +1,238 @@ +# V0CacheItemListResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AppId** | Pointer to **string** | | [optional] +**ArchiveFilename** | Pointer to **string** | | [optional] +**ArchiveSize** | Pointer to **int32** | | [optional] +**CacheKey** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **string** | | [optional] +**ExpiresAt** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**LastUsedAt** | Pointer to **string** | | [optional] + +## Methods + +### NewV0CacheItemListResponseItemModel + +`func NewV0CacheItemListResponseItemModel() *V0CacheItemListResponseItemModel` + +NewV0CacheItemListResponseItemModel instantiates a new V0CacheItemListResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0CacheItemListResponseItemModelWithDefaults + +`func NewV0CacheItemListResponseItemModelWithDefaults() *V0CacheItemListResponseItemModel` + +NewV0CacheItemListResponseItemModelWithDefaults instantiates a new V0CacheItemListResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAppId + +`func (o *V0CacheItemListResponseItemModel) GetAppId() string` + +GetAppId returns the AppId field if non-nil, zero value otherwise. + +### GetAppIdOk + +`func (o *V0CacheItemListResponseItemModel) GetAppIdOk() (*string, bool)` + +GetAppIdOk returns a tuple with the AppId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAppId + +`func (o *V0CacheItemListResponseItemModel) SetAppId(v string)` + +SetAppId sets AppId field to given value. + +### HasAppId + +`func (o *V0CacheItemListResponseItemModel) HasAppId() bool` + +HasAppId returns a boolean if a field has been set. + +### GetArchiveFilename + +`func (o *V0CacheItemListResponseItemModel) GetArchiveFilename() string` + +GetArchiveFilename returns the ArchiveFilename field if non-nil, zero value otherwise. + +### GetArchiveFilenameOk + +`func (o *V0CacheItemListResponseItemModel) GetArchiveFilenameOk() (*string, bool)` + +GetArchiveFilenameOk returns a tuple with the ArchiveFilename field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArchiveFilename + +`func (o *V0CacheItemListResponseItemModel) SetArchiveFilename(v string)` + +SetArchiveFilename sets ArchiveFilename field to given value. + +### HasArchiveFilename + +`func (o *V0CacheItemListResponseItemModel) HasArchiveFilename() bool` + +HasArchiveFilename returns a boolean if a field has been set. + +### GetArchiveSize + +`func (o *V0CacheItemListResponseItemModel) GetArchiveSize() int32` + +GetArchiveSize returns the ArchiveSize field if non-nil, zero value otherwise. + +### GetArchiveSizeOk + +`func (o *V0CacheItemListResponseItemModel) GetArchiveSizeOk() (*int32, bool)` + +GetArchiveSizeOk returns a tuple with the ArchiveSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArchiveSize + +`func (o *V0CacheItemListResponseItemModel) SetArchiveSize(v int32)` + +SetArchiveSize sets ArchiveSize field to given value. + +### HasArchiveSize + +`func (o *V0CacheItemListResponseItemModel) HasArchiveSize() bool` + +HasArchiveSize returns a boolean if a field has been set. + +### GetCacheKey + +`func (o *V0CacheItemListResponseItemModel) GetCacheKey() string` + +GetCacheKey returns the CacheKey field if non-nil, zero value otherwise. + +### GetCacheKeyOk + +`func (o *V0CacheItemListResponseItemModel) GetCacheKeyOk() (*string, bool)` + +GetCacheKeyOk returns a tuple with the CacheKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCacheKey + +`func (o *V0CacheItemListResponseItemModel) SetCacheKey(v string)` + +SetCacheKey sets CacheKey field to given value. + +### HasCacheKey + +`func (o *V0CacheItemListResponseItemModel) HasCacheKey() bool` + +HasCacheKey returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *V0CacheItemListResponseItemModel) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *V0CacheItemListResponseItemModel) GetCreatedAtOk() (*string, 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 *V0CacheItemListResponseItemModel) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *V0CacheItemListResponseItemModel) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetExpiresAt + +`func (o *V0CacheItemListResponseItemModel) GetExpiresAt() string` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *V0CacheItemListResponseItemModel) GetExpiresAtOk() (*string, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *V0CacheItemListResponseItemModel) SetExpiresAt(v string)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *V0CacheItemListResponseItemModel) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### GetId + +`func (o *V0CacheItemListResponseItemModel) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *V0CacheItemListResponseItemModel) 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 *V0CacheItemListResponseItemModel) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *V0CacheItemListResponseItemModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetLastUsedAt + +`func (o *V0CacheItemListResponseItemModel) GetLastUsedAt() string` + +GetLastUsedAt returns the LastUsedAt field if non-nil, zero value otherwise. + +### GetLastUsedAtOk + +`func (o *V0CacheItemListResponseItemModel) GetLastUsedAtOk() (*string, bool)` + +GetLastUsedAtOk returns a tuple with the LastUsedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUsedAt + +`func (o *V0CacheItemListResponseItemModel) SetLastUsedAt(v string)` + +SetLastUsedAt sets LastUsedAt field to given value. + +### HasLastUsedAt + +`func (o *V0CacheItemListResponseItemModel) HasLastUsedAt() bool` + +HasLastUsedAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0CacheItemListResponseModel.md b/go2/docs/V0CacheItemListResponseModel.md new file mode 100644 index 0000000..12e59a2 --- /dev/null +++ b/go2/docs/V0CacheItemListResponseModel.md @@ -0,0 +1,82 @@ +# V0CacheItemListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0CacheItemListResponseItemModel**](V0CacheItemListResponseItemModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0CacheItemListResponseModel + +`func NewV0CacheItemListResponseModel() *V0CacheItemListResponseModel` + +NewV0CacheItemListResponseModel instantiates a new V0CacheItemListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0CacheItemListResponseModelWithDefaults + +`func NewV0CacheItemListResponseModelWithDefaults() *V0CacheItemListResponseModel` + +NewV0CacheItemListResponseModelWithDefaults instantiates a new V0CacheItemListResponseModel object +This 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 *V0CacheItemListResponseModel) GetData() []V0CacheItemListResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0CacheItemListResponseModel) GetDataOk() (*[]V0CacheItemListResponseItemModel, 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 *V0CacheItemListResponseModel) SetData(v []V0CacheItemListResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0CacheItemListResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0CacheItemListResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0CacheItemListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0CacheItemListResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0CacheItemListResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0CommitPaths.md b/go2/docs/V0CommitPaths.md new file mode 100644 index 0000000..f14d431 --- /dev/null +++ b/go2/docs/V0CommitPaths.md @@ -0,0 +1,108 @@ +# V0CommitPaths + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Added** | Pointer to **[]string** | | [optional] +**Modified** | Pointer to **[]string** | | [optional] +**Removed** | Pointer to **[]string** | | [optional] + +## Methods + +### NewV0CommitPaths + +`func NewV0CommitPaths() *V0CommitPaths` + +NewV0CommitPaths instantiates a new V0CommitPaths object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0CommitPathsWithDefaults + +`func NewV0CommitPathsWithDefaults() *V0CommitPaths` + +NewV0CommitPathsWithDefaults instantiates a new V0CommitPaths object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAdded + +`func (o *V0CommitPaths) GetAdded() []string` + +GetAdded returns the Added field if non-nil, zero value otherwise. + +### GetAddedOk + +`func (o *V0CommitPaths) GetAddedOk() (*[]string, bool)` + +GetAddedOk returns a tuple with the Added field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAdded + +`func (o *V0CommitPaths) SetAdded(v []string)` + +SetAdded sets Added field to given value. + +### HasAdded + +`func (o *V0CommitPaths) HasAdded() bool` + +HasAdded returns a boolean if a field has been set. + +### GetModified + +`func (o *V0CommitPaths) GetModified() []string` + +GetModified returns the Modified field if non-nil, zero value otherwise. + +### GetModifiedOk + +`func (o *V0CommitPaths) GetModifiedOk() (*[]string, bool)` + +GetModifiedOk returns a tuple with the Modified field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModified + +`func (o *V0CommitPaths) SetModified(v []string)` + +SetModified sets Modified field to given value. + +### HasModified + +`func (o *V0CommitPaths) HasModified() bool` + +HasModified returns a boolean if a field has been set. + +### GetRemoved + +`func (o *V0CommitPaths) GetRemoved() []string` + +GetRemoved returns the Removed field if non-nil, zero value otherwise. + +### GetRemovedOk + +`func (o *V0CommitPaths) GetRemovedOk() (*[]string, bool)` + +GetRemovedOk returns a tuple with the Removed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRemoved + +`func (o *V0CommitPaths) SetRemoved(v []string)` + +SetRemoved sets Removed field to given value. + +### HasRemoved + +`func (o *V0CommitPaths) HasRemoved() bool` + +HasRemoved returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0OrganizationDataModel.md b/go2/docs/V0OrganizationDataModel.md new file mode 100644 index 0000000..b279e78 --- /dev/null +++ b/go2/docs/V0OrganizationDataModel.md @@ -0,0 +1,160 @@ +# V0OrganizationDataModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvatarIconUrl** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**ConcurrencyCount** | Pointer to **int32** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Owners** | Pointer to [**[]V0OrganizationOwner**](V0OrganizationOwner.md) | | [optional] +**Slug** | Pointer to **string** | | [optional] + +## Methods + +### NewV0OrganizationDataModel + +`func NewV0OrganizationDataModel() *V0OrganizationDataModel` + +NewV0OrganizationDataModel instantiates a new V0OrganizationDataModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0OrganizationDataModelWithDefaults + +`func NewV0OrganizationDataModelWithDefaults() *V0OrganizationDataModel` + +NewV0OrganizationDataModelWithDefaults instantiates a new V0OrganizationDataModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvatarIconUrl + +`func (o *V0OrganizationDataModel) GetAvatarIconUrl() NullsString` + +GetAvatarIconUrl returns the AvatarIconUrl field if non-nil, zero value otherwise. + +### GetAvatarIconUrlOk + +`func (o *V0OrganizationDataModel) GetAvatarIconUrlOk() (*NullsString, bool)` + +GetAvatarIconUrlOk returns a tuple with the AvatarIconUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatarIconUrl + +`func (o *V0OrganizationDataModel) SetAvatarIconUrl(v NullsString)` + +SetAvatarIconUrl sets AvatarIconUrl field to given value. + +### HasAvatarIconUrl + +`func (o *V0OrganizationDataModel) HasAvatarIconUrl() bool` + +HasAvatarIconUrl returns a boolean if a field has been set. + +### GetConcurrencyCount + +`func (o *V0OrganizationDataModel) GetConcurrencyCount() int32` + +GetConcurrencyCount returns the ConcurrencyCount field if non-nil, zero value otherwise. + +### GetConcurrencyCountOk + +`func (o *V0OrganizationDataModel) GetConcurrencyCountOk() (*int32, bool)` + +GetConcurrencyCountOk returns a tuple with the ConcurrencyCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConcurrencyCount + +`func (o *V0OrganizationDataModel) SetConcurrencyCount(v int32)` + +SetConcurrencyCount sets ConcurrencyCount field to given value. + +### HasConcurrencyCount + +`func (o *V0OrganizationDataModel) HasConcurrencyCount() bool` + +HasConcurrencyCount returns a boolean if a field has been set. + +### GetName + +`func (o *V0OrganizationDataModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V0OrganizationDataModel) 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 *V0OrganizationDataModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V0OrganizationDataModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetOwners + +`func (o *V0OrganizationDataModel) GetOwners() []V0OrganizationOwner` + +GetOwners returns the Owners field if non-nil, zero value otherwise. + +### GetOwnersOk + +`func (o *V0OrganizationDataModel) GetOwnersOk() (*[]V0OrganizationOwner, bool)` + +GetOwnersOk returns a tuple with the Owners field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwners + +`func (o *V0OrganizationDataModel) SetOwners(v []V0OrganizationOwner)` + +SetOwners sets Owners field to given value. + +### HasOwners + +`func (o *V0OrganizationDataModel) HasOwners() bool` + +HasOwners returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0OrganizationDataModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0OrganizationDataModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0OrganizationDataModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0OrganizationDataModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0OrganizationListRespModel.md b/go2/docs/V0OrganizationListRespModel.md new file mode 100644 index 0000000..d5470c6 --- /dev/null +++ b/go2/docs/V0OrganizationListRespModel.md @@ -0,0 +1,56 @@ +# V0OrganizationListRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0OrganizationDataModel**](V0OrganizationDataModel.md) | | [optional] + +## Methods + +### NewV0OrganizationListRespModel + +`func NewV0OrganizationListRespModel() *V0OrganizationListRespModel` + +NewV0OrganizationListRespModel instantiates a new V0OrganizationListRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0OrganizationListRespModelWithDefaults + +`func NewV0OrganizationListRespModelWithDefaults() *V0OrganizationListRespModel` + +NewV0OrganizationListRespModelWithDefaults instantiates a new V0OrganizationListRespModel object +This 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 *V0OrganizationListRespModel) GetData() []V0OrganizationDataModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0OrganizationListRespModel) GetDataOk() (*[]V0OrganizationDataModel, 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 *V0OrganizationListRespModel) SetData(v []V0OrganizationDataModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0OrganizationListRespModel) 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/go2/docs/V0OrganizationOwner.md b/go2/docs/V0OrganizationOwner.md new file mode 100644 index 0000000..f2e52c1 --- /dev/null +++ b/go2/docs/V0OrganizationOwner.md @@ -0,0 +1,108 @@ +# V0OrganizationOwner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewV0OrganizationOwner + +`func NewV0OrganizationOwner() *V0OrganizationOwner` + +NewV0OrganizationOwner instantiates a new V0OrganizationOwner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0OrganizationOwnerWithDefaults + +`func NewV0OrganizationOwnerWithDefaults() *V0OrganizationOwner` + +NewV0OrganizationOwnerWithDefaults instantiates a new V0OrganizationOwner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEmail + +`func (o *V0OrganizationOwner) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *V0OrganizationOwner) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *V0OrganizationOwner) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *V0OrganizationOwner) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0OrganizationOwner) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0OrganizationOwner) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0OrganizationOwner) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0OrganizationOwner) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetUsername + +`func (o *V0OrganizationOwner) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *V0OrganizationOwner) 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 *V0OrganizationOwner) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *V0OrganizationOwner) 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/go2/docs/V0OrganizationRespModel.md b/go2/docs/V0OrganizationRespModel.md new file mode 100644 index 0000000..19ead02 --- /dev/null +++ b/go2/docs/V0OrganizationRespModel.md @@ -0,0 +1,56 @@ +# V0OrganizationRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0OrganizationDataModel**](V0OrganizationDataModel.md) | | [optional] + +## Methods + +### NewV0OrganizationRespModel + +`func NewV0OrganizationRespModel() *V0OrganizationRespModel` + +NewV0OrganizationRespModel instantiates a new V0OrganizationRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0OrganizationRespModelWithDefaults + +`func NewV0OrganizationRespModelWithDefaults() *V0OrganizationRespModel` + +NewV0OrganizationRespModelWithDefaults instantiates a new V0OrganizationRespModel object +This 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 *V0OrganizationRespModel) GetData() V0OrganizationDataModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0OrganizationRespModel) GetDataOk() (*V0OrganizationDataModel, 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 *V0OrganizationRespModel) SetData(v V0OrganizationDataModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0OrganizationRespModel) 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/go2/docs/V0OrganizationUpdateMachineTypeParams.md b/go2/docs/V0OrganizationUpdateMachineTypeParams.md new file mode 100644 index 0000000..842e4db --- /dev/null +++ b/go2/docs/V0OrganizationUpdateMachineTypeParams.md @@ -0,0 +1,82 @@ +# V0OrganizationUpdateMachineTypeParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**FromMachine** | Pointer to **string** | Machine type to migrate from | [optional] +**ToMachine** | Pointer to **string** | Machine type to migrate to | [optional] + +## Methods + +### NewV0OrganizationUpdateMachineTypeParams + +`func NewV0OrganizationUpdateMachineTypeParams() *V0OrganizationUpdateMachineTypeParams` + +NewV0OrganizationUpdateMachineTypeParams instantiates a new V0OrganizationUpdateMachineTypeParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0OrganizationUpdateMachineTypeParamsWithDefaults + +`func NewV0OrganizationUpdateMachineTypeParamsWithDefaults() *V0OrganizationUpdateMachineTypeParams` + +NewV0OrganizationUpdateMachineTypeParamsWithDefaults instantiates a new V0OrganizationUpdateMachineTypeParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetFromMachine + +`func (o *V0OrganizationUpdateMachineTypeParams) GetFromMachine() string` + +GetFromMachine returns the FromMachine field if non-nil, zero value otherwise. + +### GetFromMachineOk + +`func (o *V0OrganizationUpdateMachineTypeParams) GetFromMachineOk() (*string, bool)` + +GetFromMachineOk returns a tuple with the FromMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFromMachine + +`func (o *V0OrganizationUpdateMachineTypeParams) SetFromMachine(v string)` + +SetFromMachine sets FromMachine field to given value. + +### HasFromMachine + +`func (o *V0OrganizationUpdateMachineTypeParams) HasFromMachine() bool` + +HasFromMachine returns a boolean if a field has been set. + +### GetToMachine + +`func (o *V0OrganizationUpdateMachineTypeParams) GetToMachine() string` + +GetToMachine returns the ToMachine field if non-nil, zero value otherwise. + +### GetToMachineOk + +`func (o *V0OrganizationUpdateMachineTypeParams) GetToMachineOk() (*string, bool)` + +GetToMachineOk returns a tuple with the ToMachine field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetToMachine + +`func (o *V0OrganizationUpdateMachineTypeParams) SetToMachine(v string)` + +SetToMachine sets ToMachine field to given value. + +### HasToMachine + +`func (o *V0OrganizationUpdateMachineTypeParams) HasToMachine() bool` + +HasToMachine returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0OrganizationUpdateMachineTypeResponse.md b/go2/docs/V0OrganizationUpdateMachineTypeResponse.md new file mode 100644 index 0000000..07b3d11 --- /dev/null +++ b/go2/docs/V0OrganizationUpdateMachineTypeResponse.md @@ -0,0 +1,108 @@ +# V0OrganizationUpdateMachineTypeResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Errors** | Pointer to [**[]V0OrganizationUpdateMachineTypeResponseErrorsInner**](V0OrganizationUpdateMachineTypeResponseErrorsInner.md) | | [optional] +**Message** | Pointer to **string** | The result of the migration | [optional] +**MigratedApps** | Pointer to **[]string** | The migrated apps' identifiers in the following format \"#{app.title} (#{app.slug})\" | [optional] + +## Methods + +### NewV0OrganizationUpdateMachineTypeResponse + +`func NewV0OrganizationUpdateMachineTypeResponse() *V0OrganizationUpdateMachineTypeResponse` + +NewV0OrganizationUpdateMachineTypeResponse instantiates a new V0OrganizationUpdateMachineTypeResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0OrganizationUpdateMachineTypeResponseWithDefaults + +`func NewV0OrganizationUpdateMachineTypeResponseWithDefaults() *V0OrganizationUpdateMachineTypeResponse` + +NewV0OrganizationUpdateMachineTypeResponseWithDefaults instantiates a new V0OrganizationUpdateMachineTypeResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetErrors + +`func (o *V0OrganizationUpdateMachineTypeResponse) GetErrors() []V0OrganizationUpdateMachineTypeResponseErrorsInner` + +GetErrors returns the Errors field if non-nil, zero value otherwise. + +### GetErrorsOk + +`func (o *V0OrganizationUpdateMachineTypeResponse) GetErrorsOk() (*[]V0OrganizationUpdateMachineTypeResponseErrorsInner, bool)` + +GetErrorsOk returns a tuple with the Errors field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetErrors + +`func (o *V0OrganizationUpdateMachineTypeResponse) SetErrors(v []V0OrganizationUpdateMachineTypeResponseErrorsInner)` + +SetErrors sets Errors field to given value. + +### HasErrors + +`func (o *V0OrganizationUpdateMachineTypeResponse) HasErrors() bool` + +HasErrors returns a boolean if a field has been set. + +### GetMessage + +`func (o *V0OrganizationUpdateMachineTypeResponse) GetMessage() string` + +GetMessage returns the Message field if non-nil, zero value otherwise. + +### GetMessageOk + +`func (o *V0OrganizationUpdateMachineTypeResponse) GetMessageOk() (*string, bool)` + +GetMessageOk returns a tuple with the Message field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMessage + +`func (o *V0OrganizationUpdateMachineTypeResponse) SetMessage(v string)` + +SetMessage sets Message field to given value. + +### HasMessage + +`func (o *V0OrganizationUpdateMachineTypeResponse) HasMessage() bool` + +HasMessage returns a boolean if a field has been set. + +### GetMigratedApps + +`func (o *V0OrganizationUpdateMachineTypeResponse) GetMigratedApps() []string` + +GetMigratedApps returns the MigratedApps field if non-nil, zero value otherwise. + +### GetMigratedAppsOk + +`func (o *V0OrganizationUpdateMachineTypeResponse) GetMigratedAppsOk() (*[]string, bool)` + +GetMigratedAppsOk returns a tuple with the MigratedApps field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMigratedApps + +`func (o *V0OrganizationUpdateMachineTypeResponse) SetMigratedApps(v []string)` + +SetMigratedApps sets MigratedApps field to given value. + +### HasMigratedApps + +`func (o *V0OrganizationUpdateMachineTypeResponse) HasMigratedApps() bool` + +HasMigratedApps returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0OrganizationUpdateMachineTypeResponseErrorsInner.md b/go2/docs/V0OrganizationUpdateMachineTypeResponseErrorsInner.md new file mode 100644 index 0000000..8193d50 --- /dev/null +++ b/go2/docs/V0OrganizationUpdateMachineTypeResponseErrorsInner.md @@ -0,0 +1,82 @@ +# V0OrganizationUpdateMachineTypeResponseErrorsInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**App** | Pointer to **string** | The apps which had an error's identifiers in the following format \"#{app.title} (#{app.slug})\" | [optional] +**Error** | Pointer to **string** | | [optional] + +## Methods + +### NewV0OrganizationUpdateMachineTypeResponseErrorsInner + +`func NewV0OrganizationUpdateMachineTypeResponseErrorsInner() *V0OrganizationUpdateMachineTypeResponseErrorsInner` + +NewV0OrganizationUpdateMachineTypeResponseErrorsInner instantiates a new V0OrganizationUpdateMachineTypeResponseErrorsInner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0OrganizationUpdateMachineTypeResponseErrorsInnerWithDefaults + +`func NewV0OrganizationUpdateMachineTypeResponseErrorsInnerWithDefaults() *V0OrganizationUpdateMachineTypeResponseErrorsInner` + +NewV0OrganizationUpdateMachineTypeResponseErrorsInnerWithDefaults instantiates a new V0OrganizationUpdateMachineTypeResponseErrorsInner object +This 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 *V0OrganizationUpdateMachineTypeResponseErrorsInner) GetApp() string` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *V0OrganizationUpdateMachineTypeResponseErrorsInner) 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 *V0OrganizationUpdateMachineTypeResponseErrorsInner) SetApp(v string)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *V0OrganizationUpdateMachineTypeResponseErrorsInner) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetError + +`func (o *V0OrganizationUpdateMachineTypeResponseErrorsInner) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *V0OrganizationUpdateMachineTypeResponseErrorsInner) 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 *V0OrganizationUpdateMachineTypeResponseErrorsInner) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *V0OrganizationUpdateMachineTypeResponseErrorsInner) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0OwnerAccountResponseModel.md b/go2/docs/V0OwnerAccountResponseModel.md new file mode 100644 index 0000000..d3444a6 --- /dev/null +++ b/go2/docs/V0OwnerAccountResponseModel.md @@ -0,0 +1,108 @@ +# V0OwnerAccountResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AccountType** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] + +## Methods + +### NewV0OwnerAccountResponseModel + +`func NewV0OwnerAccountResponseModel() *V0OwnerAccountResponseModel` + +NewV0OwnerAccountResponseModel instantiates a new V0OwnerAccountResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0OwnerAccountResponseModelWithDefaults + +`func NewV0OwnerAccountResponseModelWithDefaults() *V0OwnerAccountResponseModel` + +NewV0OwnerAccountResponseModelWithDefaults instantiates a new V0OwnerAccountResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAccountType + +`func (o *V0OwnerAccountResponseModel) GetAccountType() string` + +GetAccountType returns the AccountType field if non-nil, zero value otherwise. + +### GetAccountTypeOk + +`func (o *V0OwnerAccountResponseModel) GetAccountTypeOk() (*string, bool)` + +GetAccountTypeOk returns a tuple with the AccountType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccountType + +`func (o *V0OwnerAccountResponseModel) SetAccountType(v string)` + +SetAccountType sets AccountType field to given value. + +### HasAccountType + +`func (o *V0OwnerAccountResponseModel) HasAccountType() bool` + +HasAccountType returns a boolean if a field has been set. + +### GetName + +`func (o *V0OwnerAccountResponseModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V0OwnerAccountResponseModel) 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 *V0OwnerAccountResponseModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V0OwnerAccountResponseModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0OwnerAccountResponseModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0OwnerAccountResponseModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0OwnerAccountResponseModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0OwnerAccountResponseModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0OwnerAddOnResponseItemModel.md b/go2/docs/V0OwnerAddOnResponseItemModel.md new file mode 100644 index 0000000..c800b5c --- /dev/null +++ b/go2/docs/V0OwnerAddOnResponseItemModel.md @@ -0,0 +1,238 @@ +# V0OwnerAddOnResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Apps** | Pointer to [**[]V0AddOnAppResponseItemModel**](V0AddOnAppResponseItemModel.md) | | [optional] +**DocumentationUrl** | Pointer to **string** | | [optional] +**HasUi** | Pointer to **bool** | | [optional] +**Icon** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**IsBeta** | Pointer to **bool** | | [optional] +**Summary** | Pointer to **string** | | [optional] +**Title** | Pointer to **string** | | [optional] + +## Methods + +### NewV0OwnerAddOnResponseItemModel + +`func NewV0OwnerAddOnResponseItemModel() *V0OwnerAddOnResponseItemModel` + +NewV0OwnerAddOnResponseItemModel instantiates a new V0OwnerAddOnResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0OwnerAddOnResponseItemModelWithDefaults + +`func NewV0OwnerAddOnResponseItemModelWithDefaults() *V0OwnerAddOnResponseItemModel` + +NewV0OwnerAddOnResponseItemModelWithDefaults instantiates a new V0OwnerAddOnResponseItemModel object +This 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 *V0OwnerAddOnResponseItemModel) GetApps() []V0AddOnAppResponseItemModel` + +GetApps returns the Apps field if non-nil, zero value otherwise. + +### GetAppsOk + +`func (o *V0OwnerAddOnResponseItemModel) GetAppsOk() (*[]V0AddOnAppResponseItemModel, 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 *V0OwnerAddOnResponseItemModel) SetApps(v []V0AddOnAppResponseItemModel)` + +SetApps sets Apps field to given value. + +### HasApps + +`func (o *V0OwnerAddOnResponseItemModel) HasApps() bool` + +HasApps returns a boolean if a field has been set. + +### GetDocumentationUrl + +`func (o *V0OwnerAddOnResponseItemModel) GetDocumentationUrl() string` + +GetDocumentationUrl returns the DocumentationUrl field if non-nil, zero value otherwise. + +### GetDocumentationUrlOk + +`func (o *V0OwnerAddOnResponseItemModel) 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 *V0OwnerAddOnResponseItemModel) SetDocumentationUrl(v string)` + +SetDocumentationUrl sets DocumentationUrl field to given value. + +### HasDocumentationUrl + +`func (o *V0OwnerAddOnResponseItemModel) HasDocumentationUrl() bool` + +HasDocumentationUrl returns a boolean if a field has been set. + +### GetHasUi + +`func (o *V0OwnerAddOnResponseItemModel) GetHasUi() bool` + +GetHasUi returns the HasUi field if non-nil, zero value otherwise. + +### GetHasUiOk + +`func (o *V0OwnerAddOnResponseItemModel) GetHasUiOk() (*bool, bool)` + +GetHasUiOk returns a tuple with the HasUi field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasUi + +`func (o *V0OwnerAddOnResponseItemModel) SetHasUi(v bool)` + +SetHasUi sets HasUi field to given value. + +### HasHasUi + +`func (o *V0OwnerAddOnResponseItemModel) HasHasUi() bool` + +HasHasUi returns a boolean if a field has been set. + +### GetIcon + +`func (o *V0OwnerAddOnResponseItemModel) GetIcon() string` + +GetIcon returns the Icon field if non-nil, zero value otherwise. + +### GetIconOk + +`func (o *V0OwnerAddOnResponseItemModel) GetIconOk() (*string, bool)` + +GetIconOk returns a tuple with the Icon field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIcon + +`func (o *V0OwnerAddOnResponseItemModel) SetIcon(v string)` + +SetIcon sets Icon field to given value. + +### HasIcon + +`func (o *V0OwnerAddOnResponseItemModel) HasIcon() bool` + +HasIcon returns a boolean if a field has been set. + +### GetId + +`func (o *V0OwnerAddOnResponseItemModel) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *V0OwnerAddOnResponseItemModel) 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 *V0OwnerAddOnResponseItemModel) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *V0OwnerAddOnResponseItemModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetIsBeta + +`func (o *V0OwnerAddOnResponseItemModel) GetIsBeta() bool` + +GetIsBeta returns the IsBeta field if non-nil, zero value otherwise. + +### GetIsBetaOk + +`func (o *V0OwnerAddOnResponseItemModel) GetIsBetaOk() (*bool, bool)` + +GetIsBetaOk returns a tuple with the IsBeta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsBeta + +`func (o *V0OwnerAddOnResponseItemModel) SetIsBeta(v bool)` + +SetIsBeta sets IsBeta field to given value. + +### HasIsBeta + +`func (o *V0OwnerAddOnResponseItemModel) HasIsBeta() bool` + +HasIsBeta returns a boolean if a field has been set. + +### GetSummary + +`func (o *V0OwnerAddOnResponseItemModel) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *V0OwnerAddOnResponseItemModel) GetSummaryOk() (*string, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *V0OwnerAddOnResponseItemModel) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *V0OwnerAddOnResponseItemModel) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### GetTitle + +`func (o *V0OwnerAddOnResponseItemModel) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *V0OwnerAddOnResponseItemModel) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *V0OwnerAddOnResponseItemModel) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *V0OwnerAddOnResponseItemModel) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0OwnerAddOnsListResponseModel.md b/go2/docs/V0OwnerAddOnsListResponseModel.md new file mode 100644 index 0000000..240018f --- /dev/null +++ b/go2/docs/V0OwnerAddOnsListResponseModel.md @@ -0,0 +1,56 @@ +# V0OwnerAddOnsListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0OwnerAddOnResponseItemModel**](V0OwnerAddOnResponseItemModel.md) | | [optional] + +## Methods + +### NewV0OwnerAddOnsListResponseModel + +`func NewV0OwnerAddOnsListResponseModel() *V0OwnerAddOnsListResponseModel` + +NewV0OwnerAddOnsListResponseModel instantiates a new V0OwnerAddOnsListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0OwnerAddOnsListResponseModelWithDefaults + +`func NewV0OwnerAddOnsListResponseModelWithDefaults() *V0OwnerAddOnsListResponseModel` + +NewV0OwnerAddOnsListResponseModelWithDefaults instantiates a new V0OwnerAddOnsListResponseModel object +This 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 *V0OwnerAddOnsListResponseModel) GetData() []V0OwnerAddOnResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0OwnerAddOnsListResponseModel) GetDataOk() (*[]V0OwnerAddOnResponseItemModel, 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 *V0OwnerAddOnsListResponseModel) SetData(v []V0OwnerAddOnResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0OwnerAddOnsListResponseModel) 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/go2/docs/V0PagingResponseModel.md b/go2/docs/V0PagingResponseModel.md new file mode 100644 index 0000000..b0aa780 --- /dev/null +++ b/go2/docs/V0PagingResponseModel.md @@ -0,0 +1,108 @@ +# V0PagingResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Next** | Pointer to **string** | Next is the \"anchor\" for pagination. This value should be passed to the same endpoint to get the next page. Empty/not included if there's no \"next\" page. Stop paging when there's no \"Next\" item in the response! | [optional] +**PageItemLimit** | Pointer to **int32** | PageItemLimit - per-page item count. A given page might include less items if there's not enough items. This value is the \"max item count per page\". | [optional] +**TotalItemCount** | Pointer to **int32** | TotalItemCount - total item count, through \"all pages\" | [optional] + +## Methods + +### NewV0PagingResponseModel + +`func NewV0PagingResponseModel() *V0PagingResponseModel` + +NewV0PagingResponseModel instantiates a new V0PagingResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PagingResponseModelWithDefaults + +`func NewV0PagingResponseModelWithDefaults() *V0PagingResponseModel` + +NewV0PagingResponseModelWithDefaults instantiates a new V0PagingResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetNext + +`func (o *V0PagingResponseModel) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *V0PagingResponseModel) 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 *V0PagingResponseModel) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *V0PagingResponseModel) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### GetPageItemLimit + +`func (o *V0PagingResponseModel) GetPageItemLimit() int32` + +GetPageItemLimit returns the PageItemLimit field if non-nil, zero value otherwise. + +### GetPageItemLimitOk + +`func (o *V0PagingResponseModel) GetPageItemLimitOk() (*int32, bool)` + +GetPageItemLimitOk returns a tuple with the PageItemLimit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPageItemLimit + +`func (o *V0PagingResponseModel) SetPageItemLimit(v int32)` + +SetPageItemLimit sets PageItemLimit field to given value. + +### HasPageItemLimit + +`func (o *V0PagingResponseModel) HasPageItemLimit() bool` + +HasPageItemLimit returns a boolean if a field has been set. + +### GetTotalItemCount + +`func (o *V0PagingResponseModel) GetTotalItemCount() int32` + +GetTotalItemCount returns the TotalItemCount field if non-nil, zero value otherwise. + +### GetTotalItemCountOk + +`func (o *V0PagingResponseModel) GetTotalItemCountOk() (*int32, bool)` + +GetTotalItemCountOk returns a tuple with the TotalItemCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalItemCount + +`func (o *V0PagingResponseModel) SetTotalItemCount(v int32)` + +SetTotalItemCount sets TotalItemCount field to given value. + +### HasTotalItemCount + +`func (o *V0PagingResponseModel) HasTotalItemCount() bool` + +HasTotalItemCount returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0PipelineAbortParams.md b/go2/docs/V0PipelineAbortParams.md new file mode 100644 index 0000000..37eb29a --- /dev/null +++ b/go2/docs/V0PipelineAbortParams.md @@ -0,0 +1,93 @@ +# V0PipelineAbortParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AbortReason** | **string** | | +**AbortWithSuccess** | **bool** | | +**SkipNotifications** | **bool** | | + +## Methods + +### NewV0PipelineAbortParams + +`func NewV0PipelineAbortParams(abortReason string, abortWithSuccess bool, skipNotifications bool, ) *V0PipelineAbortParams` + +NewV0PipelineAbortParams instantiates a new V0PipelineAbortParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineAbortParamsWithDefaults + +`func NewV0PipelineAbortParamsWithDefaults() *V0PipelineAbortParams` + +NewV0PipelineAbortParamsWithDefaults instantiates a new V0PipelineAbortParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAbortReason + +`func (o *V0PipelineAbortParams) GetAbortReason() string` + +GetAbortReason returns the AbortReason field if non-nil, zero value otherwise. + +### GetAbortReasonOk + +`func (o *V0PipelineAbortParams) GetAbortReasonOk() (*string, bool)` + +GetAbortReasonOk returns a tuple with the AbortReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbortReason + +`func (o *V0PipelineAbortParams) SetAbortReason(v string)` + +SetAbortReason sets AbortReason field to given value. + + +### GetAbortWithSuccess + +`func (o *V0PipelineAbortParams) GetAbortWithSuccess() bool` + +GetAbortWithSuccess returns the AbortWithSuccess field if non-nil, zero value otherwise. + +### GetAbortWithSuccessOk + +`func (o *V0PipelineAbortParams) GetAbortWithSuccessOk() (*bool, bool)` + +GetAbortWithSuccessOk returns a tuple with the AbortWithSuccess field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbortWithSuccess + +`func (o *V0PipelineAbortParams) SetAbortWithSuccess(v bool)` + +SetAbortWithSuccess sets AbortWithSuccess field to given value. + + +### GetSkipNotifications + +`func (o *V0PipelineAbortParams) GetSkipNotifications() bool` + +GetSkipNotifications returns the SkipNotifications field if non-nil, zero value otherwise. + +### GetSkipNotificationsOk + +`func (o *V0PipelineAbortParams) GetSkipNotificationsOk() (*bool, bool)` + +GetSkipNotificationsOk returns a tuple with the SkipNotifications field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkipNotifications + +`func (o *V0PipelineAbortParams) SetSkipNotifications(v bool)` + +SetSkipNotifications sets SkipNotifications 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/go2/docs/V0PipelineListAllResponseItemModel.md b/go2/docs/V0PipelineListAllResponseItemModel.md new file mode 100644 index 0000000..35e351d --- /dev/null +++ b/go2/docs/V0PipelineListAllResponseItemModel.md @@ -0,0 +1,524 @@ +# V0PipelineListAllResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Branch** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**BuildNumber** | Pointer to **int32** | | [optional] +**CommitHash** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**CommitMessage** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**CreditCost** | Pointer to [**NullsInt64**](NullsInt64.md) | | [optional] +**FinishedAt** | Pointer to **string** | | [optional] +**IsOnHold** | Pointer to **bool** | | [optional] +**IsPipeline** | Pointer to **bool** | | [optional] +**IsProcessed** | Pointer to **bool** | | [optional] +**PullRequestId** | Pointer to **int32** | | [optional] +**PullRequestTargetBranch** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**Repository** | Pointer to [**V0AppResponseItemModel**](V0AppResponseItemModel.md) | | [optional] +**Slug** | Pointer to **string** | | [optional] +**StartedAt** | Pointer to **string** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**Tag** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**TriggeredAt** | Pointer to **string** | | [optional] +**TriggeredBy** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**TriggeredWorkflow** | Pointer to **string** | | [optional] + +## Methods + +### NewV0PipelineListAllResponseItemModel + +`func NewV0PipelineListAllResponseItemModel() *V0PipelineListAllResponseItemModel` + +NewV0PipelineListAllResponseItemModel instantiates a new V0PipelineListAllResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineListAllResponseItemModelWithDefaults + +`func NewV0PipelineListAllResponseItemModelWithDefaults() *V0PipelineListAllResponseItemModel` + +NewV0PipelineListAllResponseItemModelWithDefaults instantiates a new V0PipelineListAllResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBranch + +`func (o *V0PipelineListAllResponseItemModel) GetBranch() NullsString` + +GetBranch returns the Branch field if non-nil, zero value otherwise. + +### GetBranchOk + +`func (o *V0PipelineListAllResponseItemModel) GetBranchOk() (*NullsString, bool)` + +GetBranchOk returns a tuple with the Branch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranch + +`func (o *V0PipelineListAllResponseItemModel) SetBranch(v NullsString)` + +SetBranch sets Branch field to given value. + +### HasBranch + +`func (o *V0PipelineListAllResponseItemModel) HasBranch() bool` + +HasBranch returns a boolean if a field has been set. + +### GetBuildNumber + +`func (o *V0PipelineListAllResponseItemModel) GetBuildNumber() int32` + +GetBuildNumber returns the BuildNumber field if non-nil, zero value otherwise. + +### GetBuildNumberOk + +`func (o *V0PipelineListAllResponseItemModel) GetBuildNumberOk() (*int32, bool)` + +GetBuildNumberOk returns a tuple with the BuildNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildNumber + +`func (o *V0PipelineListAllResponseItemModel) SetBuildNumber(v int32)` + +SetBuildNumber sets BuildNumber field to given value. + +### HasBuildNumber + +`func (o *V0PipelineListAllResponseItemModel) HasBuildNumber() bool` + +HasBuildNumber returns a boolean if a field has been set. + +### GetCommitHash + +`func (o *V0PipelineListAllResponseItemModel) GetCommitHash() NullsString` + +GetCommitHash returns the CommitHash field if non-nil, zero value otherwise. + +### GetCommitHashOk + +`func (o *V0PipelineListAllResponseItemModel) GetCommitHashOk() (*NullsString, bool)` + +GetCommitHashOk returns a tuple with the CommitHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitHash + +`func (o *V0PipelineListAllResponseItemModel) SetCommitHash(v NullsString)` + +SetCommitHash sets CommitHash field to given value. + +### HasCommitHash + +`func (o *V0PipelineListAllResponseItemModel) HasCommitHash() bool` + +HasCommitHash returns a boolean if a field has been set. + +### GetCommitMessage + +`func (o *V0PipelineListAllResponseItemModel) GetCommitMessage() NullsString` + +GetCommitMessage returns the CommitMessage field if non-nil, zero value otherwise. + +### GetCommitMessageOk + +`func (o *V0PipelineListAllResponseItemModel) GetCommitMessageOk() (*NullsString, bool)` + +GetCommitMessageOk returns a tuple with the CommitMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitMessage + +`func (o *V0PipelineListAllResponseItemModel) SetCommitMessage(v NullsString)` + +SetCommitMessage sets CommitMessage field to given value. + +### HasCommitMessage + +`func (o *V0PipelineListAllResponseItemModel) HasCommitMessage() bool` + +HasCommitMessage returns a boolean if a field has been set. + +### GetCreditCost + +`func (o *V0PipelineListAllResponseItemModel) GetCreditCost() NullsInt64` + +GetCreditCost returns the CreditCost field if non-nil, zero value otherwise. + +### GetCreditCostOk + +`func (o *V0PipelineListAllResponseItemModel) GetCreditCostOk() (*NullsInt64, bool)` + +GetCreditCostOk returns a tuple with the CreditCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreditCost + +`func (o *V0PipelineListAllResponseItemModel) SetCreditCost(v NullsInt64)` + +SetCreditCost sets CreditCost field to given value. + +### HasCreditCost + +`func (o *V0PipelineListAllResponseItemModel) HasCreditCost() bool` + +HasCreditCost returns a boolean if a field has been set. + +### GetFinishedAt + +`func (o *V0PipelineListAllResponseItemModel) GetFinishedAt() string` + +GetFinishedAt returns the FinishedAt field if non-nil, zero value otherwise. + +### GetFinishedAtOk + +`func (o *V0PipelineListAllResponseItemModel) GetFinishedAtOk() (*string, bool)` + +GetFinishedAtOk returns a tuple with the FinishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFinishedAt + +`func (o *V0PipelineListAllResponseItemModel) SetFinishedAt(v string)` + +SetFinishedAt sets FinishedAt field to given value. + +### HasFinishedAt + +`func (o *V0PipelineListAllResponseItemModel) HasFinishedAt() bool` + +HasFinishedAt returns a boolean if a field has been set. + +### GetIsOnHold + +`func (o *V0PipelineListAllResponseItemModel) GetIsOnHold() bool` + +GetIsOnHold returns the IsOnHold field if non-nil, zero value otherwise. + +### GetIsOnHoldOk + +`func (o *V0PipelineListAllResponseItemModel) GetIsOnHoldOk() (*bool, bool)` + +GetIsOnHoldOk returns a tuple with the IsOnHold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsOnHold + +`func (o *V0PipelineListAllResponseItemModel) SetIsOnHold(v bool)` + +SetIsOnHold sets IsOnHold field to given value. + +### HasIsOnHold + +`func (o *V0PipelineListAllResponseItemModel) HasIsOnHold() bool` + +HasIsOnHold returns a boolean if a field has been set. + +### GetIsPipeline + +`func (o *V0PipelineListAllResponseItemModel) GetIsPipeline() bool` + +GetIsPipeline returns the IsPipeline field if non-nil, zero value otherwise. + +### GetIsPipelineOk + +`func (o *V0PipelineListAllResponseItemModel) GetIsPipelineOk() (*bool, bool)` + +GetIsPipelineOk returns a tuple with the IsPipeline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPipeline + +`func (o *V0PipelineListAllResponseItemModel) SetIsPipeline(v bool)` + +SetIsPipeline sets IsPipeline field to given value. + +### HasIsPipeline + +`func (o *V0PipelineListAllResponseItemModel) HasIsPipeline() bool` + +HasIsPipeline returns a boolean if a field has been set. + +### GetIsProcessed + +`func (o *V0PipelineListAllResponseItemModel) GetIsProcessed() bool` + +GetIsProcessed returns the IsProcessed field if non-nil, zero value otherwise. + +### GetIsProcessedOk + +`func (o *V0PipelineListAllResponseItemModel) GetIsProcessedOk() (*bool, bool)` + +GetIsProcessedOk returns a tuple with the IsProcessed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsProcessed + +`func (o *V0PipelineListAllResponseItemModel) SetIsProcessed(v bool)` + +SetIsProcessed sets IsProcessed field to given value. + +### HasIsProcessed + +`func (o *V0PipelineListAllResponseItemModel) HasIsProcessed() bool` + +HasIsProcessed returns a boolean if a field has been set. + +### GetPullRequestId + +`func (o *V0PipelineListAllResponseItemModel) GetPullRequestId() int32` + +GetPullRequestId returns the PullRequestId field if non-nil, zero value otherwise. + +### GetPullRequestIdOk + +`func (o *V0PipelineListAllResponseItemModel) GetPullRequestIdOk() (*int32, bool)` + +GetPullRequestIdOk returns a tuple with the PullRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestId + +`func (o *V0PipelineListAllResponseItemModel) SetPullRequestId(v int32)` + +SetPullRequestId sets PullRequestId field to given value. + +### HasPullRequestId + +`func (o *V0PipelineListAllResponseItemModel) HasPullRequestId() bool` + +HasPullRequestId returns a boolean if a field has been set. + +### GetPullRequestTargetBranch + +`func (o *V0PipelineListAllResponseItemModel) GetPullRequestTargetBranch() NullsString` + +GetPullRequestTargetBranch returns the PullRequestTargetBranch field if non-nil, zero value otherwise. + +### GetPullRequestTargetBranchOk + +`func (o *V0PipelineListAllResponseItemModel) GetPullRequestTargetBranchOk() (*NullsString, bool)` + +GetPullRequestTargetBranchOk returns a tuple with the PullRequestTargetBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestTargetBranch + +`func (o *V0PipelineListAllResponseItemModel) SetPullRequestTargetBranch(v NullsString)` + +SetPullRequestTargetBranch sets PullRequestTargetBranch field to given value. + +### HasPullRequestTargetBranch + +`func (o *V0PipelineListAllResponseItemModel) HasPullRequestTargetBranch() bool` + +HasPullRequestTargetBranch returns a boolean if a field has been set. + +### GetRepository + +`func (o *V0PipelineListAllResponseItemModel) GetRepository() V0AppResponseItemModel` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *V0PipelineListAllResponseItemModel) GetRepositoryOk() (*V0AppResponseItemModel, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *V0PipelineListAllResponseItemModel) SetRepository(v V0AppResponseItemModel)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *V0PipelineListAllResponseItemModel) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0PipelineListAllResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0PipelineListAllResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0PipelineListAllResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0PipelineListAllResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetStartedAt + +`func (o *V0PipelineListAllResponseItemModel) GetStartedAt() string` + +GetStartedAt returns the StartedAt field if non-nil, zero value otherwise. + +### GetStartedAtOk + +`func (o *V0PipelineListAllResponseItemModel) GetStartedAtOk() (*string, bool)` + +GetStartedAtOk returns a tuple with the StartedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartedAt + +`func (o *V0PipelineListAllResponseItemModel) SetStartedAt(v string)` + +SetStartedAt sets StartedAt field to given value. + +### HasStartedAt + +`func (o *V0PipelineListAllResponseItemModel) HasStartedAt() bool` + +HasStartedAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0PipelineListAllResponseItemModel) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0PipelineListAllResponseItemModel) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0PipelineListAllResponseItemModel) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0PipelineListAllResponseItemModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTag + +`func (o *V0PipelineListAllResponseItemModel) GetTag() NullsString` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *V0PipelineListAllResponseItemModel) GetTagOk() (*NullsString, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *V0PipelineListAllResponseItemModel) SetTag(v NullsString)` + +SetTag sets Tag field to given value. + +### HasTag + +`func (o *V0PipelineListAllResponseItemModel) HasTag() bool` + +HasTag returns a boolean if a field has been set. + +### GetTriggeredAt + +`func (o *V0PipelineListAllResponseItemModel) GetTriggeredAt() string` + +GetTriggeredAt returns the TriggeredAt field if non-nil, zero value otherwise. + +### GetTriggeredAtOk + +`func (o *V0PipelineListAllResponseItemModel) GetTriggeredAtOk() (*string, bool)` + +GetTriggeredAtOk returns a tuple with the TriggeredAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredAt + +`func (o *V0PipelineListAllResponseItemModel) SetTriggeredAt(v string)` + +SetTriggeredAt sets TriggeredAt field to given value. + +### HasTriggeredAt + +`func (o *V0PipelineListAllResponseItemModel) HasTriggeredAt() bool` + +HasTriggeredAt returns a boolean if a field has been set. + +### GetTriggeredBy + +`func (o *V0PipelineListAllResponseItemModel) GetTriggeredBy() NullsString` + +GetTriggeredBy returns the TriggeredBy field if non-nil, zero value otherwise. + +### GetTriggeredByOk + +`func (o *V0PipelineListAllResponseItemModel) GetTriggeredByOk() (*NullsString, bool)` + +GetTriggeredByOk returns a tuple with the TriggeredBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredBy + +`func (o *V0PipelineListAllResponseItemModel) SetTriggeredBy(v NullsString)` + +SetTriggeredBy sets TriggeredBy field to given value. + +### HasTriggeredBy + +`func (o *V0PipelineListAllResponseItemModel) HasTriggeredBy() bool` + +HasTriggeredBy returns a boolean if a field has been set. + +### GetTriggeredWorkflow + +`func (o *V0PipelineListAllResponseItemModel) GetTriggeredWorkflow() string` + +GetTriggeredWorkflow returns the TriggeredWorkflow field if non-nil, zero value otherwise. + +### GetTriggeredWorkflowOk + +`func (o *V0PipelineListAllResponseItemModel) GetTriggeredWorkflowOk() (*string, bool)` + +GetTriggeredWorkflowOk returns a tuple with the TriggeredWorkflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredWorkflow + +`func (o *V0PipelineListAllResponseItemModel) SetTriggeredWorkflow(v string)` + +SetTriggeredWorkflow sets TriggeredWorkflow field to given value. + +### HasTriggeredWorkflow + +`func (o *V0PipelineListAllResponseItemModel) HasTriggeredWorkflow() bool` + +HasTriggeredWorkflow returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0PipelineListAllResponseModel.md b/go2/docs/V0PipelineListAllResponseModel.md new file mode 100644 index 0000000..2664973 --- /dev/null +++ b/go2/docs/V0PipelineListAllResponseModel.md @@ -0,0 +1,82 @@ +# V0PipelineListAllResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0PipelineListAllResponseItemModel**](V0PipelineListAllResponseItemModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0PipelineListAllResponseModel + +`func NewV0PipelineListAllResponseModel() *V0PipelineListAllResponseModel` + +NewV0PipelineListAllResponseModel instantiates a new V0PipelineListAllResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineListAllResponseModelWithDefaults + +`func NewV0PipelineListAllResponseModelWithDefaults() *V0PipelineListAllResponseModel` + +NewV0PipelineListAllResponseModelWithDefaults instantiates a new V0PipelineListAllResponseModel object +This 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 *V0PipelineListAllResponseModel) GetData() []V0PipelineListAllResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0PipelineListAllResponseModel) GetDataOk() (*[]V0PipelineListAllResponseItemModel, 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 *V0PipelineListAllResponseModel) SetData(v []V0PipelineListAllResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0PipelineListAllResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0PipelineListAllResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0PipelineListAllResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0PipelineListAllResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0PipelineListAllResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0PipelineListResponseItemModel.md b/go2/docs/V0PipelineListResponseItemModel.md new file mode 100644 index 0000000..e8018e9 --- /dev/null +++ b/go2/docs/V0PipelineListResponseItemModel.md @@ -0,0 +1,602 @@ +# V0PipelineListResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Artifacts** | Pointer to [**[]PipelineabledomainArtifactMeta**](PipelineabledomainArtifactMeta.md) | | [optional] +**Branch** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**BuildNumber** | Pointer to **int32** | | [optional] +**BuildToolInvocations** | Pointer to [**[]PipelineabledomainBuildToolInvocation**](PipelineabledomainBuildToolInvocation.md) | | [optional] +**CommitHash** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**CommitMessage** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**CreditCost** | Pointer to [**NullsInt64**](NullsInt64.md) | | [optional] +**FinishedAt** | Pointer to **string** | | [optional] +**IsOnHold** | Pointer to **bool** | | [optional] +**IsPipeline** | Pointer to **bool** | | [optional] +**IsProcessed** | Pointer to **bool** | | [optional] +**LocalConfig** | Pointer to [**PipelineabledomainLocalConfig**](PipelineabledomainLocalConfig.md) | | [optional] +**PullRequestId** | Pointer to **int32** | | [optional] +**PullRequestTargetBranch** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**Slug** | Pointer to **string** | | [optional] +**StartedAt** | Pointer to **string** | | [optional] +**Status** | Pointer to **int32** | | [optional] +**Tag** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**TriggerParams** | Pointer to [**PipelineabledomainTriggerParams**](PipelineabledomainTriggerParams.md) | | [optional] +**TriggeredAt** | Pointer to **string** | | [optional] +**TriggeredBy** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**TriggeredWorkflow** | Pointer to **string** | | [optional] + +## Methods + +### NewV0PipelineListResponseItemModel + +`func NewV0PipelineListResponseItemModel() *V0PipelineListResponseItemModel` + +NewV0PipelineListResponseItemModel instantiates a new V0PipelineListResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineListResponseItemModelWithDefaults + +`func NewV0PipelineListResponseItemModelWithDefaults() *V0PipelineListResponseItemModel` + +NewV0PipelineListResponseItemModelWithDefaults instantiates a new V0PipelineListResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArtifacts + +`func (o *V0PipelineListResponseItemModel) GetArtifacts() []PipelineabledomainArtifactMeta` + +GetArtifacts returns the Artifacts field if non-nil, zero value otherwise. + +### GetArtifactsOk + +`func (o *V0PipelineListResponseItemModel) GetArtifactsOk() (*[]PipelineabledomainArtifactMeta, bool)` + +GetArtifactsOk returns a tuple with the Artifacts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArtifacts + +`func (o *V0PipelineListResponseItemModel) SetArtifacts(v []PipelineabledomainArtifactMeta)` + +SetArtifacts sets Artifacts field to given value. + +### HasArtifacts + +`func (o *V0PipelineListResponseItemModel) HasArtifacts() bool` + +HasArtifacts returns a boolean if a field has been set. + +### GetBranch + +`func (o *V0PipelineListResponseItemModel) GetBranch() NullsString` + +GetBranch returns the Branch field if non-nil, zero value otherwise. + +### GetBranchOk + +`func (o *V0PipelineListResponseItemModel) GetBranchOk() (*NullsString, bool)` + +GetBranchOk returns a tuple with the Branch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranch + +`func (o *V0PipelineListResponseItemModel) SetBranch(v NullsString)` + +SetBranch sets Branch field to given value. + +### HasBranch + +`func (o *V0PipelineListResponseItemModel) HasBranch() bool` + +HasBranch returns a boolean if a field has been set. + +### GetBuildNumber + +`func (o *V0PipelineListResponseItemModel) GetBuildNumber() int32` + +GetBuildNumber returns the BuildNumber field if non-nil, zero value otherwise. + +### GetBuildNumberOk + +`func (o *V0PipelineListResponseItemModel) GetBuildNumberOk() (*int32, bool)` + +GetBuildNumberOk returns a tuple with the BuildNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildNumber + +`func (o *V0PipelineListResponseItemModel) SetBuildNumber(v int32)` + +SetBuildNumber sets BuildNumber field to given value. + +### HasBuildNumber + +`func (o *V0PipelineListResponseItemModel) HasBuildNumber() bool` + +HasBuildNumber returns a boolean if a field has been set. + +### GetBuildToolInvocations + +`func (o *V0PipelineListResponseItemModel) GetBuildToolInvocations() []PipelineabledomainBuildToolInvocation` + +GetBuildToolInvocations returns the BuildToolInvocations field if non-nil, zero value otherwise. + +### GetBuildToolInvocationsOk + +`func (o *V0PipelineListResponseItemModel) GetBuildToolInvocationsOk() (*[]PipelineabledomainBuildToolInvocation, bool)` + +GetBuildToolInvocationsOk returns a tuple with the BuildToolInvocations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBuildToolInvocations + +`func (o *V0PipelineListResponseItemModel) SetBuildToolInvocations(v []PipelineabledomainBuildToolInvocation)` + +SetBuildToolInvocations sets BuildToolInvocations field to given value. + +### HasBuildToolInvocations + +`func (o *V0PipelineListResponseItemModel) HasBuildToolInvocations() bool` + +HasBuildToolInvocations returns a boolean if a field has been set. + +### GetCommitHash + +`func (o *V0PipelineListResponseItemModel) GetCommitHash() NullsString` + +GetCommitHash returns the CommitHash field if non-nil, zero value otherwise. + +### GetCommitHashOk + +`func (o *V0PipelineListResponseItemModel) GetCommitHashOk() (*NullsString, bool)` + +GetCommitHashOk returns a tuple with the CommitHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitHash + +`func (o *V0PipelineListResponseItemModel) SetCommitHash(v NullsString)` + +SetCommitHash sets CommitHash field to given value. + +### HasCommitHash + +`func (o *V0PipelineListResponseItemModel) HasCommitHash() bool` + +HasCommitHash returns a boolean if a field has been set. + +### GetCommitMessage + +`func (o *V0PipelineListResponseItemModel) GetCommitMessage() NullsString` + +GetCommitMessage returns the CommitMessage field if non-nil, zero value otherwise. + +### GetCommitMessageOk + +`func (o *V0PipelineListResponseItemModel) GetCommitMessageOk() (*NullsString, bool)` + +GetCommitMessageOk returns a tuple with the CommitMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitMessage + +`func (o *V0PipelineListResponseItemModel) SetCommitMessage(v NullsString)` + +SetCommitMessage sets CommitMessage field to given value. + +### HasCommitMessage + +`func (o *V0PipelineListResponseItemModel) HasCommitMessage() bool` + +HasCommitMessage returns a boolean if a field has been set. + +### GetCreditCost + +`func (o *V0PipelineListResponseItemModel) GetCreditCost() NullsInt64` + +GetCreditCost returns the CreditCost field if non-nil, zero value otherwise. + +### GetCreditCostOk + +`func (o *V0PipelineListResponseItemModel) GetCreditCostOk() (*NullsInt64, bool)` + +GetCreditCostOk returns a tuple with the CreditCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreditCost + +`func (o *V0PipelineListResponseItemModel) SetCreditCost(v NullsInt64)` + +SetCreditCost sets CreditCost field to given value. + +### HasCreditCost + +`func (o *V0PipelineListResponseItemModel) HasCreditCost() bool` + +HasCreditCost returns a boolean if a field has been set. + +### GetFinishedAt + +`func (o *V0PipelineListResponseItemModel) GetFinishedAt() string` + +GetFinishedAt returns the FinishedAt field if non-nil, zero value otherwise. + +### GetFinishedAtOk + +`func (o *V0PipelineListResponseItemModel) GetFinishedAtOk() (*string, bool)` + +GetFinishedAtOk returns a tuple with the FinishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFinishedAt + +`func (o *V0PipelineListResponseItemModel) SetFinishedAt(v string)` + +SetFinishedAt sets FinishedAt field to given value. + +### HasFinishedAt + +`func (o *V0PipelineListResponseItemModel) HasFinishedAt() bool` + +HasFinishedAt returns a boolean if a field has been set. + +### GetIsOnHold + +`func (o *V0PipelineListResponseItemModel) GetIsOnHold() bool` + +GetIsOnHold returns the IsOnHold field if non-nil, zero value otherwise. + +### GetIsOnHoldOk + +`func (o *V0PipelineListResponseItemModel) GetIsOnHoldOk() (*bool, bool)` + +GetIsOnHoldOk returns a tuple with the IsOnHold field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsOnHold + +`func (o *V0PipelineListResponseItemModel) SetIsOnHold(v bool)` + +SetIsOnHold sets IsOnHold field to given value. + +### HasIsOnHold + +`func (o *V0PipelineListResponseItemModel) HasIsOnHold() bool` + +HasIsOnHold returns a boolean if a field has been set. + +### GetIsPipeline + +`func (o *V0PipelineListResponseItemModel) GetIsPipeline() bool` + +GetIsPipeline returns the IsPipeline field if non-nil, zero value otherwise. + +### GetIsPipelineOk + +`func (o *V0PipelineListResponseItemModel) GetIsPipelineOk() (*bool, bool)` + +GetIsPipelineOk returns a tuple with the IsPipeline field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPipeline + +`func (o *V0PipelineListResponseItemModel) SetIsPipeline(v bool)` + +SetIsPipeline sets IsPipeline field to given value. + +### HasIsPipeline + +`func (o *V0PipelineListResponseItemModel) HasIsPipeline() bool` + +HasIsPipeline returns a boolean if a field has been set. + +### GetIsProcessed + +`func (o *V0PipelineListResponseItemModel) GetIsProcessed() bool` + +GetIsProcessed returns the IsProcessed field if non-nil, zero value otherwise. + +### GetIsProcessedOk + +`func (o *V0PipelineListResponseItemModel) GetIsProcessedOk() (*bool, bool)` + +GetIsProcessedOk returns a tuple with the IsProcessed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsProcessed + +`func (o *V0PipelineListResponseItemModel) SetIsProcessed(v bool)` + +SetIsProcessed sets IsProcessed field to given value. + +### HasIsProcessed + +`func (o *V0PipelineListResponseItemModel) HasIsProcessed() bool` + +HasIsProcessed returns a boolean if a field has been set. + +### GetLocalConfig + +`func (o *V0PipelineListResponseItemModel) GetLocalConfig() PipelineabledomainLocalConfig` + +GetLocalConfig returns the LocalConfig field if non-nil, zero value otherwise. + +### GetLocalConfigOk + +`func (o *V0PipelineListResponseItemModel) GetLocalConfigOk() (*PipelineabledomainLocalConfig, bool)` + +GetLocalConfigOk returns a tuple with the LocalConfig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocalConfig + +`func (o *V0PipelineListResponseItemModel) SetLocalConfig(v PipelineabledomainLocalConfig)` + +SetLocalConfig sets LocalConfig field to given value. + +### HasLocalConfig + +`func (o *V0PipelineListResponseItemModel) HasLocalConfig() bool` + +HasLocalConfig returns a boolean if a field has been set. + +### GetPullRequestId + +`func (o *V0PipelineListResponseItemModel) GetPullRequestId() int32` + +GetPullRequestId returns the PullRequestId field if non-nil, zero value otherwise. + +### GetPullRequestIdOk + +`func (o *V0PipelineListResponseItemModel) GetPullRequestIdOk() (*int32, bool)` + +GetPullRequestIdOk returns a tuple with the PullRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestId + +`func (o *V0PipelineListResponseItemModel) SetPullRequestId(v int32)` + +SetPullRequestId sets PullRequestId field to given value. + +### HasPullRequestId + +`func (o *V0PipelineListResponseItemModel) HasPullRequestId() bool` + +HasPullRequestId returns a boolean if a field has been set. + +### GetPullRequestTargetBranch + +`func (o *V0PipelineListResponseItemModel) GetPullRequestTargetBranch() NullsString` + +GetPullRequestTargetBranch returns the PullRequestTargetBranch field if non-nil, zero value otherwise. + +### GetPullRequestTargetBranchOk + +`func (o *V0PipelineListResponseItemModel) GetPullRequestTargetBranchOk() (*NullsString, bool)` + +GetPullRequestTargetBranchOk returns a tuple with the PullRequestTargetBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestTargetBranch + +`func (o *V0PipelineListResponseItemModel) SetPullRequestTargetBranch(v NullsString)` + +SetPullRequestTargetBranch sets PullRequestTargetBranch field to given value. + +### HasPullRequestTargetBranch + +`func (o *V0PipelineListResponseItemModel) HasPullRequestTargetBranch() bool` + +HasPullRequestTargetBranch returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0PipelineListResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0PipelineListResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0PipelineListResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0PipelineListResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetStartedAt + +`func (o *V0PipelineListResponseItemModel) GetStartedAt() string` + +GetStartedAt returns the StartedAt field if non-nil, zero value otherwise. + +### GetStartedAtOk + +`func (o *V0PipelineListResponseItemModel) GetStartedAtOk() (*string, bool)` + +GetStartedAtOk returns a tuple with the StartedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartedAt + +`func (o *V0PipelineListResponseItemModel) SetStartedAt(v string)` + +SetStartedAt sets StartedAt field to given value. + +### HasStartedAt + +`func (o *V0PipelineListResponseItemModel) HasStartedAt() bool` + +HasStartedAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0PipelineListResponseItemModel) GetStatus() int32` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0PipelineListResponseItemModel) GetStatusOk() (*int32, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0PipelineListResponseItemModel) SetStatus(v int32)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0PipelineListResponseItemModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTag + +`func (o *V0PipelineListResponseItemModel) GetTag() NullsString` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *V0PipelineListResponseItemModel) GetTagOk() (*NullsString, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *V0PipelineListResponseItemModel) SetTag(v NullsString)` + +SetTag sets Tag field to given value. + +### HasTag + +`func (o *V0PipelineListResponseItemModel) HasTag() bool` + +HasTag returns a boolean if a field has been set. + +### GetTriggerParams + +`func (o *V0PipelineListResponseItemModel) GetTriggerParams() PipelineabledomainTriggerParams` + +GetTriggerParams returns the TriggerParams field if non-nil, zero value otherwise. + +### GetTriggerParamsOk + +`func (o *V0PipelineListResponseItemModel) GetTriggerParamsOk() (*PipelineabledomainTriggerParams, bool)` + +GetTriggerParamsOk returns a tuple with the TriggerParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerParams + +`func (o *V0PipelineListResponseItemModel) SetTriggerParams(v PipelineabledomainTriggerParams)` + +SetTriggerParams sets TriggerParams field to given value. + +### HasTriggerParams + +`func (o *V0PipelineListResponseItemModel) HasTriggerParams() bool` + +HasTriggerParams returns a boolean if a field has been set. + +### GetTriggeredAt + +`func (o *V0PipelineListResponseItemModel) GetTriggeredAt() string` + +GetTriggeredAt returns the TriggeredAt field if non-nil, zero value otherwise. + +### GetTriggeredAtOk + +`func (o *V0PipelineListResponseItemModel) GetTriggeredAtOk() (*string, bool)` + +GetTriggeredAtOk returns a tuple with the TriggeredAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredAt + +`func (o *V0PipelineListResponseItemModel) SetTriggeredAt(v string)` + +SetTriggeredAt sets TriggeredAt field to given value. + +### HasTriggeredAt + +`func (o *V0PipelineListResponseItemModel) HasTriggeredAt() bool` + +HasTriggeredAt returns a boolean if a field has been set. + +### GetTriggeredBy + +`func (o *V0PipelineListResponseItemModel) GetTriggeredBy() NullsString` + +GetTriggeredBy returns the TriggeredBy field if non-nil, zero value otherwise. + +### GetTriggeredByOk + +`func (o *V0PipelineListResponseItemModel) GetTriggeredByOk() (*NullsString, bool)` + +GetTriggeredByOk returns a tuple with the TriggeredBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredBy + +`func (o *V0PipelineListResponseItemModel) SetTriggeredBy(v NullsString)` + +SetTriggeredBy sets TriggeredBy field to given value. + +### HasTriggeredBy + +`func (o *V0PipelineListResponseItemModel) HasTriggeredBy() bool` + +HasTriggeredBy returns a boolean if a field has been set. + +### GetTriggeredWorkflow + +`func (o *V0PipelineListResponseItemModel) GetTriggeredWorkflow() string` + +GetTriggeredWorkflow returns the TriggeredWorkflow field if non-nil, zero value otherwise. + +### GetTriggeredWorkflowOk + +`func (o *V0PipelineListResponseItemModel) GetTriggeredWorkflowOk() (*string, bool)` + +GetTriggeredWorkflowOk returns a tuple with the TriggeredWorkflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredWorkflow + +`func (o *V0PipelineListResponseItemModel) SetTriggeredWorkflow(v string)` + +SetTriggeredWorkflow sets TriggeredWorkflow field to given value. + +### HasTriggeredWorkflow + +`func (o *V0PipelineListResponseItemModel) HasTriggeredWorkflow() bool` + +HasTriggeredWorkflow returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0PipelineListResponseModel.md b/go2/docs/V0PipelineListResponseModel.md new file mode 100644 index 0000000..d7911d9 --- /dev/null +++ b/go2/docs/V0PipelineListResponseModel.md @@ -0,0 +1,82 @@ +# V0PipelineListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0PipelineListResponseItemModel**](V0PipelineListResponseItemModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0PipelineListResponseModel + +`func NewV0PipelineListResponseModel() *V0PipelineListResponseModel` + +NewV0PipelineListResponseModel instantiates a new V0PipelineListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineListResponseModelWithDefaults + +`func NewV0PipelineListResponseModelWithDefaults() *V0PipelineListResponseModel` + +NewV0PipelineListResponseModelWithDefaults instantiates a new V0PipelineListResponseModel object +This 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 *V0PipelineListResponseModel) GetData() []V0PipelineListResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0PipelineListResponseModel) GetDataOk() (*[]V0PipelineListResponseItemModel, 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 *V0PipelineListResponseModel) SetData(v []V0PipelineListResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0PipelineListResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0PipelineListResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0PipelineListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0PipelineListResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0PipelineListResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0PipelineRebuildParams.md b/go2/docs/V0PipelineRebuildParams.md new file mode 100644 index 0000000..18105a1 --- /dev/null +++ b/go2/docs/V0PipelineRebuildParams.md @@ -0,0 +1,82 @@ +# V0PipelineRebuildParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Partial** | Pointer to **bool** | | [optional] +**TriggeredBy** | Pointer to **string** | | [optional] + +## Methods + +### NewV0PipelineRebuildParams + +`func NewV0PipelineRebuildParams() *V0PipelineRebuildParams` + +NewV0PipelineRebuildParams instantiates a new V0PipelineRebuildParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineRebuildParamsWithDefaults + +`func NewV0PipelineRebuildParamsWithDefaults() *V0PipelineRebuildParams` + +NewV0PipelineRebuildParamsWithDefaults instantiates a new V0PipelineRebuildParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPartial + +`func (o *V0PipelineRebuildParams) GetPartial() bool` + +GetPartial returns the Partial field if non-nil, zero value otherwise. + +### GetPartialOk + +`func (o *V0PipelineRebuildParams) GetPartialOk() (*bool, bool)` + +GetPartialOk returns a tuple with the Partial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartial + +`func (o *V0PipelineRebuildParams) SetPartial(v bool)` + +SetPartial sets Partial field to given value. + +### HasPartial + +`func (o *V0PipelineRebuildParams) HasPartial() bool` + +HasPartial returns a boolean if a field has been set. + +### GetTriggeredBy + +`func (o *V0PipelineRebuildParams) GetTriggeredBy() string` + +GetTriggeredBy returns the TriggeredBy field if non-nil, zero value otherwise. + +### GetTriggeredByOk + +`func (o *V0PipelineRebuildParams) GetTriggeredByOk() (*string, bool)` + +GetTriggeredByOk returns a tuple with the TriggeredBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredBy + +`func (o *V0PipelineRebuildParams) SetTriggeredBy(v string)` + +SetTriggeredBy sets TriggeredBy field to given value. + +### HasTriggeredBy + +`func (o *V0PipelineRebuildParams) HasTriggeredBy() bool` + +HasTriggeredBy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0PipelineShowAppResponseModel.md b/go2/docs/V0PipelineShowAppResponseModel.md new file mode 100644 index 0000000..dfbf707 --- /dev/null +++ b/go2/docs/V0PipelineShowAppResponseModel.md @@ -0,0 +1,56 @@ +# V0PipelineShowAppResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Slug** | Pointer to **string** | | [optional] + +## Methods + +### NewV0PipelineShowAppResponseModel + +`func NewV0PipelineShowAppResponseModel() *V0PipelineShowAppResponseModel` + +NewV0PipelineShowAppResponseModel instantiates a new V0PipelineShowAppResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineShowAppResponseModelWithDefaults + +`func NewV0PipelineShowAppResponseModelWithDefaults() *V0PipelineShowAppResponseModel` + +NewV0PipelineShowAppResponseModelWithDefaults instantiates a new V0PipelineShowAppResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSlug + +`func (o *V0PipelineShowAppResponseModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0PipelineShowAppResponseModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0PipelineShowAppResponseModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0PipelineShowAppResponseModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0PipelineShowAttemptResponseModel.md b/go2/docs/V0PipelineShowAttemptResponseModel.md new file mode 100644 index 0000000..b6e7a27 --- /dev/null +++ b/go2/docs/V0PipelineShowAttemptResponseModel.md @@ -0,0 +1,134 @@ +# V0PipelineShowAttemptResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**NumberInPipelineBuildScope** | Pointer to **int32** | | [optional] +**Status** | Pointer to **string** | | [optional] +**TriggeredAt** | Pointer to **string** | | [optional] + +## Methods + +### NewV0PipelineShowAttemptResponseModel + +`func NewV0PipelineShowAttemptResponseModel() *V0PipelineShowAttemptResponseModel` + +NewV0PipelineShowAttemptResponseModel instantiates a new V0PipelineShowAttemptResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineShowAttemptResponseModelWithDefaults + +`func NewV0PipelineShowAttemptResponseModelWithDefaults() *V0PipelineShowAttemptResponseModel` + +NewV0PipelineShowAttemptResponseModelWithDefaults instantiates a new V0PipelineShowAttemptResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *V0PipelineShowAttemptResponseModel) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *V0PipelineShowAttemptResponseModel) 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 *V0PipelineShowAttemptResponseModel) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *V0PipelineShowAttemptResponseModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetNumberInPipelineBuildScope + +`func (o *V0PipelineShowAttemptResponseModel) GetNumberInPipelineBuildScope() int32` + +GetNumberInPipelineBuildScope returns the NumberInPipelineBuildScope field if non-nil, zero value otherwise. + +### GetNumberInPipelineBuildScopeOk + +`func (o *V0PipelineShowAttemptResponseModel) GetNumberInPipelineBuildScopeOk() (*int32, bool)` + +GetNumberInPipelineBuildScopeOk returns a tuple with the NumberInPipelineBuildScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumberInPipelineBuildScope + +`func (o *V0PipelineShowAttemptResponseModel) SetNumberInPipelineBuildScope(v int32)` + +SetNumberInPipelineBuildScope sets NumberInPipelineBuildScope field to given value. + +### HasNumberInPipelineBuildScope + +`func (o *V0PipelineShowAttemptResponseModel) HasNumberInPipelineBuildScope() bool` + +HasNumberInPipelineBuildScope returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0PipelineShowAttemptResponseModel) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0PipelineShowAttemptResponseModel) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0PipelineShowAttemptResponseModel) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0PipelineShowAttemptResponseModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTriggeredAt + +`func (o *V0PipelineShowAttemptResponseModel) GetTriggeredAt() string` + +GetTriggeredAt returns the TriggeredAt field if non-nil, zero value otherwise. + +### GetTriggeredAtOk + +`func (o *V0PipelineShowAttemptResponseModel) GetTriggeredAtOk() (*string, bool)` + +GetTriggeredAtOk returns a tuple with the TriggeredAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredAt + +`func (o *V0PipelineShowAttemptResponseModel) SetTriggeredAt(v string)` + +SetTriggeredAt sets TriggeredAt field to given value. + +### HasTriggeredAt + +`func (o *V0PipelineShowAttemptResponseModel) HasTriggeredAt() bool` + +HasTriggeredAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0PipelineShowEnvironmentsResponseModel.md b/go2/docs/V0PipelineShowEnvironmentsResponseModel.md new file mode 100644 index 0000000..025095e --- /dev/null +++ b/go2/docs/V0PipelineShowEnvironmentsResponseModel.md @@ -0,0 +1,108 @@ +# V0PipelineShowEnvironmentsResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsExpand** | Pointer to **bool** | | [optional] +**Key** | Pointer to **string** | | [optional] +**Value** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewV0PipelineShowEnvironmentsResponseModel + +`func NewV0PipelineShowEnvironmentsResponseModel() *V0PipelineShowEnvironmentsResponseModel` + +NewV0PipelineShowEnvironmentsResponseModel instantiates a new V0PipelineShowEnvironmentsResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineShowEnvironmentsResponseModelWithDefaults + +`func NewV0PipelineShowEnvironmentsResponseModelWithDefaults() *V0PipelineShowEnvironmentsResponseModel` + +NewV0PipelineShowEnvironmentsResponseModelWithDefaults instantiates a new V0PipelineShowEnvironmentsResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsExpand + +`func (o *V0PipelineShowEnvironmentsResponseModel) GetIsExpand() bool` + +GetIsExpand returns the IsExpand field if non-nil, zero value otherwise. + +### GetIsExpandOk + +`func (o *V0PipelineShowEnvironmentsResponseModel) GetIsExpandOk() (*bool, bool)` + +GetIsExpandOk returns a tuple with the IsExpand field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsExpand + +`func (o *V0PipelineShowEnvironmentsResponseModel) SetIsExpand(v bool)` + +SetIsExpand sets IsExpand field to given value. + +### HasIsExpand + +`func (o *V0PipelineShowEnvironmentsResponseModel) HasIsExpand() bool` + +HasIsExpand returns a boolean if a field has been set. + +### GetKey + +`func (o *V0PipelineShowEnvironmentsResponseModel) GetKey() string` + +GetKey returns the Key field if non-nil, zero value otherwise. + +### GetKeyOk + +`func (o *V0PipelineShowEnvironmentsResponseModel) GetKeyOk() (*string, bool)` + +GetKeyOk returns a tuple with the Key field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKey + +`func (o *V0PipelineShowEnvironmentsResponseModel) SetKey(v string)` + +SetKey sets Key field to given value. + +### HasKey + +`func (o *V0PipelineShowEnvironmentsResponseModel) HasKey() bool` + +HasKey returns a boolean if a field has been set. + +### GetValue + +`func (o *V0PipelineShowEnvironmentsResponseModel) GetValue() map[string]interface{}` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *V0PipelineShowEnvironmentsResponseModel) GetValueOk() (*map[string]interface{}, 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 *V0PipelineShowEnvironmentsResponseModel) SetValue(v map[string]interface{})` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *V0PipelineShowEnvironmentsResponseModel) 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/go2/docs/V0PipelineShowResponseModel.md b/go2/docs/V0PipelineShowResponseModel.md new file mode 100644 index 0000000..7356ae8 --- /dev/null +++ b/go2/docs/V0PipelineShowResponseModel.md @@ -0,0 +1,446 @@ +# V0PipelineShowResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AbortReason** | Pointer to **string** | | [optional] +**App** | Pointer to [**V0PipelineShowAppResponseModel**](V0PipelineShowAppResponseModel.md) | | [optional] +**Attempts** | Pointer to [**[]V0PipelineShowAttemptResponseModel**](V0PipelineShowAttemptResponseModel.md) | | [optional] +**CreditCost** | Pointer to **map[string]interface{}** | | [optional] +**CurrentAttemptId** | Pointer to **string** | | [optional] +**FinishedAt** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**NumberInAppScope** | Pointer to **int32** | | [optional] +**PutOnHoldAt** | Pointer to **map[string]interface{}** | | [optional] +**Stages** | Pointer to [**[]V0PipelineShowStageResponseModel**](V0PipelineShowStageResponseModel.md) | | [optional] +**StartedAt** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] +**TriggerParams** | Pointer to [**V0PipelineShowTriggerParamsResponseModel**](V0PipelineShowTriggerParamsResponseModel.md) | | [optional] +**TriggeredAt** | Pointer to **string** | | [optional] +**TriggeredBy** | Pointer to **string** | | [optional] + +## Methods + +### NewV0PipelineShowResponseModel + +`func NewV0PipelineShowResponseModel() *V0PipelineShowResponseModel` + +NewV0PipelineShowResponseModel instantiates a new V0PipelineShowResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineShowResponseModelWithDefaults + +`func NewV0PipelineShowResponseModelWithDefaults() *V0PipelineShowResponseModel` + +NewV0PipelineShowResponseModelWithDefaults instantiates a new V0PipelineShowResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAbortReason + +`func (o *V0PipelineShowResponseModel) GetAbortReason() string` + +GetAbortReason returns the AbortReason field if non-nil, zero value otherwise. + +### GetAbortReasonOk + +`func (o *V0PipelineShowResponseModel) GetAbortReasonOk() (*string, bool)` + +GetAbortReasonOk returns a tuple with the AbortReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAbortReason + +`func (o *V0PipelineShowResponseModel) SetAbortReason(v string)` + +SetAbortReason sets AbortReason field to given value. + +### HasAbortReason + +`func (o *V0PipelineShowResponseModel) HasAbortReason() bool` + +HasAbortReason returns a boolean if a field has been set. + +### GetApp + +`func (o *V0PipelineShowResponseModel) GetApp() V0PipelineShowAppResponseModel` + +GetApp returns the App field if non-nil, zero value otherwise. + +### GetAppOk + +`func (o *V0PipelineShowResponseModel) GetAppOk() (*V0PipelineShowAppResponseModel, 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 *V0PipelineShowResponseModel) SetApp(v V0PipelineShowAppResponseModel)` + +SetApp sets App field to given value. + +### HasApp + +`func (o *V0PipelineShowResponseModel) HasApp() bool` + +HasApp returns a boolean if a field has been set. + +### GetAttempts + +`func (o *V0PipelineShowResponseModel) GetAttempts() []V0PipelineShowAttemptResponseModel` + +GetAttempts returns the Attempts field if non-nil, zero value otherwise. + +### GetAttemptsOk + +`func (o *V0PipelineShowResponseModel) GetAttemptsOk() (*[]V0PipelineShowAttemptResponseModel, bool)` + +GetAttemptsOk returns a tuple with the Attempts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAttempts + +`func (o *V0PipelineShowResponseModel) SetAttempts(v []V0PipelineShowAttemptResponseModel)` + +SetAttempts sets Attempts field to given value. + +### HasAttempts + +`func (o *V0PipelineShowResponseModel) HasAttempts() bool` + +HasAttempts returns a boolean if a field has been set. + +### GetCreditCost + +`func (o *V0PipelineShowResponseModel) GetCreditCost() map[string]interface{}` + +GetCreditCost returns the CreditCost field if non-nil, zero value otherwise. + +### GetCreditCostOk + +`func (o *V0PipelineShowResponseModel) GetCreditCostOk() (*map[string]interface{}, bool)` + +GetCreditCostOk returns a tuple with the CreditCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreditCost + +`func (o *V0PipelineShowResponseModel) SetCreditCost(v map[string]interface{})` + +SetCreditCost sets CreditCost field to given value. + +### HasCreditCost + +`func (o *V0PipelineShowResponseModel) HasCreditCost() bool` + +HasCreditCost returns a boolean if a field has been set. + +### GetCurrentAttemptId + +`func (o *V0PipelineShowResponseModel) GetCurrentAttemptId() string` + +GetCurrentAttemptId returns the CurrentAttemptId field if non-nil, zero value otherwise. + +### GetCurrentAttemptIdOk + +`func (o *V0PipelineShowResponseModel) GetCurrentAttemptIdOk() (*string, bool)` + +GetCurrentAttemptIdOk returns a tuple with the CurrentAttemptId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentAttemptId + +`func (o *V0PipelineShowResponseModel) SetCurrentAttemptId(v string)` + +SetCurrentAttemptId sets CurrentAttemptId field to given value. + +### HasCurrentAttemptId + +`func (o *V0PipelineShowResponseModel) HasCurrentAttemptId() bool` + +HasCurrentAttemptId returns a boolean if a field has been set. + +### GetFinishedAt + +`func (o *V0PipelineShowResponseModel) GetFinishedAt() string` + +GetFinishedAt returns the FinishedAt field if non-nil, zero value otherwise. + +### GetFinishedAtOk + +`func (o *V0PipelineShowResponseModel) GetFinishedAtOk() (*string, bool)` + +GetFinishedAtOk returns a tuple with the FinishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFinishedAt + +`func (o *V0PipelineShowResponseModel) SetFinishedAt(v string)` + +SetFinishedAt sets FinishedAt field to given value. + +### HasFinishedAt + +`func (o *V0PipelineShowResponseModel) HasFinishedAt() bool` + +HasFinishedAt returns a boolean if a field has been set. + +### GetId + +`func (o *V0PipelineShowResponseModel) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *V0PipelineShowResponseModel) 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 *V0PipelineShowResponseModel) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *V0PipelineShowResponseModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *V0PipelineShowResponseModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V0PipelineShowResponseModel) 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 *V0PipelineShowResponseModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V0PipelineShowResponseModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetNumberInAppScope + +`func (o *V0PipelineShowResponseModel) GetNumberInAppScope() int32` + +GetNumberInAppScope returns the NumberInAppScope field if non-nil, zero value otherwise. + +### GetNumberInAppScopeOk + +`func (o *V0PipelineShowResponseModel) GetNumberInAppScopeOk() (*int32, bool)` + +GetNumberInAppScopeOk returns a tuple with the NumberInAppScope field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumberInAppScope + +`func (o *V0PipelineShowResponseModel) SetNumberInAppScope(v int32)` + +SetNumberInAppScope sets NumberInAppScope field to given value. + +### HasNumberInAppScope + +`func (o *V0PipelineShowResponseModel) HasNumberInAppScope() bool` + +HasNumberInAppScope returns a boolean if a field has been set. + +### GetPutOnHoldAt + +`func (o *V0PipelineShowResponseModel) GetPutOnHoldAt() map[string]interface{}` + +GetPutOnHoldAt returns the PutOnHoldAt field if non-nil, zero value otherwise. + +### GetPutOnHoldAtOk + +`func (o *V0PipelineShowResponseModel) GetPutOnHoldAtOk() (*map[string]interface{}, bool)` + +GetPutOnHoldAtOk returns a tuple with the PutOnHoldAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPutOnHoldAt + +`func (o *V0PipelineShowResponseModel) SetPutOnHoldAt(v map[string]interface{})` + +SetPutOnHoldAt sets PutOnHoldAt field to given value. + +### HasPutOnHoldAt + +`func (o *V0PipelineShowResponseModel) HasPutOnHoldAt() bool` + +HasPutOnHoldAt returns a boolean if a field has been set. + +### GetStages + +`func (o *V0PipelineShowResponseModel) GetStages() []V0PipelineShowStageResponseModel` + +GetStages returns the Stages field if non-nil, zero value otherwise. + +### GetStagesOk + +`func (o *V0PipelineShowResponseModel) GetStagesOk() (*[]V0PipelineShowStageResponseModel, bool)` + +GetStagesOk returns a tuple with the Stages field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStages + +`func (o *V0PipelineShowResponseModel) SetStages(v []V0PipelineShowStageResponseModel)` + +SetStages sets Stages field to given value. + +### HasStages + +`func (o *V0PipelineShowResponseModel) HasStages() bool` + +HasStages returns a boolean if a field has been set. + +### GetStartedAt + +`func (o *V0PipelineShowResponseModel) GetStartedAt() string` + +GetStartedAt returns the StartedAt field if non-nil, zero value otherwise. + +### GetStartedAtOk + +`func (o *V0PipelineShowResponseModel) GetStartedAtOk() (*string, bool)` + +GetStartedAtOk returns a tuple with the StartedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartedAt + +`func (o *V0PipelineShowResponseModel) SetStartedAt(v string)` + +SetStartedAt sets StartedAt field to given value. + +### HasStartedAt + +`func (o *V0PipelineShowResponseModel) HasStartedAt() bool` + +HasStartedAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0PipelineShowResponseModel) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0PipelineShowResponseModel) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0PipelineShowResponseModel) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0PipelineShowResponseModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTriggerParams + +`func (o *V0PipelineShowResponseModel) GetTriggerParams() V0PipelineShowTriggerParamsResponseModel` + +GetTriggerParams returns the TriggerParams field if non-nil, zero value otherwise. + +### GetTriggerParamsOk + +`func (o *V0PipelineShowResponseModel) GetTriggerParamsOk() (*V0PipelineShowTriggerParamsResponseModel, bool)` + +GetTriggerParamsOk returns a tuple with the TriggerParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggerParams + +`func (o *V0PipelineShowResponseModel) SetTriggerParams(v V0PipelineShowTriggerParamsResponseModel)` + +SetTriggerParams sets TriggerParams field to given value. + +### HasTriggerParams + +`func (o *V0PipelineShowResponseModel) HasTriggerParams() bool` + +HasTriggerParams returns a boolean if a field has been set. + +### GetTriggeredAt + +`func (o *V0PipelineShowResponseModel) GetTriggeredAt() string` + +GetTriggeredAt returns the TriggeredAt field if non-nil, zero value otherwise. + +### GetTriggeredAtOk + +`func (o *V0PipelineShowResponseModel) GetTriggeredAtOk() (*string, bool)` + +GetTriggeredAtOk returns a tuple with the TriggeredAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredAt + +`func (o *V0PipelineShowResponseModel) SetTriggeredAt(v string)` + +SetTriggeredAt sets TriggeredAt field to given value. + +### HasTriggeredAt + +`func (o *V0PipelineShowResponseModel) HasTriggeredAt() bool` + +HasTriggeredAt returns a boolean if a field has been set. + +### GetTriggeredBy + +`func (o *V0PipelineShowResponseModel) GetTriggeredBy() string` + +GetTriggeredBy returns the TriggeredBy field if non-nil, zero value otherwise. + +### GetTriggeredByOk + +`func (o *V0PipelineShowResponseModel) GetTriggeredByOk() (*string, bool)` + +GetTriggeredByOk returns a tuple with the TriggeredBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTriggeredBy + +`func (o *V0PipelineShowResponseModel) SetTriggeredBy(v string)` + +SetTriggeredBy sets TriggeredBy field to given value. + +### HasTriggeredBy + +`func (o *V0PipelineShowResponseModel) HasTriggeredBy() bool` + +HasTriggeredBy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0PipelineShowStageResponseModel.md b/go2/docs/V0PipelineShowStageResponseModel.md new file mode 100644 index 0000000..6094383 --- /dev/null +++ b/go2/docs/V0PipelineShowStageResponseModel.md @@ -0,0 +1,108 @@ +# V0PipelineShowStageResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Workflows** | Pointer to [**[]V0PipelineShowWorkflowResponseModel**](V0PipelineShowWorkflowResponseModel.md) | | [optional] + +## Methods + +### NewV0PipelineShowStageResponseModel + +`func NewV0PipelineShowStageResponseModel() *V0PipelineShowStageResponseModel` + +NewV0PipelineShowStageResponseModel instantiates a new V0PipelineShowStageResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineShowStageResponseModelWithDefaults + +`func NewV0PipelineShowStageResponseModelWithDefaults() *V0PipelineShowStageResponseModel` + +NewV0PipelineShowStageResponseModelWithDefaults instantiates a new V0PipelineShowStageResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *V0PipelineShowStageResponseModel) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *V0PipelineShowStageResponseModel) 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 *V0PipelineShowStageResponseModel) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *V0PipelineShowStageResponseModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *V0PipelineShowStageResponseModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V0PipelineShowStageResponseModel) 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 *V0PipelineShowStageResponseModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V0PipelineShowStageResponseModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetWorkflows + +`func (o *V0PipelineShowStageResponseModel) GetWorkflows() []V0PipelineShowWorkflowResponseModel` + +GetWorkflows returns the Workflows field if non-nil, zero value otherwise. + +### GetWorkflowsOk + +`func (o *V0PipelineShowStageResponseModel) GetWorkflowsOk() (*[]V0PipelineShowWorkflowResponseModel, bool)` + +GetWorkflowsOk returns a tuple with the Workflows field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflows + +`func (o *V0PipelineShowStageResponseModel) SetWorkflows(v []V0PipelineShowWorkflowResponseModel)` + +SetWorkflows sets Workflows field to given value. + +### HasWorkflows + +`func (o *V0PipelineShowStageResponseModel) HasWorkflows() bool` + +HasWorkflows returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0PipelineShowTriggerParamsResponseModel.md b/go2/docs/V0PipelineShowTriggerParamsResponseModel.md new file mode 100644 index 0000000..fb790fa --- /dev/null +++ b/go2/docs/V0PipelineShowTriggerParamsResponseModel.md @@ -0,0 +1,394 @@ +# V0PipelineShowTriggerParamsResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Branch** | Pointer to **string** | | [optional] +**BranchDest** | Pointer to **string** | | [optional] +**BranchDestRepoOwner** | Pointer to **string** | | [optional] +**BranchRepoOwner** | Pointer to **string** | | [optional] +**CommitHash** | Pointer to **string** | | [optional] +**CommitMessage** | Pointer to **string** | | [optional] +**Environments** | Pointer to [**[]V0PipelineShowEnvironmentsResponseModel**](V0PipelineShowEnvironmentsResponseModel.md) | | [optional] +**PullRequestAuthor** | Pointer to **string** | | [optional] +**PullRequestHeadBranch** | Pointer to **string** | | [optional] +**PullRequestId** | Pointer to **string** | | [optional] +**PullRequestMergeBranch** | Pointer to **string** | | [optional] +**PullRequestRepositoryUrl** | Pointer to **string** | | [optional] +**PullRequestUnverifiedMergeBranch** | Pointer to **string** | | [optional] +**Tag** | Pointer to **string** | | [optional] + +## Methods + +### NewV0PipelineShowTriggerParamsResponseModel + +`func NewV0PipelineShowTriggerParamsResponseModel() *V0PipelineShowTriggerParamsResponseModel` + +NewV0PipelineShowTriggerParamsResponseModel instantiates a new V0PipelineShowTriggerParamsResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineShowTriggerParamsResponseModelWithDefaults + +`func NewV0PipelineShowTriggerParamsResponseModelWithDefaults() *V0PipelineShowTriggerParamsResponseModel` + +NewV0PipelineShowTriggerParamsResponseModelWithDefaults instantiates a new V0PipelineShowTriggerParamsResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBranch + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetBranch() string` + +GetBranch returns the Branch field if non-nil, zero value otherwise. + +### GetBranchOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchOk() (*string, bool)` + +GetBranchOk returns a tuple with the Branch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranch + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetBranch(v string)` + +SetBranch sets Branch field to given value. + +### HasBranch + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasBranch() bool` + +HasBranch returns a boolean if a field has been set. + +### GetBranchDest + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchDest() string` + +GetBranchDest returns the BranchDest field if non-nil, zero value otherwise. + +### GetBranchDestOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchDestOk() (*string, bool)` + +GetBranchDestOk returns a tuple with the BranchDest field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranchDest + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetBranchDest(v string)` + +SetBranchDest sets BranchDest field to given value. + +### HasBranchDest + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasBranchDest() bool` + +HasBranchDest returns a boolean if a field has been set. + +### GetBranchDestRepoOwner + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchDestRepoOwner() string` + +GetBranchDestRepoOwner returns the BranchDestRepoOwner field if non-nil, zero value otherwise. + +### GetBranchDestRepoOwnerOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchDestRepoOwnerOk() (*string, bool)` + +GetBranchDestRepoOwnerOk returns a tuple with the BranchDestRepoOwner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranchDestRepoOwner + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetBranchDestRepoOwner(v string)` + +SetBranchDestRepoOwner sets BranchDestRepoOwner field to given value. + +### HasBranchDestRepoOwner + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasBranchDestRepoOwner() bool` + +HasBranchDestRepoOwner returns a boolean if a field has been set. + +### GetBranchRepoOwner + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchRepoOwner() string` + +GetBranchRepoOwner returns the BranchRepoOwner field if non-nil, zero value otherwise. + +### GetBranchRepoOwnerOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchRepoOwnerOk() (*string, bool)` + +GetBranchRepoOwnerOk returns a tuple with the BranchRepoOwner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBranchRepoOwner + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetBranchRepoOwner(v string)` + +SetBranchRepoOwner sets BranchRepoOwner field to given value. + +### HasBranchRepoOwner + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasBranchRepoOwner() bool` + +HasBranchRepoOwner returns a boolean if a field has been set. + +### GetCommitHash + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetCommitHash() string` + +GetCommitHash returns the CommitHash field if non-nil, zero value otherwise. + +### GetCommitHashOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetCommitHashOk() (*string, bool)` + +GetCommitHashOk returns a tuple with the CommitHash field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitHash + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetCommitHash(v string)` + +SetCommitHash sets CommitHash field to given value. + +### HasCommitHash + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasCommitHash() bool` + +HasCommitHash returns a boolean if a field has been set. + +### GetCommitMessage + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetCommitMessage() string` + +GetCommitMessage returns the CommitMessage field if non-nil, zero value otherwise. + +### GetCommitMessageOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetCommitMessageOk() (*string, bool)` + +GetCommitMessageOk returns a tuple with the CommitMessage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitMessage + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetCommitMessage(v string)` + +SetCommitMessage sets CommitMessage field to given value. + +### HasCommitMessage + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasCommitMessage() bool` + +HasCommitMessage returns a boolean if a field has been set. + +### GetEnvironments + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetEnvironments() []V0PipelineShowEnvironmentsResponseModel` + +GetEnvironments returns the Environments field if non-nil, zero value otherwise. + +### GetEnvironmentsOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetEnvironmentsOk() (*[]V0PipelineShowEnvironmentsResponseModel, bool)` + +GetEnvironmentsOk returns a tuple with the Environments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironments + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetEnvironments(v []V0PipelineShowEnvironmentsResponseModel)` + +SetEnvironments sets Environments field to given value. + +### HasEnvironments + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasEnvironments() bool` + +HasEnvironments returns a boolean if a field has been set. + +### GetPullRequestAuthor + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestAuthor() string` + +GetPullRequestAuthor returns the PullRequestAuthor field if non-nil, zero value otherwise. + +### GetPullRequestAuthorOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestAuthorOk() (*string, bool)` + +GetPullRequestAuthorOk returns a tuple with the PullRequestAuthor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestAuthor + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetPullRequestAuthor(v string)` + +SetPullRequestAuthor sets PullRequestAuthor field to given value. + +### HasPullRequestAuthor + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasPullRequestAuthor() bool` + +HasPullRequestAuthor returns a boolean if a field has been set. + +### GetPullRequestHeadBranch + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestHeadBranch() string` + +GetPullRequestHeadBranch returns the PullRequestHeadBranch field if non-nil, zero value otherwise. + +### GetPullRequestHeadBranchOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestHeadBranchOk() (*string, bool)` + +GetPullRequestHeadBranchOk returns a tuple with the PullRequestHeadBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestHeadBranch + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetPullRequestHeadBranch(v string)` + +SetPullRequestHeadBranch sets PullRequestHeadBranch field to given value. + +### HasPullRequestHeadBranch + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasPullRequestHeadBranch() bool` + +HasPullRequestHeadBranch returns a boolean if a field has been set. + +### GetPullRequestId + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestId() string` + +GetPullRequestId returns the PullRequestId field if non-nil, zero value otherwise. + +### GetPullRequestIdOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestIdOk() (*string, bool)` + +GetPullRequestIdOk returns a tuple with the PullRequestId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestId + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetPullRequestId(v string)` + +SetPullRequestId sets PullRequestId field to given value. + +### HasPullRequestId + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasPullRequestId() bool` + +HasPullRequestId returns a boolean if a field has been set. + +### GetPullRequestMergeBranch + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestMergeBranch() string` + +GetPullRequestMergeBranch returns the PullRequestMergeBranch field if non-nil, zero value otherwise. + +### GetPullRequestMergeBranchOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestMergeBranchOk() (*string, bool)` + +GetPullRequestMergeBranchOk returns a tuple with the PullRequestMergeBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestMergeBranch + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetPullRequestMergeBranch(v string)` + +SetPullRequestMergeBranch sets PullRequestMergeBranch field to given value. + +### HasPullRequestMergeBranch + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasPullRequestMergeBranch() bool` + +HasPullRequestMergeBranch returns a boolean if a field has been set. + +### GetPullRequestRepositoryUrl + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestRepositoryUrl() string` + +GetPullRequestRepositoryUrl returns the PullRequestRepositoryUrl field if non-nil, zero value otherwise. + +### GetPullRequestRepositoryUrlOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestRepositoryUrlOk() (*string, bool)` + +GetPullRequestRepositoryUrlOk returns a tuple with the PullRequestRepositoryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestRepositoryUrl + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetPullRequestRepositoryUrl(v string)` + +SetPullRequestRepositoryUrl sets PullRequestRepositoryUrl field to given value. + +### HasPullRequestRepositoryUrl + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasPullRequestRepositoryUrl() bool` + +HasPullRequestRepositoryUrl returns a boolean if a field has been set. + +### GetPullRequestUnverifiedMergeBranch + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestUnverifiedMergeBranch() string` + +GetPullRequestUnverifiedMergeBranch returns the PullRequestUnverifiedMergeBranch field if non-nil, zero value otherwise. + +### GetPullRequestUnverifiedMergeBranchOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestUnverifiedMergeBranchOk() (*string, bool)` + +GetPullRequestUnverifiedMergeBranchOk returns a tuple with the PullRequestUnverifiedMergeBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPullRequestUnverifiedMergeBranch + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetPullRequestUnverifiedMergeBranch(v string)` + +SetPullRequestUnverifiedMergeBranch sets PullRequestUnverifiedMergeBranch field to given value. + +### HasPullRequestUnverifiedMergeBranch + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasPullRequestUnverifiedMergeBranch() bool` + +HasPullRequestUnverifiedMergeBranch returns a boolean if a field has been set. + +### GetTag + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetTag() string` + +GetTag returns the Tag field if non-nil, zero value otherwise. + +### GetTagOk + +`func (o *V0PipelineShowTriggerParamsResponseModel) GetTagOk() (*string, bool)` + +GetTagOk returns a tuple with the Tag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTag + +`func (o *V0PipelineShowTriggerParamsResponseModel) SetTag(v string)` + +SetTag sets Tag field to given value. + +### HasTag + +`func (o *V0PipelineShowTriggerParamsResponseModel) HasTag() bool` + +HasTag returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0PipelineShowWorkflowResponseModel.md b/go2/docs/V0PipelineShowWorkflowResponseModel.md new file mode 100644 index 0000000..1d8335f --- /dev/null +++ b/go2/docs/V0PipelineShowWorkflowResponseModel.md @@ -0,0 +1,238 @@ +# V0PipelineShowWorkflowResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreditCost** | Pointer to **map[string]interface{}** | | [optional] +**ExternalId** | Pointer to **string** | | [optional] +**FinishedAt** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**StartFailureReason** | Pointer to **string** | | [optional] +**StartedAt** | Pointer to **string** | | [optional] +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewV0PipelineShowWorkflowResponseModel + +`func NewV0PipelineShowWorkflowResponseModel() *V0PipelineShowWorkflowResponseModel` + +NewV0PipelineShowWorkflowResponseModel instantiates a new V0PipelineShowWorkflowResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PipelineShowWorkflowResponseModelWithDefaults + +`func NewV0PipelineShowWorkflowResponseModelWithDefaults() *V0PipelineShowWorkflowResponseModel` + +NewV0PipelineShowWorkflowResponseModelWithDefaults instantiates a new V0PipelineShowWorkflowResponseModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreditCost + +`func (o *V0PipelineShowWorkflowResponseModel) GetCreditCost() map[string]interface{}` + +GetCreditCost returns the CreditCost field if non-nil, zero value otherwise. + +### GetCreditCostOk + +`func (o *V0PipelineShowWorkflowResponseModel) GetCreditCostOk() (*map[string]interface{}, bool)` + +GetCreditCostOk returns a tuple with the CreditCost field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreditCost + +`func (o *V0PipelineShowWorkflowResponseModel) SetCreditCost(v map[string]interface{})` + +SetCreditCost sets CreditCost field to given value. + +### HasCreditCost + +`func (o *V0PipelineShowWorkflowResponseModel) HasCreditCost() bool` + +HasCreditCost returns a boolean if a field has been set. + +### GetExternalId + +`func (o *V0PipelineShowWorkflowResponseModel) GetExternalId() string` + +GetExternalId returns the ExternalId field if non-nil, zero value otherwise. + +### GetExternalIdOk + +`func (o *V0PipelineShowWorkflowResponseModel) GetExternalIdOk() (*string, bool)` + +GetExternalIdOk returns a tuple with the ExternalId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExternalId + +`func (o *V0PipelineShowWorkflowResponseModel) SetExternalId(v string)` + +SetExternalId sets ExternalId field to given value. + +### HasExternalId + +`func (o *V0PipelineShowWorkflowResponseModel) HasExternalId() bool` + +HasExternalId returns a boolean if a field has been set. + +### GetFinishedAt + +`func (o *V0PipelineShowWorkflowResponseModel) GetFinishedAt() string` + +GetFinishedAt returns the FinishedAt field if non-nil, zero value otherwise. + +### GetFinishedAtOk + +`func (o *V0PipelineShowWorkflowResponseModel) GetFinishedAtOk() (*string, bool)` + +GetFinishedAtOk returns a tuple with the FinishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFinishedAt + +`func (o *V0PipelineShowWorkflowResponseModel) SetFinishedAt(v string)` + +SetFinishedAt sets FinishedAt field to given value. + +### HasFinishedAt + +`func (o *V0PipelineShowWorkflowResponseModel) HasFinishedAt() bool` + +HasFinishedAt returns a boolean if a field has been set. + +### GetId + +`func (o *V0PipelineShowWorkflowResponseModel) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *V0PipelineShowWorkflowResponseModel) 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 *V0PipelineShowWorkflowResponseModel) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *V0PipelineShowWorkflowResponseModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *V0PipelineShowWorkflowResponseModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V0PipelineShowWorkflowResponseModel) 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 *V0PipelineShowWorkflowResponseModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V0PipelineShowWorkflowResponseModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetStartFailureReason + +`func (o *V0PipelineShowWorkflowResponseModel) GetStartFailureReason() string` + +GetStartFailureReason returns the StartFailureReason field if non-nil, zero value otherwise. + +### GetStartFailureReasonOk + +`func (o *V0PipelineShowWorkflowResponseModel) GetStartFailureReasonOk() (*string, bool)` + +GetStartFailureReasonOk returns a tuple with the StartFailureReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartFailureReason + +`func (o *V0PipelineShowWorkflowResponseModel) SetStartFailureReason(v string)` + +SetStartFailureReason sets StartFailureReason field to given value. + +### HasStartFailureReason + +`func (o *V0PipelineShowWorkflowResponseModel) HasStartFailureReason() bool` + +HasStartFailureReason returns a boolean if a field has been set. + +### GetStartedAt + +`func (o *V0PipelineShowWorkflowResponseModel) GetStartedAt() string` + +GetStartedAt returns the StartedAt field if non-nil, zero value otherwise. + +### GetStartedAtOk + +`func (o *V0PipelineShowWorkflowResponseModel) GetStartedAtOk() (*string, bool)` + +GetStartedAtOk returns a tuple with the StartedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartedAt + +`func (o *V0PipelineShowWorkflowResponseModel) SetStartedAt(v string)` + +SetStartedAt sets StartedAt field to given value. + +### HasStartedAt + +`func (o *V0PipelineShowWorkflowResponseModel) HasStartedAt() bool` + +HasStartedAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0PipelineShowWorkflowResponseModel) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0PipelineShowWorkflowResponseModel) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0PipelineShowWorkflowResponseModel) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0PipelineShowWorkflowResponseModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0PlanDataModel.md b/go2/docs/V0PlanDataModel.md new file mode 100644 index 0000000..aaee2ab --- /dev/null +++ b/go2/docs/V0PlanDataModel.md @@ -0,0 +1,160 @@ +# V0PlanDataModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ContainerCount** | Pointer to **int32** | | [optional] +**ExpiresAt** | Pointer to **string** | | [optional] +**Id** | Pointer to **string** | | [optional] +**Name** | Pointer to **string** | | [optional] +**Price** | Pointer to [**NullsInt64**](NullsInt64.md) | | [optional] + +## Methods + +### NewV0PlanDataModel + +`func NewV0PlanDataModel() *V0PlanDataModel` + +NewV0PlanDataModel instantiates a new V0PlanDataModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0PlanDataModelWithDefaults + +`func NewV0PlanDataModelWithDefaults() *V0PlanDataModel` + +NewV0PlanDataModelWithDefaults instantiates a new V0PlanDataModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetContainerCount + +`func (o *V0PlanDataModel) GetContainerCount() int32` + +GetContainerCount returns the ContainerCount field if non-nil, zero value otherwise. + +### GetContainerCountOk + +`func (o *V0PlanDataModel) GetContainerCountOk() (*int32, bool)` + +GetContainerCountOk returns a tuple with the ContainerCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContainerCount + +`func (o *V0PlanDataModel) SetContainerCount(v int32)` + +SetContainerCount sets ContainerCount field to given value. + +### HasContainerCount + +`func (o *V0PlanDataModel) HasContainerCount() bool` + +HasContainerCount returns a boolean if a field has been set. + +### GetExpiresAt + +`func (o *V0PlanDataModel) GetExpiresAt() string` + +GetExpiresAt returns the ExpiresAt field if non-nil, zero value otherwise. + +### GetExpiresAtOk + +`func (o *V0PlanDataModel) GetExpiresAtOk() (*string, bool)` + +GetExpiresAtOk returns a tuple with the ExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExpiresAt + +`func (o *V0PlanDataModel) SetExpiresAt(v string)` + +SetExpiresAt sets ExpiresAt field to given value. + +### HasExpiresAt + +`func (o *V0PlanDataModel) HasExpiresAt() bool` + +HasExpiresAt returns a boolean if a field has been set. + +### GetId + +`func (o *V0PlanDataModel) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *V0PlanDataModel) 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 *V0PlanDataModel) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *V0PlanDataModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *V0PlanDataModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V0PlanDataModel) 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 *V0PlanDataModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V0PlanDataModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPrice + +`func (o *V0PlanDataModel) GetPrice() NullsInt64` + +GetPrice returns the Price field if non-nil, zero value otherwise. + +### GetPriceOk + +`func (o *V0PlanDataModel) GetPriceOk() (*NullsInt64, bool)` + +GetPriceOk returns a tuple with the Price field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrice + +`func (o *V0PlanDataModel) SetPrice(v NullsInt64)` + +SetPrice sets Price field to given value. + +### HasPrice + +`func (o *V0PlanDataModel) HasPrice() bool` + +HasPrice returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ProjectFileStorageDocumentUpdateParams.md b/go2/docs/V0ProjectFileStorageDocumentUpdateParams.md new file mode 100644 index 0000000..2812e96 --- /dev/null +++ b/go2/docs/V0ProjectFileStorageDocumentUpdateParams.md @@ -0,0 +1,160 @@ +# V0ProjectFileStorageDocumentUpdateParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ExposedMetaDatastore** | Pointer to **[]int32** | | [optional] +**IsExpose** | Pointer to **bool** | | [optional] +**IsProtected** | Pointer to **bool** | | [optional] +**Processed** | Pointer to **bool** | | [optional] +**UserEnvKey** | Pointer to **string** | | [optional] + +## Methods + +### NewV0ProjectFileStorageDocumentUpdateParams + +`func NewV0ProjectFileStorageDocumentUpdateParams() *V0ProjectFileStorageDocumentUpdateParams` + +NewV0ProjectFileStorageDocumentUpdateParams instantiates a new V0ProjectFileStorageDocumentUpdateParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ProjectFileStorageDocumentUpdateParamsWithDefaults + +`func NewV0ProjectFileStorageDocumentUpdateParamsWithDefaults() *V0ProjectFileStorageDocumentUpdateParams` + +NewV0ProjectFileStorageDocumentUpdateParamsWithDefaults instantiates a new V0ProjectFileStorageDocumentUpdateParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetExposedMetaDatastore + +`func (o *V0ProjectFileStorageDocumentUpdateParams) GetExposedMetaDatastore() []int32` + +GetExposedMetaDatastore returns the ExposedMetaDatastore field if non-nil, zero value otherwise. + +### GetExposedMetaDatastoreOk + +`func (o *V0ProjectFileStorageDocumentUpdateParams) GetExposedMetaDatastoreOk() (*[]int32, bool)` + +GetExposedMetaDatastoreOk returns a tuple with the ExposedMetaDatastore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExposedMetaDatastore + +`func (o *V0ProjectFileStorageDocumentUpdateParams) SetExposedMetaDatastore(v []int32)` + +SetExposedMetaDatastore sets ExposedMetaDatastore field to given value. + +### HasExposedMetaDatastore + +`func (o *V0ProjectFileStorageDocumentUpdateParams) HasExposedMetaDatastore() bool` + +HasExposedMetaDatastore returns a boolean if a field has been set. + +### GetIsExpose + +`func (o *V0ProjectFileStorageDocumentUpdateParams) GetIsExpose() bool` + +GetIsExpose returns the IsExpose field if non-nil, zero value otherwise. + +### GetIsExposeOk + +`func (o *V0ProjectFileStorageDocumentUpdateParams) GetIsExposeOk() (*bool, bool)` + +GetIsExposeOk returns a tuple with the IsExpose field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsExpose + +`func (o *V0ProjectFileStorageDocumentUpdateParams) SetIsExpose(v bool)` + +SetIsExpose sets IsExpose field to given value. + +### HasIsExpose + +`func (o *V0ProjectFileStorageDocumentUpdateParams) HasIsExpose() bool` + +HasIsExpose returns a boolean if a field has been set. + +### GetIsProtected + +`func (o *V0ProjectFileStorageDocumentUpdateParams) GetIsProtected() bool` + +GetIsProtected returns the IsProtected field if non-nil, zero value otherwise. + +### GetIsProtectedOk + +`func (o *V0ProjectFileStorageDocumentUpdateParams) GetIsProtectedOk() (*bool, bool)` + +GetIsProtectedOk returns a tuple with the IsProtected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsProtected + +`func (o *V0ProjectFileStorageDocumentUpdateParams) SetIsProtected(v bool)` + +SetIsProtected sets IsProtected field to given value. + +### HasIsProtected + +`func (o *V0ProjectFileStorageDocumentUpdateParams) HasIsProtected() bool` + +HasIsProtected returns a boolean if a field has been set. + +### GetProcessed + +`func (o *V0ProjectFileStorageDocumentUpdateParams) GetProcessed() bool` + +GetProcessed returns the Processed field if non-nil, zero value otherwise. + +### GetProcessedOk + +`func (o *V0ProjectFileStorageDocumentUpdateParams) GetProcessedOk() (*bool, bool)` + +GetProcessedOk returns a tuple with the Processed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessed + +`func (o *V0ProjectFileStorageDocumentUpdateParams) SetProcessed(v bool)` + +SetProcessed sets Processed field to given value. + +### HasProcessed + +`func (o *V0ProjectFileStorageDocumentUpdateParams) HasProcessed() bool` + +HasProcessed returns a boolean if a field has been set. + +### GetUserEnvKey + +`func (o *V0ProjectFileStorageDocumentUpdateParams) GetUserEnvKey() string` + +GetUserEnvKey returns the UserEnvKey field if non-nil, zero value otherwise. + +### GetUserEnvKeyOk + +`func (o *V0ProjectFileStorageDocumentUpdateParams) GetUserEnvKeyOk() (*string, bool)` + +GetUserEnvKeyOk returns a tuple with the UserEnvKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserEnvKey + +`func (o *V0ProjectFileStorageDocumentUpdateParams) SetUserEnvKey(v string)` + +SetUserEnvKey sets UserEnvKey field to given value. + +### HasUserEnvKey + +`func (o *V0ProjectFileStorageDocumentUpdateParams) HasUserEnvKey() bool` + +HasUserEnvKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ProjectFileStorageListResponseModel.md b/go2/docs/V0ProjectFileStorageListResponseModel.md new file mode 100644 index 0000000..950fda8 --- /dev/null +++ b/go2/docs/V0ProjectFileStorageListResponseModel.md @@ -0,0 +1,82 @@ +# V0ProjectFileStorageListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0ProjectFileStorageResponseItemModel**](V0ProjectFileStorageResponseItemModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0ProjectFileStorageListResponseModel + +`func NewV0ProjectFileStorageListResponseModel() *V0ProjectFileStorageListResponseModel` + +NewV0ProjectFileStorageListResponseModel instantiates a new V0ProjectFileStorageListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ProjectFileStorageListResponseModelWithDefaults + +`func NewV0ProjectFileStorageListResponseModelWithDefaults() *V0ProjectFileStorageListResponseModel` + +NewV0ProjectFileStorageListResponseModelWithDefaults instantiates a new V0ProjectFileStorageListResponseModel object +This 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 *V0ProjectFileStorageListResponseModel) GetData() []V0ProjectFileStorageResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0ProjectFileStorageListResponseModel) GetDataOk() (*[]V0ProjectFileStorageResponseItemModel, 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 *V0ProjectFileStorageListResponseModel) SetData(v []V0ProjectFileStorageResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0ProjectFileStorageListResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0ProjectFileStorageListResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0ProjectFileStorageListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0ProjectFileStorageListResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0ProjectFileStorageListResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ProjectFileStorageResponseItemModel.md b/go2/docs/V0ProjectFileStorageResponseItemModel.md new file mode 100644 index 0000000..1312e66 --- /dev/null +++ b/go2/docs/V0ProjectFileStorageResponseItemModel.md @@ -0,0 +1,290 @@ +# V0ProjectFileStorageResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DownloadUrl** | Pointer to **string** | | [optional] +**ExposedMetaDatastore** | Pointer to **[]int32** | | [optional] +**IsExpose** | Pointer to **bool** | | [optional] +**IsProtected** | Pointer to **bool** | | [optional] +**Processed** | Pointer to **bool** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**UploadFileName** | Pointer to **string** | | [optional] +**UploadFileSize** | Pointer to **int32** | | [optional] +**UploadUrl** | Pointer to **string** | | [optional] +**UserEnvKey** | Pointer to **string** | | [optional] + +## Methods + +### NewV0ProjectFileStorageResponseItemModel + +`func NewV0ProjectFileStorageResponseItemModel() *V0ProjectFileStorageResponseItemModel` + +NewV0ProjectFileStorageResponseItemModel instantiates a new V0ProjectFileStorageResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ProjectFileStorageResponseItemModelWithDefaults + +`func NewV0ProjectFileStorageResponseItemModelWithDefaults() *V0ProjectFileStorageResponseItemModel` + +NewV0ProjectFileStorageResponseItemModelWithDefaults instantiates a new V0ProjectFileStorageResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDownloadUrl + +`func (o *V0ProjectFileStorageResponseItemModel) GetDownloadUrl() string` + +GetDownloadUrl returns the DownloadUrl field if non-nil, zero value otherwise. + +### GetDownloadUrlOk + +`func (o *V0ProjectFileStorageResponseItemModel) GetDownloadUrlOk() (*string, bool)` + +GetDownloadUrlOk returns a tuple with the DownloadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownloadUrl + +`func (o *V0ProjectFileStorageResponseItemModel) SetDownloadUrl(v string)` + +SetDownloadUrl sets DownloadUrl field to given value. + +### HasDownloadUrl + +`func (o *V0ProjectFileStorageResponseItemModel) HasDownloadUrl() bool` + +HasDownloadUrl returns a boolean if a field has been set. + +### GetExposedMetaDatastore + +`func (o *V0ProjectFileStorageResponseItemModel) GetExposedMetaDatastore() []int32` + +GetExposedMetaDatastore returns the ExposedMetaDatastore field if non-nil, zero value otherwise. + +### GetExposedMetaDatastoreOk + +`func (o *V0ProjectFileStorageResponseItemModel) GetExposedMetaDatastoreOk() (*[]int32, bool)` + +GetExposedMetaDatastoreOk returns a tuple with the ExposedMetaDatastore field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExposedMetaDatastore + +`func (o *V0ProjectFileStorageResponseItemModel) SetExposedMetaDatastore(v []int32)` + +SetExposedMetaDatastore sets ExposedMetaDatastore field to given value. + +### HasExposedMetaDatastore + +`func (o *V0ProjectFileStorageResponseItemModel) HasExposedMetaDatastore() bool` + +HasExposedMetaDatastore returns a boolean if a field has been set. + +### GetIsExpose + +`func (o *V0ProjectFileStorageResponseItemModel) GetIsExpose() bool` + +GetIsExpose returns the IsExpose field if non-nil, zero value otherwise. + +### GetIsExposeOk + +`func (o *V0ProjectFileStorageResponseItemModel) GetIsExposeOk() (*bool, bool)` + +GetIsExposeOk returns a tuple with the IsExpose field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsExpose + +`func (o *V0ProjectFileStorageResponseItemModel) SetIsExpose(v bool)` + +SetIsExpose sets IsExpose field to given value. + +### HasIsExpose + +`func (o *V0ProjectFileStorageResponseItemModel) HasIsExpose() bool` + +HasIsExpose returns a boolean if a field has been set. + +### GetIsProtected + +`func (o *V0ProjectFileStorageResponseItemModel) GetIsProtected() bool` + +GetIsProtected returns the IsProtected field if non-nil, zero value otherwise. + +### GetIsProtectedOk + +`func (o *V0ProjectFileStorageResponseItemModel) GetIsProtectedOk() (*bool, bool)` + +GetIsProtectedOk returns a tuple with the IsProtected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsProtected + +`func (o *V0ProjectFileStorageResponseItemModel) SetIsProtected(v bool)` + +SetIsProtected sets IsProtected field to given value. + +### HasIsProtected + +`func (o *V0ProjectFileStorageResponseItemModel) HasIsProtected() bool` + +HasIsProtected returns a boolean if a field has been set. + +### GetProcessed + +`func (o *V0ProjectFileStorageResponseItemModel) GetProcessed() bool` + +GetProcessed returns the Processed field if non-nil, zero value otherwise. + +### GetProcessedOk + +`func (o *V0ProjectFileStorageResponseItemModel) GetProcessedOk() (*bool, bool)` + +GetProcessedOk returns a tuple with the Processed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessed + +`func (o *V0ProjectFileStorageResponseItemModel) SetProcessed(v bool)` + +SetProcessed sets Processed field to given value. + +### HasProcessed + +`func (o *V0ProjectFileStorageResponseItemModel) HasProcessed() bool` + +HasProcessed returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0ProjectFileStorageResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0ProjectFileStorageResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0ProjectFileStorageResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0ProjectFileStorageResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetUploadFileName + +`func (o *V0ProjectFileStorageResponseItemModel) GetUploadFileName() string` + +GetUploadFileName returns the UploadFileName field if non-nil, zero value otherwise. + +### GetUploadFileNameOk + +`func (o *V0ProjectFileStorageResponseItemModel) GetUploadFileNameOk() (*string, bool)` + +GetUploadFileNameOk returns a tuple with the UploadFileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileName + +`func (o *V0ProjectFileStorageResponseItemModel) SetUploadFileName(v string)` + +SetUploadFileName sets UploadFileName field to given value. + +### HasUploadFileName + +`func (o *V0ProjectFileStorageResponseItemModel) HasUploadFileName() bool` + +HasUploadFileName returns a boolean if a field has been set. + +### GetUploadFileSize + +`func (o *V0ProjectFileStorageResponseItemModel) GetUploadFileSize() int32` + +GetUploadFileSize returns the UploadFileSize field if non-nil, zero value otherwise. + +### GetUploadFileSizeOk + +`func (o *V0ProjectFileStorageResponseItemModel) GetUploadFileSizeOk() (*int32, bool)` + +GetUploadFileSizeOk returns a tuple with the UploadFileSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileSize + +`func (o *V0ProjectFileStorageResponseItemModel) SetUploadFileSize(v int32)` + +SetUploadFileSize sets UploadFileSize field to given value. + +### HasUploadFileSize + +`func (o *V0ProjectFileStorageResponseItemModel) HasUploadFileSize() bool` + +HasUploadFileSize returns a boolean if a field has been set. + +### GetUploadUrl + +`func (o *V0ProjectFileStorageResponseItemModel) GetUploadUrl() string` + +GetUploadUrl returns the UploadUrl field if non-nil, zero value otherwise. + +### GetUploadUrlOk + +`func (o *V0ProjectFileStorageResponseItemModel) GetUploadUrlOk() (*string, bool)` + +GetUploadUrlOk returns a tuple with the UploadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadUrl + +`func (o *V0ProjectFileStorageResponseItemModel) SetUploadUrl(v string)` + +SetUploadUrl sets UploadUrl field to given value. + +### HasUploadUrl + +`func (o *V0ProjectFileStorageResponseItemModel) HasUploadUrl() bool` + +HasUploadUrl returns a boolean if a field has been set. + +### GetUserEnvKey + +`func (o *V0ProjectFileStorageResponseItemModel) GetUserEnvKey() string` + +GetUserEnvKey returns the UserEnvKey field if non-nil, zero value otherwise. + +### GetUserEnvKeyOk + +`func (o *V0ProjectFileStorageResponseItemModel) GetUserEnvKeyOk() (*string, bool)` + +GetUserEnvKeyOk returns a tuple with the UserEnvKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserEnvKey + +`func (o *V0ProjectFileStorageResponseItemModel) SetUserEnvKey(v string)` + +SetUserEnvKey sets UserEnvKey field to given value. + +### HasUserEnvKey + +`func (o *V0ProjectFileStorageResponseItemModel) HasUserEnvKey() bool` + +HasUserEnvKey returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ProjectFileStorageResponseModel.md b/go2/docs/V0ProjectFileStorageResponseModel.md new file mode 100644 index 0000000..136d9b2 --- /dev/null +++ b/go2/docs/V0ProjectFileStorageResponseModel.md @@ -0,0 +1,56 @@ +# V0ProjectFileStorageResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0ProjectFileStorageResponseItemModel**](V0ProjectFileStorageResponseItemModel.md) | | [optional] + +## Methods + +### NewV0ProjectFileStorageResponseModel + +`func NewV0ProjectFileStorageResponseModel() *V0ProjectFileStorageResponseModel` + +NewV0ProjectFileStorageResponseModel instantiates a new V0ProjectFileStorageResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ProjectFileStorageResponseModelWithDefaults + +`func NewV0ProjectFileStorageResponseModelWithDefaults() *V0ProjectFileStorageResponseModel` + +NewV0ProjectFileStorageResponseModelWithDefaults instantiates a new V0ProjectFileStorageResponseModel object +This 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 *V0ProjectFileStorageResponseModel) GetData() V0ProjectFileStorageResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0ProjectFileStorageResponseModel) GetDataOk() (*V0ProjectFileStorageResponseItemModel, 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 *V0ProjectFileStorageResponseModel) SetData(v V0ProjectFileStorageResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0ProjectFileStorageResponseModel) 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/go2/docs/V0ProjectFileStorageUploadParams.md b/go2/docs/V0ProjectFileStorageUploadParams.md new file mode 100644 index 0000000..434943a --- /dev/null +++ b/go2/docs/V0ProjectFileStorageUploadParams.md @@ -0,0 +1,93 @@ +# V0ProjectFileStorageUploadParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UploadFileName** | **string** | | +**UploadFileSize** | **int32** | | +**UserEnvKey** | **string** | | + +## Methods + +### NewV0ProjectFileStorageUploadParams + +`func NewV0ProjectFileStorageUploadParams(uploadFileName string, uploadFileSize int32, userEnvKey string, ) *V0ProjectFileStorageUploadParams` + +NewV0ProjectFileStorageUploadParams instantiates a new V0ProjectFileStorageUploadParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ProjectFileStorageUploadParamsWithDefaults + +`func NewV0ProjectFileStorageUploadParamsWithDefaults() *V0ProjectFileStorageUploadParams` + +NewV0ProjectFileStorageUploadParamsWithDefaults instantiates a new V0ProjectFileStorageUploadParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUploadFileName + +`func (o *V0ProjectFileStorageUploadParams) GetUploadFileName() string` + +GetUploadFileName returns the UploadFileName field if non-nil, zero value otherwise. + +### GetUploadFileNameOk + +`func (o *V0ProjectFileStorageUploadParams) GetUploadFileNameOk() (*string, bool)` + +GetUploadFileNameOk returns a tuple with the UploadFileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileName + +`func (o *V0ProjectFileStorageUploadParams) SetUploadFileName(v string)` + +SetUploadFileName sets UploadFileName field to given value. + + +### GetUploadFileSize + +`func (o *V0ProjectFileStorageUploadParams) GetUploadFileSize() int32` + +GetUploadFileSize returns the UploadFileSize field if non-nil, zero value otherwise. + +### GetUploadFileSizeOk + +`func (o *V0ProjectFileStorageUploadParams) GetUploadFileSizeOk() (*int32, bool)` + +GetUploadFileSizeOk returns a tuple with the UploadFileSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileSize + +`func (o *V0ProjectFileStorageUploadParams) SetUploadFileSize(v int32)` + +SetUploadFileSize sets UploadFileSize field to given value. + + +### GetUserEnvKey + +`func (o *V0ProjectFileStorageUploadParams) GetUserEnvKey() string` + +GetUserEnvKey returns the UserEnvKey field if non-nil, zero value otherwise. + +### GetUserEnvKeyOk + +`func (o *V0ProjectFileStorageUploadParams) GetUserEnvKeyOk() (*string, bool)` + +GetUserEnvKeyOk returns a tuple with the UserEnvKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserEnvKey + +`func (o *V0ProjectFileStorageUploadParams) SetUserEnvKey(v string)` + +SetUserEnvKey sets UserEnvKey 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/go2/docs/V0ProvProfileDocumentUpdateParams.md b/go2/docs/V0ProvProfileDocumentUpdateParams.md new file mode 100644 index 0000000..9814b87 --- /dev/null +++ b/go2/docs/V0ProvProfileDocumentUpdateParams.md @@ -0,0 +1,108 @@ +# V0ProvProfileDocumentUpdateParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**IsExpose** | Pointer to **bool** | | [optional] +**IsProtected** | Pointer to **bool** | | [optional] +**Processed** | Pointer to **bool** | | [optional] + +## Methods + +### NewV0ProvProfileDocumentUpdateParams + +`func NewV0ProvProfileDocumentUpdateParams() *V0ProvProfileDocumentUpdateParams` + +NewV0ProvProfileDocumentUpdateParams instantiates a new V0ProvProfileDocumentUpdateParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ProvProfileDocumentUpdateParamsWithDefaults + +`func NewV0ProvProfileDocumentUpdateParamsWithDefaults() *V0ProvProfileDocumentUpdateParams` + +NewV0ProvProfileDocumentUpdateParamsWithDefaults instantiates a new V0ProvProfileDocumentUpdateParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIsExpose + +`func (o *V0ProvProfileDocumentUpdateParams) GetIsExpose() bool` + +GetIsExpose returns the IsExpose field if non-nil, zero value otherwise. + +### GetIsExposeOk + +`func (o *V0ProvProfileDocumentUpdateParams) GetIsExposeOk() (*bool, bool)` + +GetIsExposeOk returns a tuple with the IsExpose field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsExpose + +`func (o *V0ProvProfileDocumentUpdateParams) SetIsExpose(v bool)` + +SetIsExpose sets IsExpose field to given value. + +### HasIsExpose + +`func (o *V0ProvProfileDocumentUpdateParams) HasIsExpose() bool` + +HasIsExpose returns a boolean if a field has been set. + +### GetIsProtected + +`func (o *V0ProvProfileDocumentUpdateParams) GetIsProtected() bool` + +GetIsProtected returns the IsProtected field if non-nil, zero value otherwise. + +### GetIsProtectedOk + +`func (o *V0ProvProfileDocumentUpdateParams) GetIsProtectedOk() (*bool, bool)` + +GetIsProtectedOk returns a tuple with the IsProtected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsProtected + +`func (o *V0ProvProfileDocumentUpdateParams) SetIsProtected(v bool)` + +SetIsProtected sets IsProtected field to given value. + +### HasIsProtected + +`func (o *V0ProvProfileDocumentUpdateParams) HasIsProtected() bool` + +HasIsProtected returns a boolean if a field has been set. + +### GetProcessed + +`func (o *V0ProvProfileDocumentUpdateParams) GetProcessed() bool` + +GetProcessed returns the Processed field if non-nil, zero value otherwise. + +### GetProcessedOk + +`func (o *V0ProvProfileDocumentUpdateParams) GetProcessedOk() (*bool, bool)` + +GetProcessedOk returns a tuple with the Processed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessed + +`func (o *V0ProvProfileDocumentUpdateParams) SetProcessed(v bool)` + +SetProcessed sets Processed field to given value. + +### HasProcessed + +`func (o *V0ProvProfileDocumentUpdateParams) HasProcessed() bool` + +HasProcessed returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ProvisionProfileListResponseModel.md b/go2/docs/V0ProvisionProfileListResponseModel.md new file mode 100644 index 0000000..f13bd25 --- /dev/null +++ b/go2/docs/V0ProvisionProfileListResponseModel.md @@ -0,0 +1,82 @@ +# V0ProvisionProfileListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0ProvisionProfileResponseItemModel**](V0ProvisionProfileResponseItemModel.md) | | [optional] +**Paging** | Pointer to [**V0PagingResponseModel**](V0PagingResponseModel.md) | | [optional] + +## Methods + +### NewV0ProvisionProfileListResponseModel + +`func NewV0ProvisionProfileListResponseModel() *V0ProvisionProfileListResponseModel` + +NewV0ProvisionProfileListResponseModel instantiates a new V0ProvisionProfileListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ProvisionProfileListResponseModelWithDefaults + +`func NewV0ProvisionProfileListResponseModelWithDefaults() *V0ProvisionProfileListResponseModel` + +NewV0ProvisionProfileListResponseModelWithDefaults instantiates a new V0ProvisionProfileListResponseModel object +This 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 *V0ProvisionProfileListResponseModel) GetData() []V0ProvisionProfileResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0ProvisionProfileListResponseModel) GetDataOk() (*[]V0ProvisionProfileResponseItemModel, 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 *V0ProvisionProfileListResponseModel) SetData(v []V0ProvisionProfileResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0ProvisionProfileListResponseModel) HasData() bool` + +HasData returns a boolean if a field has been set. + +### GetPaging + +`func (o *V0ProvisionProfileListResponseModel) GetPaging() V0PagingResponseModel` + +GetPaging returns the Paging field if non-nil, zero value otherwise. + +### GetPagingOk + +`func (o *V0ProvisionProfileListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool)` + +GetPagingOk returns a tuple with the Paging field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaging + +`func (o *V0ProvisionProfileListResponseModel) SetPaging(v V0PagingResponseModel)` + +SetPaging sets Paging field to given value. + +### HasPaging + +`func (o *V0ProvisionProfileListResponseModel) HasPaging() bool` + +HasPaging returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ProvisionProfileResponseItemModel.md b/go2/docs/V0ProvisionProfileResponseItemModel.md new file mode 100644 index 0000000..73a1d23 --- /dev/null +++ b/go2/docs/V0ProvisionProfileResponseItemModel.md @@ -0,0 +1,238 @@ +# V0ProvisionProfileResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DownloadUrl** | Pointer to **string** | | [optional] +**IsExpose** | Pointer to **bool** | | [optional] +**IsProtected** | Pointer to **bool** | | [optional] +**Processed** | Pointer to **bool** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**UploadFileName** | Pointer to **string** | | [optional] +**UploadFileSize** | Pointer to **int32** | | [optional] +**UploadUrl** | Pointer to **string** | | [optional] + +## Methods + +### NewV0ProvisionProfileResponseItemModel + +`func NewV0ProvisionProfileResponseItemModel() *V0ProvisionProfileResponseItemModel` + +NewV0ProvisionProfileResponseItemModel instantiates a new V0ProvisionProfileResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ProvisionProfileResponseItemModelWithDefaults + +`func NewV0ProvisionProfileResponseItemModelWithDefaults() *V0ProvisionProfileResponseItemModel` + +NewV0ProvisionProfileResponseItemModelWithDefaults instantiates a new V0ProvisionProfileResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDownloadUrl + +`func (o *V0ProvisionProfileResponseItemModel) GetDownloadUrl() string` + +GetDownloadUrl returns the DownloadUrl field if non-nil, zero value otherwise. + +### GetDownloadUrlOk + +`func (o *V0ProvisionProfileResponseItemModel) GetDownloadUrlOk() (*string, bool)` + +GetDownloadUrlOk returns a tuple with the DownloadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownloadUrl + +`func (o *V0ProvisionProfileResponseItemModel) SetDownloadUrl(v string)` + +SetDownloadUrl sets DownloadUrl field to given value. + +### HasDownloadUrl + +`func (o *V0ProvisionProfileResponseItemModel) HasDownloadUrl() bool` + +HasDownloadUrl returns a boolean if a field has been set. + +### GetIsExpose + +`func (o *V0ProvisionProfileResponseItemModel) GetIsExpose() bool` + +GetIsExpose returns the IsExpose field if non-nil, zero value otherwise. + +### GetIsExposeOk + +`func (o *V0ProvisionProfileResponseItemModel) GetIsExposeOk() (*bool, bool)` + +GetIsExposeOk returns a tuple with the IsExpose field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsExpose + +`func (o *V0ProvisionProfileResponseItemModel) SetIsExpose(v bool)` + +SetIsExpose sets IsExpose field to given value. + +### HasIsExpose + +`func (o *V0ProvisionProfileResponseItemModel) HasIsExpose() bool` + +HasIsExpose returns a boolean if a field has been set. + +### GetIsProtected + +`func (o *V0ProvisionProfileResponseItemModel) GetIsProtected() bool` + +GetIsProtected returns the IsProtected field if non-nil, zero value otherwise. + +### GetIsProtectedOk + +`func (o *V0ProvisionProfileResponseItemModel) GetIsProtectedOk() (*bool, bool)` + +GetIsProtectedOk returns a tuple with the IsProtected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsProtected + +`func (o *V0ProvisionProfileResponseItemModel) SetIsProtected(v bool)` + +SetIsProtected sets IsProtected field to given value. + +### HasIsProtected + +`func (o *V0ProvisionProfileResponseItemModel) HasIsProtected() bool` + +HasIsProtected returns a boolean if a field has been set. + +### GetProcessed + +`func (o *V0ProvisionProfileResponseItemModel) GetProcessed() bool` + +GetProcessed returns the Processed field if non-nil, zero value otherwise. + +### GetProcessedOk + +`func (o *V0ProvisionProfileResponseItemModel) GetProcessedOk() (*bool, bool)` + +GetProcessedOk returns a tuple with the Processed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProcessed + +`func (o *V0ProvisionProfileResponseItemModel) SetProcessed(v bool)` + +SetProcessed sets Processed field to given value. + +### HasProcessed + +`func (o *V0ProvisionProfileResponseItemModel) HasProcessed() bool` + +HasProcessed returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0ProvisionProfileResponseItemModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0ProvisionProfileResponseItemModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0ProvisionProfileResponseItemModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0ProvisionProfileResponseItemModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetUploadFileName + +`func (o *V0ProvisionProfileResponseItemModel) GetUploadFileName() string` + +GetUploadFileName returns the UploadFileName field if non-nil, zero value otherwise. + +### GetUploadFileNameOk + +`func (o *V0ProvisionProfileResponseItemModel) GetUploadFileNameOk() (*string, bool)` + +GetUploadFileNameOk returns a tuple with the UploadFileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileName + +`func (o *V0ProvisionProfileResponseItemModel) SetUploadFileName(v string)` + +SetUploadFileName sets UploadFileName field to given value. + +### HasUploadFileName + +`func (o *V0ProvisionProfileResponseItemModel) HasUploadFileName() bool` + +HasUploadFileName returns a boolean if a field has been set. + +### GetUploadFileSize + +`func (o *V0ProvisionProfileResponseItemModel) GetUploadFileSize() int32` + +GetUploadFileSize returns the UploadFileSize field if non-nil, zero value otherwise. + +### GetUploadFileSizeOk + +`func (o *V0ProvisionProfileResponseItemModel) GetUploadFileSizeOk() (*int32, bool)` + +GetUploadFileSizeOk returns a tuple with the UploadFileSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileSize + +`func (o *V0ProvisionProfileResponseItemModel) SetUploadFileSize(v int32)` + +SetUploadFileSize sets UploadFileSize field to given value. + +### HasUploadFileSize + +`func (o *V0ProvisionProfileResponseItemModel) HasUploadFileSize() bool` + +HasUploadFileSize returns a boolean if a field has been set. + +### GetUploadUrl + +`func (o *V0ProvisionProfileResponseItemModel) GetUploadUrl() string` + +GetUploadUrl returns the UploadUrl field if non-nil, zero value otherwise. + +### GetUploadUrlOk + +`func (o *V0ProvisionProfileResponseItemModel) GetUploadUrlOk() (*string, bool)` + +GetUploadUrlOk returns a tuple with the UploadUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadUrl + +`func (o *V0ProvisionProfileResponseItemModel) SetUploadUrl(v string)` + +SetUploadUrl sets UploadUrl field to given value. + +### HasUploadUrl + +`func (o *V0ProvisionProfileResponseItemModel) HasUploadUrl() bool` + +HasUploadUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ProvisionProfileResponseModel.md b/go2/docs/V0ProvisionProfileResponseModel.md new file mode 100644 index 0000000..be3d8c9 --- /dev/null +++ b/go2/docs/V0ProvisionProfileResponseModel.md @@ -0,0 +1,56 @@ +# V0ProvisionProfileResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0ProvisionProfileResponseItemModel**](V0ProvisionProfileResponseItemModel.md) | | [optional] + +## Methods + +### NewV0ProvisionProfileResponseModel + +`func NewV0ProvisionProfileResponseModel() *V0ProvisionProfileResponseModel` + +NewV0ProvisionProfileResponseModel instantiates a new V0ProvisionProfileResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ProvisionProfileResponseModelWithDefaults + +`func NewV0ProvisionProfileResponseModelWithDefaults() *V0ProvisionProfileResponseModel` + +NewV0ProvisionProfileResponseModelWithDefaults instantiates a new V0ProvisionProfileResponseModel object +This 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 *V0ProvisionProfileResponseModel) GetData() V0ProvisionProfileResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0ProvisionProfileResponseModel) GetDataOk() (*V0ProvisionProfileResponseItemModel, 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 *V0ProvisionProfileResponseModel) SetData(v V0ProvisionProfileResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0ProvisionProfileResponseModel) 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/go2/docs/V0ProvisionProfileUploadParams.md b/go2/docs/V0ProvisionProfileUploadParams.md new file mode 100644 index 0000000..3cec97d --- /dev/null +++ b/go2/docs/V0ProvisionProfileUploadParams.md @@ -0,0 +1,72 @@ +# V0ProvisionProfileUploadParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**UploadFileName** | **string** | | +**UploadFileSize** | **int32** | | + +## Methods + +### NewV0ProvisionProfileUploadParams + +`func NewV0ProvisionProfileUploadParams(uploadFileName string, uploadFileSize int32, ) *V0ProvisionProfileUploadParams` + +NewV0ProvisionProfileUploadParams instantiates a new V0ProvisionProfileUploadParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ProvisionProfileUploadParamsWithDefaults + +`func NewV0ProvisionProfileUploadParamsWithDefaults() *V0ProvisionProfileUploadParams` + +NewV0ProvisionProfileUploadParamsWithDefaults instantiates a new V0ProvisionProfileUploadParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUploadFileName + +`func (o *V0ProvisionProfileUploadParams) GetUploadFileName() string` + +GetUploadFileName returns the UploadFileName field if non-nil, zero value otherwise. + +### GetUploadFileNameOk + +`func (o *V0ProvisionProfileUploadParams) GetUploadFileNameOk() (*string, bool)` + +GetUploadFileNameOk returns a tuple with the UploadFileName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileName + +`func (o *V0ProvisionProfileUploadParams) SetUploadFileName(v string)` + +SetUploadFileName sets UploadFileName field to given value. + + +### GetUploadFileSize + +`func (o *V0ProvisionProfileUploadParams) GetUploadFileSize() int32` + +GetUploadFileSize returns the UploadFileSize field if non-nil, zero value otherwise. + +### GetUploadFileSizeOk + +`func (o *V0ProvisionProfileUploadParams) GetUploadFileSizeOk() (*int32, bool)` + +GetUploadFileSizeOk returns a tuple with the UploadFileSize field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadFileSize + +`func (o *V0ProvisionProfileUploadParams) SetUploadFileSize(v int32)` + +SetUploadFileSize sets UploadFileSize 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/go2/docs/V0ReleaseCreateAppStoreParams.md b/go2/docs/V0ReleaseCreateAppStoreParams.md new file mode 100644 index 0000000..e9f88d9 --- /dev/null +++ b/go2/docs/V0ReleaseCreateAppStoreParams.md @@ -0,0 +1,228 @@ +# V0ReleaseCreateAppStoreParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutomaticTestflightUpload** | Pointer to **bool** | @Deprecated use `automatic_store_upload` instead. Indicates whether or not to upload every release candidate build automatically to TestFlight (default: `false`) | [optional] +**BundleId** | **string** | The bundle ID of the app to be released | +**Description** | Pointer to **string** | An internal description of the release; it won't be propagated to the App Store (default: empty) | [optional] +**Name** | **string** | The name/version of the release (e.g. `1.2`) | +**ReleaseBranch** | Pointer to **string** | The branch used for building the release candidate (default: empty) | [optional] +**SlackWebhookUrl** | Pointer to **string** | The Slack webhook URL to use for sending Slack notifications (default: empty) | [optional] +**TeamsWebhookUrl** | Pointer to **string** | The Teams webhook URL to use for sending MS Teams notifications (default: empty) | [optional] +**Workflow** | Pointer to **string** | The workflow used for building the release candidate (default: empty) | [optional] + +## Methods + +### NewV0ReleaseCreateAppStoreParams + +`func NewV0ReleaseCreateAppStoreParams(bundleId string, name string, ) *V0ReleaseCreateAppStoreParams` + +NewV0ReleaseCreateAppStoreParams instantiates a new V0ReleaseCreateAppStoreParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ReleaseCreateAppStoreParamsWithDefaults + +`func NewV0ReleaseCreateAppStoreParamsWithDefaults() *V0ReleaseCreateAppStoreParams` + +NewV0ReleaseCreateAppStoreParamsWithDefaults instantiates a new V0ReleaseCreateAppStoreParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAutomaticTestflightUpload + +`func (o *V0ReleaseCreateAppStoreParams) GetAutomaticTestflightUpload() bool` + +GetAutomaticTestflightUpload returns the AutomaticTestflightUpload field if non-nil, zero value otherwise. + +### GetAutomaticTestflightUploadOk + +`func (o *V0ReleaseCreateAppStoreParams) GetAutomaticTestflightUploadOk() (*bool, bool)` + +GetAutomaticTestflightUploadOk returns a tuple with the AutomaticTestflightUpload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutomaticTestflightUpload + +`func (o *V0ReleaseCreateAppStoreParams) SetAutomaticTestflightUpload(v bool)` + +SetAutomaticTestflightUpload sets AutomaticTestflightUpload field to given value. + +### HasAutomaticTestflightUpload + +`func (o *V0ReleaseCreateAppStoreParams) HasAutomaticTestflightUpload() bool` + +HasAutomaticTestflightUpload returns a boolean if a field has been set. + +### GetBundleId + +`func (o *V0ReleaseCreateAppStoreParams) GetBundleId() string` + +GetBundleId returns the BundleId field if non-nil, zero value otherwise. + +### GetBundleIdOk + +`func (o *V0ReleaseCreateAppStoreParams) GetBundleIdOk() (*string, bool)` + +GetBundleIdOk returns a tuple with the BundleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundleId + +`func (o *V0ReleaseCreateAppStoreParams) SetBundleId(v string)` + +SetBundleId sets BundleId field to given value. + + +### GetDescription + +`func (o *V0ReleaseCreateAppStoreParams) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *V0ReleaseCreateAppStoreParams) 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 *V0ReleaseCreateAppStoreParams) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *V0ReleaseCreateAppStoreParams) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetName + +`func (o *V0ReleaseCreateAppStoreParams) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V0ReleaseCreateAppStoreParams) 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 *V0ReleaseCreateAppStoreParams) SetName(v string)` + +SetName sets Name field to given value. + + +### GetReleaseBranch + +`func (o *V0ReleaseCreateAppStoreParams) GetReleaseBranch() string` + +GetReleaseBranch returns the ReleaseBranch field if non-nil, zero value otherwise. + +### GetReleaseBranchOk + +`func (o *V0ReleaseCreateAppStoreParams) GetReleaseBranchOk() (*string, bool)` + +GetReleaseBranchOk returns a tuple with the ReleaseBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseBranch + +`func (o *V0ReleaseCreateAppStoreParams) SetReleaseBranch(v string)` + +SetReleaseBranch sets ReleaseBranch field to given value. + +### HasReleaseBranch + +`func (o *V0ReleaseCreateAppStoreParams) HasReleaseBranch() bool` + +HasReleaseBranch returns a boolean if a field has been set. + +### GetSlackWebhookUrl + +`func (o *V0ReleaseCreateAppStoreParams) GetSlackWebhookUrl() string` + +GetSlackWebhookUrl returns the SlackWebhookUrl field if non-nil, zero value otherwise. + +### GetSlackWebhookUrlOk + +`func (o *V0ReleaseCreateAppStoreParams) GetSlackWebhookUrlOk() (*string, bool)` + +GetSlackWebhookUrlOk returns a tuple with the SlackWebhookUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlackWebhookUrl + +`func (o *V0ReleaseCreateAppStoreParams) SetSlackWebhookUrl(v string)` + +SetSlackWebhookUrl sets SlackWebhookUrl field to given value. + +### HasSlackWebhookUrl + +`func (o *V0ReleaseCreateAppStoreParams) HasSlackWebhookUrl() bool` + +HasSlackWebhookUrl returns a boolean if a field has been set. + +### GetTeamsWebhookUrl + +`func (o *V0ReleaseCreateAppStoreParams) GetTeamsWebhookUrl() string` + +GetTeamsWebhookUrl returns the TeamsWebhookUrl field if non-nil, zero value otherwise. + +### GetTeamsWebhookUrlOk + +`func (o *V0ReleaseCreateAppStoreParams) GetTeamsWebhookUrlOk() (*string, bool)` + +GetTeamsWebhookUrlOk returns a tuple with the TeamsWebhookUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTeamsWebhookUrl + +`func (o *V0ReleaseCreateAppStoreParams) SetTeamsWebhookUrl(v string)` + +SetTeamsWebhookUrl sets TeamsWebhookUrl field to given value. + +### HasTeamsWebhookUrl + +`func (o *V0ReleaseCreateAppStoreParams) HasTeamsWebhookUrl() bool` + +HasTeamsWebhookUrl returns a boolean if a field has been set. + +### GetWorkflow + +`func (o *V0ReleaseCreateAppStoreParams) GetWorkflow() string` + +GetWorkflow returns the Workflow field if non-nil, zero value otherwise. + +### GetWorkflowOk + +`func (o *V0ReleaseCreateAppStoreParams) GetWorkflowOk() (*string, bool)` + +GetWorkflowOk returns a tuple with the Workflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflow + +`func (o *V0ReleaseCreateAppStoreParams) SetWorkflow(v string)` + +SetWorkflow sets Workflow field to given value. + +### HasWorkflow + +`func (o *V0ReleaseCreateAppStoreParams) HasWorkflow() bool` + +HasWorkflow returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ReleaseCreateAppStoreRespModel.md b/go2/docs/V0ReleaseCreateAppStoreRespModel.md new file mode 100644 index 0000000..1825c84 --- /dev/null +++ b/go2/docs/V0ReleaseCreateAppStoreRespModel.md @@ -0,0 +1,160 @@ +# V0ReleaseCreateAppStoreRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BundleId** | Pointer to **string** | The bundle ID of the app | [optional] +**Id** | Pointer to **string** | The ID of the newly created release | [optional] +**Name** | Pointer to **string** | The name/version of the release (e.g. `1.2`) | [optional] +**Platform** | Pointer to **string** | The platform of the release (`ios`) | [optional] +**Status** | Pointer to **string** | The status of the newly created release (`scheduled` or `in-progress`, depending on whether or not the release candidate settings were specified) | [optional] + +## Methods + +### NewV0ReleaseCreateAppStoreRespModel + +`func NewV0ReleaseCreateAppStoreRespModel() *V0ReleaseCreateAppStoreRespModel` + +NewV0ReleaseCreateAppStoreRespModel instantiates a new V0ReleaseCreateAppStoreRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ReleaseCreateAppStoreRespModelWithDefaults + +`func NewV0ReleaseCreateAppStoreRespModelWithDefaults() *V0ReleaseCreateAppStoreRespModel` + +NewV0ReleaseCreateAppStoreRespModelWithDefaults instantiates a new V0ReleaseCreateAppStoreRespModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBundleId + +`func (o *V0ReleaseCreateAppStoreRespModel) GetBundleId() string` + +GetBundleId returns the BundleId field if non-nil, zero value otherwise. + +### GetBundleIdOk + +`func (o *V0ReleaseCreateAppStoreRespModel) GetBundleIdOk() (*string, bool)` + +GetBundleIdOk returns a tuple with the BundleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundleId + +`func (o *V0ReleaseCreateAppStoreRespModel) SetBundleId(v string)` + +SetBundleId sets BundleId field to given value. + +### HasBundleId + +`func (o *V0ReleaseCreateAppStoreRespModel) HasBundleId() bool` + +HasBundleId returns a boolean if a field has been set. + +### GetId + +`func (o *V0ReleaseCreateAppStoreRespModel) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *V0ReleaseCreateAppStoreRespModel) 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 *V0ReleaseCreateAppStoreRespModel) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *V0ReleaseCreateAppStoreRespModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *V0ReleaseCreateAppStoreRespModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V0ReleaseCreateAppStoreRespModel) 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 *V0ReleaseCreateAppStoreRespModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V0ReleaseCreateAppStoreRespModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPlatform + +`func (o *V0ReleaseCreateAppStoreRespModel) GetPlatform() string` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *V0ReleaseCreateAppStoreRespModel) GetPlatformOk() (*string, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *V0ReleaseCreateAppStoreRespModel) SetPlatform(v string)` + +SetPlatform sets Platform field to given value. + +### HasPlatform + +`func (o *V0ReleaseCreateAppStoreRespModel) HasPlatform() bool` + +HasPlatform returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0ReleaseCreateAppStoreRespModel) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0ReleaseCreateAppStoreRespModel) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0ReleaseCreateAppStoreRespModel) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0ReleaseCreateAppStoreRespModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ReleaseCreateGooglePlayParams.md b/go2/docs/V0ReleaseCreateGooglePlayParams.md new file mode 100644 index 0000000..5e3ee2a --- /dev/null +++ b/go2/docs/V0ReleaseCreateGooglePlayParams.md @@ -0,0 +1,228 @@ +# V0ReleaseCreateGooglePlayParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AutomaticPlayConsoleUpload** | Pointer to **bool** | Indicates whether or not to upload every release candidate build automatically to the Google Play Console (default: `false`) | [optional] +**Description** | Pointer to **string** | An internal description of the release; it won't be propagated to the App Store (default: empty) | [optional] +**Name** | **string** | The name/version of the release (e.g. `1.2`) | +**PackageName** | **string** | The package name of the app to be released | +**ReleaseBranch** | Pointer to **string** | The branch used for building the release candidate (default: empty) | [optional] +**SlackWebhookUrl** | Pointer to **string** | The Slack webhook URL to use for sending Slack notifications (default: empty) | [optional] +**TeamsWebhookUrl** | Pointer to **string** | The Teams webhook URL to use for sending MS Teams notifications (default: empty) | [optional] +**Workflow** | Pointer to **string** | The workflow used for building the release candidate (default: empty) | [optional] + +## Methods + +### NewV0ReleaseCreateGooglePlayParams + +`func NewV0ReleaseCreateGooglePlayParams(name string, packageName string, ) *V0ReleaseCreateGooglePlayParams` + +NewV0ReleaseCreateGooglePlayParams instantiates a new V0ReleaseCreateGooglePlayParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ReleaseCreateGooglePlayParamsWithDefaults + +`func NewV0ReleaseCreateGooglePlayParamsWithDefaults() *V0ReleaseCreateGooglePlayParams` + +NewV0ReleaseCreateGooglePlayParamsWithDefaults instantiates a new V0ReleaseCreateGooglePlayParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAutomaticPlayConsoleUpload + +`func (o *V0ReleaseCreateGooglePlayParams) GetAutomaticPlayConsoleUpload() bool` + +GetAutomaticPlayConsoleUpload returns the AutomaticPlayConsoleUpload field if non-nil, zero value otherwise. + +### GetAutomaticPlayConsoleUploadOk + +`func (o *V0ReleaseCreateGooglePlayParams) GetAutomaticPlayConsoleUploadOk() (*bool, bool)` + +GetAutomaticPlayConsoleUploadOk returns a tuple with the AutomaticPlayConsoleUpload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAutomaticPlayConsoleUpload + +`func (o *V0ReleaseCreateGooglePlayParams) SetAutomaticPlayConsoleUpload(v bool)` + +SetAutomaticPlayConsoleUpload sets AutomaticPlayConsoleUpload field to given value. + +### HasAutomaticPlayConsoleUpload + +`func (o *V0ReleaseCreateGooglePlayParams) HasAutomaticPlayConsoleUpload() bool` + +HasAutomaticPlayConsoleUpload returns a boolean if a field has been set. + +### GetDescription + +`func (o *V0ReleaseCreateGooglePlayParams) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *V0ReleaseCreateGooglePlayParams) 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 *V0ReleaseCreateGooglePlayParams) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *V0ReleaseCreateGooglePlayParams) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetName + +`func (o *V0ReleaseCreateGooglePlayParams) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V0ReleaseCreateGooglePlayParams) 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 *V0ReleaseCreateGooglePlayParams) SetName(v string)` + +SetName sets Name field to given value. + + +### GetPackageName + +`func (o *V0ReleaseCreateGooglePlayParams) GetPackageName() string` + +GetPackageName returns the PackageName field if non-nil, zero value otherwise. + +### GetPackageNameOk + +`func (o *V0ReleaseCreateGooglePlayParams) GetPackageNameOk() (*string, bool)` + +GetPackageNameOk returns a tuple with the PackageName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageName + +`func (o *V0ReleaseCreateGooglePlayParams) SetPackageName(v string)` + +SetPackageName sets PackageName field to given value. + + +### GetReleaseBranch + +`func (o *V0ReleaseCreateGooglePlayParams) GetReleaseBranch() string` + +GetReleaseBranch returns the ReleaseBranch field if non-nil, zero value otherwise. + +### GetReleaseBranchOk + +`func (o *V0ReleaseCreateGooglePlayParams) GetReleaseBranchOk() (*string, bool)` + +GetReleaseBranchOk returns a tuple with the ReleaseBranch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReleaseBranch + +`func (o *V0ReleaseCreateGooglePlayParams) SetReleaseBranch(v string)` + +SetReleaseBranch sets ReleaseBranch field to given value. + +### HasReleaseBranch + +`func (o *V0ReleaseCreateGooglePlayParams) HasReleaseBranch() bool` + +HasReleaseBranch returns a boolean if a field has been set. + +### GetSlackWebhookUrl + +`func (o *V0ReleaseCreateGooglePlayParams) GetSlackWebhookUrl() string` + +GetSlackWebhookUrl returns the SlackWebhookUrl field if non-nil, zero value otherwise. + +### GetSlackWebhookUrlOk + +`func (o *V0ReleaseCreateGooglePlayParams) GetSlackWebhookUrlOk() (*string, bool)` + +GetSlackWebhookUrlOk returns a tuple with the SlackWebhookUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlackWebhookUrl + +`func (o *V0ReleaseCreateGooglePlayParams) SetSlackWebhookUrl(v string)` + +SetSlackWebhookUrl sets SlackWebhookUrl field to given value. + +### HasSlackWebhookUrl + +`func (o *V0ReleaseCreateGooglePlayParams) HasSlackWebhookUrl() bool` + +HasSlackWebhookUrl returns a boolean if a field has been set. + +### GetTeamsWebhookUrl + +`func (o *V0ReleaseCreateGooglePlayParams) GetTeamsWebhookUrl() string` + +GetTeamsWebhookUrl returns the TeamsWebhookUrl field if non-nil, zero value otherwise. + +### GetTeamsWebhookUrlOk + +`func (o *V0ReleaseCreateGooglePlayParams) GetTeamsWebhookUrlOk() (*string, bool)` + +GetTeamsWebhookUrlOk returns a tuple with the TeamsWebhookUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTeamsWebhookUrl + +`func (o *V0ReleaseCreateGooglePlayParams) SetTeamsWebhookUrl(v string)` + +SetTeamsWebhookUrl sets TeamsWebhookUrl field to given value. + +### HasTeamsWebhookUrl + +`func (o *V0ReleaseCreateGooglePlayParams) HasTeamsWebhookUrl() bool` + +HasTeamsWebhookUrl returns a boolean if a field has been set. + +### GetWorkflow + +`func (o *V0ReleaseCreateGooglePlayParams) GetWorkflow() string` + +GetWorkflow returns the Workflow field if non-nil, zero value otherwise. + +### GetWorkflowOk + +`func (o *V0ReleaseCreateGooglePlayParams) GetWorkflowOk() (*string, bool)` + +GetWorkflowOk returns a tuple with the Workflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWorkflow + +`func (o *V0ReleaseCreateGooglePlayParams) SetWorkflow(v string)` + +SetWorkflow sets Workflow field to given value. + +### HasWorkflow + +`func (o *V0ReleaseCreateGooglePlayParams) HasWorkflow() bool` + +HasWorkflow returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0ReleaseCreateGooglePlayRespModel.md b/go2/docs/V0ReleaseCreateGooglePlayRespModel.md new file mode 100644 index 0000000..b67af2a --- /dev/null +++ b/go2/docs/V0ReleaseCreateGooglePlayRespModel.md @@ -0,0 +1,160 @@ +# V0ReleaseCreateGooglePlayRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | The ID of the newly created release | [optional] +**Name** | Pointer to **string** | The name/version of the release (e.g. `1.2`) | [optional] +**PackageName** | Pointer to **string** | The package name of the app | [optional] +**Platform** | Pointer to **string** | The platform of the release (`android`) | [optional] +**Status** | Pointer to **string** | The status of the newly created release (`scheduled` or `in-progress`, depending on whether or not the release candidate settings were specified) | [optional] + +## Methods + +### NewV0ReleaseCreateGooglePlayRespModel + +`func NewV0ReleaseCreateGooglePlayRespModel() *V0ReleaseCreateGooglePlayRespModel` + +NewV0ReleaseCreateGooglePlayRespModel instantiates a new V0ReleaseCreateGooglePlayRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0ReleaseCreateGooglePlayRespModelWithDefaults + +`func NewV0ReleaseCreateGooglePlayRespModelWithDefaults() *V0ReleaseCreateGooglePlayRespModel` + +NewV0ReleaseCreateGooglePlayRespModelWithDefaults instantiates a new V0ReleaseCreateGooglePlayRespModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *V0ReleaseCreateGooglePlayRespModel) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *V0ReleaseCreateGooglePlayRespModel) 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 *V0ReleaseCreateGooglePlayRespModel) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *V0ReleaseCreateGooglePlayRespModel) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetName + +`func (o *V0ReleaseCreateGooglePlayRespModel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *V0ReleaseCreateGooglePlayRespModel) 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 *V0ReleaseCreateGooglePlayRespModel) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *V0ReleaseCreateGooglePlayRespModel) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetPackageName + +`func (o *V0ReleaseCreateGooglePlayRespModel) GetPackageName() string` + +GetPackageName returns the PackageName field if non-nil, zero value otherwise. + +### GetPackageNameOk + +`func (o *V0ReleaseCreateGooglePlayRespModel) GetPackageNameOk() (*string, bool)` + +GetPackageNameOk returns a tuple with the PackageName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageName + +`func (o *V0ReleaseCreateGooglePlayRespModel) SetPackageName(v string)` + +SetPackageName sets PackageName field to given value. + +### HasPackageName + +`func (o *V0ReleaseCreateGooglePlayRespModel) HasPackageName() bool` + +HasPackageName returns a boolean if a field has been set. + +### GetPlatform + +`func (o *V0ReleaseCreateGooglePlayRespModel) GetPlatform() string` + +GetPlatform returns the Platform field if non-nil, zero value otherwise. + +### GetPlatformOk + +`func (o *V0ReleaseCreateGooglePlayRespModel) GetPlatformOk() (*string, bool)` + +GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatform + +`func (o *V0ReleaseCreateGooglePlayRespModel) SetPlatform(v string)` + +SetPlatform sets Platform field to given value. + +### HasPlatform + +`func (o *V0ReleaseCreateGooglePlayRespModel) HasPlatform() bool` + +HasPlatform returns a boolean if a field has been set. + +### GetStatus + +`func (o *V0ReleaseCreateGooglePlayRespModel) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0ReleaseCreateGooglePlayRespModel) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0ReleaseCreateGooglePlayRespModel) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0ReleaseCreateGooglePlayRespModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0SSHKeyRespModel.md b/go2/docs/V0SSHKeyRespModel.md new file mode 100644 index 0000000..4792883 --- /dev/null +++ b/go2/docs/V0SSHKeyRespModel.md @@ -0,0 +1,56 @@ +# V0SSHKeyRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewV0SSHKeyRespModel + +`func NewV0SSHKeyRespModel() *V0SSHKeyRespModel` + +NewV0SSHKeyRespModel instantiates a new V0SSHKeyRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0SSHKeyRespModelWithDefaults + +`func NewV0SSHKeyRespModelWithDefaults() *V0SSHKeyRespModel` + +NewV0SSHKeyRespModelWithDefaults instantiates a new V0SSHKeyRespModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *V0SSHKeyRespModel) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0SSHKeyRespModel) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0SSHKeyRespModel) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0SSHKeyRespModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0SSHKeyUploadParams.md b/go2/docs/V0SSHKeyUploadParams.md new file mode 100644 index 0000000..fd0b0c8 --- /dev/null +++ b/go2/docs/V0SSHKeyUploadParams.md @@ -0,0 +1,98 @@ +# V0SSHKeyUploadParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AuthSshPrivateKey** | **string** | The private part of the SSH key you would like to use | +**AuthSshPublicKey** | **string** | The public part of the SSH key you would like to use | +**IsRegisterKeyIntoProviderService** | Pointer to **bool** | If it's set to true, the provided SSH key will be registered at the provider of the application | [optional] + +## Methods + +### NewV0SSHKeyUploadParams + +`func NewV0SSHKeyUploadParams(authSshPrivateKey string, authSshPublicKey string, ) *V0SSHKeyUploadParams` + +NewV0SSHKeyUploadParams instantiates a new V0SSHKeyUploadParams object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0SSHKeyUploadParamsWithDefaults + +`func NewV0SSHKeyUploadParamsWithDefaults() *V0SSHKeyUploadParams` + +NewV0SSHKeyUploadParamsWithDefaults instantiates a new V0SSHKeyUploadParams object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAuthSshPrivateKey + +`func (o *V0SSHKeyUploadParams) GetAuthSshPrivateKey() string` + +GetAuthSshPrivateKey returns the AuthSshPrivateKey field if non-nil, zero value otherwise. + +### GetAuthSshPrivateKeyOk + +`func (o *V0SSHKeyUploadParams) GetAuthSshPrivateKeyOk() (*string, bool)` + +GetAuthSshPrivateKeyOk returns a tuple with the AuthSshPrivateKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthSshPrivateKey + +`func (o *V0SSHKeyUploadParams) SetAuthSshPrivateKey(v string)` + +SetAuthSshPrivateKey sets AuthSshPrivateKey field to given value. + + +### GetAuthSshPublicKey + +`func (o *V0SSHKeyUploadParams) GetAuthSshPublicKey() string` + +GetAuthSshPublicKey returns the AuthSshPublicKey field if non-nil, zero value otherwise. + +### GetAuthSshPublicKeyOk + +`func (o *V0SSHKeyUploadParams) GetAuthSshPublicKeyOk() (*string, bool)` + +GetAuthSshPublicKeyOk returns a tuple with the AuthSshPublicKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthSshPublicKey + +`func (o *V0SSHKeyUploadParams) SetAuthSshPublicKey(v string)` + +SetAuthSshPublicKey sets AuthSshPublicKey field to given value. + + +### GetIsRegisterKeyIntoProviderService + +`func (o *V0SSHKeyUploadParams) GetIsRegisterKeyIntoProviderService() bool` + +GetIsRegisterKeyIntoProviderService returns the IsRegisterKeyIntoProviderService field if non-nil, zero value otherwise. + +### GetIsRegisterKeyIntoProviderServiceOk + +`func (o *V0SSHKeyUploadParams) GetIsRegisterKeyIntoProviderServiceOk() (*bool, bool)` + +GetIsRegisterKeyIntoProviderServiceOk returns a tuple with the IsRegisterKeyIntoProviderService field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsRegisterKeyIntoProviderService + +`func (o *V0SSHKeyUploadParams) SetIsRegisterKeyIntoProviderService(v bool)` + +SetIsRegisterKeyIntoProviderService sets IsRegisterKeyIntoProviderService field to given value. + +### HasIsRegisterKeyIntoProviderService + +`func (o *V0SSHKeyUploadParams) HasIsRegisterKeyIntoProviderService() bool` + +HasIsRegisterKeyIntoProviderService returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0TestDeviceListResponseModel.md b/go2/docs/V0TestDeviceListResponseModel.md new file mode 100644 index 0000000..72aed2f --- /dev/null +++ b/go2/docs/V0TestDeviceListResponseModel.md @@ -0,0 +1,56 @@ +# V0TestDeviceListResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**[]V0TestDeviceResponseItemModel**](V0TestDeviceResponseItemModel.md) | | [optional] + +## Methods + +### NewV0TestDeviceListResponseModel + +`func NewV0TestDeviceListResponseModel() *V0TestDeviceListResponseModel` + +NewV0TestDeviceListResponseModel instantiates a new V0TestDeviceListResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0TestDeviceListResponseModelWithDefaults + +`func NewV0TestDeviceListResponseModelWithDefaults() *V0TestDeviceListResponseModel` + +NewV0TestDeviceListResponseModelWithDefaults instantiates a new V0TestDeviceListResponseModel object +This 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 *V0TestDeviceListResponseModel) GetData() []V0TestDeviceResponseItemModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0TestDeviceListResponseModel) GetDataOk() (*[]V0TestDeviceResponseItemModel, 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 *V0TestDeviceListResponseModel) SetData(v []V0TestDeviceResponseItemModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0TestDeviceListResponseModel) 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/go2/docs/V0TestDeviceResponseItemModel.md b/go2/docs/V0TestDeviceResponseItemModel.md new file mode 100644 index 0000000..cde9321 --- /dev/null +++ b/go2/docs/V0TestDeviceResponseItemModel.md @@ -0,0 +1,108 @@ +# V0TestDeviceResponseItemModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**DeviceId** | Pointer to **string** | | [optional] +**DeviceType** | Pointer to **string** | | [optional] +**Owner** | Pointer to **string** | | [optional] + +## Methods + +### NewV0TestDeviceResponseItemModel + +`func NewV0TestDeviceResponseItemModel() *V0TestDeviceResponseItemModel` + +NewV0TestDeviceResponseItemModel instantiates a new V0TestDeviceResponseItemModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0TestDeviceResponseItemModelWithDefaults + +`func NewV0TestDeviceResponseItemModelWithDefaults() *V0TestDeviceResponseItemModel` + +NewV0TestDeviceResponseItemModelWithDefaults instantiates a new V0TestDeviceResponseItemModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDeviceId + +`func (o *V0TestDeviceResponseItemModel) GetDeviceId() string` + +GetDeviceId returns the DeviceId field if non-nil, zero value otherwise. + +### GetDeviceIdOk + +`func (o *V0TestDeviceResponseItemModel) GetDeviceIdOk() (*string, bool)` + +GetDeviceIdOk returns a tuple with the DeviceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceId + +`func (o *V0TestDeviceResponseItemModel) SetDeviceId(v string)` + +SetDeviceId sets DeviceId field to given value. + +### HasDeviceId + +`func (o *V0TestDeviceResponseItemModel) HasDeviceId() bool` + +HasDeviceId returns a boolean if a field has been set. + +### GetDeviceType + +`func (o *V0TestDeviceResponseItemModel) GetDeviceType() string` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *V0TestDeviceResponseItemModel) GetDeviceTypeOk() (*string, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *V0TestDeviceResponseItemModel) SetDeviceType(v string)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *V0TestDeviceResponseItemModel) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### GetOwner + +`func (o *V0TestDeviceResponseItemModel) GetOwner() string` + +GetOwner returns the Owner field if non-nil, zero value otherwise. + +### GetOwnerOk + +`func (o *V0TestDeviceResponseItemModel) GetOwnerOk() (*string, bool)` + +GetOwnerOk returns a tuple with the Owner field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOwner + +`func (o *V0TestDeviceResponseItemModel) SetOwner(v string)` + +SetOwner sets Owner field to given value. + +### HasOwner + +`func (o *V0TestDeviceResponseItemModel) HasOwner() bool` + +HasOwner returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0UserPlanDataModel.md b/go2/docs/V0UserPlanDataModel.md new file mode 100644 index 0000000..f4b8f1e --- /dev/null +++ b/go2/docs/V0UserPlanDataModel.md @@ -0,0 +1,108 @@ +# V0UserPlanDataModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CurrentPlan** | Pointer to [**V0PlanDataModel**](V0PlanDataModel.md) | | [optional] +**PendingPlan** | Pointer to [**V0PlanDataModel**](V0PlanDataModel.md) | | [optional] +**TrialExpiresAt** | Pointer to **string** | | [optional] + +## Methods + +### NewV0UserPlanDataModel + +`func NewV0UserPlanDataModel() *V0UserPlanDataModel` + +NewV0UserPlanDataModel instantiates a new V0UserPlanDataModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0UserPlanDataModelWithDefaults + +`func NewV0UserPlanDataModelWithDefaults() *V0UserPlanDataModel` + +NewV0UserPlanDataModelWithDefaults instantiates a new V0UserPlanDataModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCurrentPlan + +`func (o *V0UserPlanDataModel) GetCurrentPlan() V0PlanDataModel` + +GetCurrentPlan returns the CurrentPlan field if non-nil, zero value otherwise. + +### GetCurrentPlanOk + +`func (o *V0UserPlanDataModel) GetCurrentPlanOk() (*V0PlanDataModel, bool)` + +GetCurrentPlanOk returns a tuple with the CurrentPlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentPlan + +`func (o *V0UserPlanDataModel) SetCurrentPlan(v V0PlanDataModel)` + +SetCurrentPlan sets CurrentPlan field to given value. + +### HasCurrentPlan + +`func (o *V0UserPlanDataModel) HasCurrentPlan() bool` + +HasCurrentPlan returns a boolean if a field has been set. + +### GetPendingPlan + +`func (o *V0UserPlanDataModel) GetPendingPlan() V0PlanDataModel` + +GetPendingPlan returns the PendingPlan field if non-nil, zero value otherwise. + +### GetPendingPlanOk + +`func (o *V0UserPlanDataModel) GetPendingPlanOk() (*V0PlanDataModel, bool)` + +GetPendingPlanOk returns a tuple with the PendingPlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPendingPlan + +`func (o *V0UserPlanDataModel) SetPendingPlan(v V0PlanDataModel)` + +SetPendingPlan sets PendingPlan field to given value. + +### HasPendingPlan + +`func (o *V0UserPlanDataModel) HasPendingPlan() bool` + +HasPendingPlan returns a boolean if a field has been set. + +### GetTrialExpiresAt + +`func (o *V0UserPlanDataModel) GetTrialExpiresAt() string` + +GetTrialExpiresAt returns the TrialExpiresAt field if non-nil, zero value otherwise. + +### GetTrialExpiresAtOk + +`func (o *V0UserPlanDataModel) GetTrialExpiresAtOk() (*string, bool)` + +GetTrialExpiresAtOk returns a tuple with the TrialExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTrialExpiresAt + +`func (o *V0UserPlanDataModel) SetTrialExpiresAt(v string)` + +SetTrialExpiresAt sets TrialExpiresAt field to given value. + +### HasTrialExpiresAt + +`func (o *V0UserPlanDataModel) HasTrialExpiresAt() bool` + +HasTrialExpiresAt returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/V0UserPlanRespModel.md b/go2/docs/V0UserPlanRespModel.md new file mode 100644 index 0000000..c47b769 --- /dev/null +++ b/go2/docs/V0UserPlanRespModel.md @@ -0,0 +1,56 @@ +# V0UserPlanRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0UserPlanDataModel**](V0UserPlanDataModel.md) | | [optional] + +## Methods + +### NewV0UserPlanRespModel + +`func NewV0UserPlanRespModel() *V0UserPlanRespModel` + +NewV0UserPlanRespModel instantiates a new V0UserPlanRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0UserPlanRespModelWithDefaults + +`func NewV0UserPlanRespModelWithDefaults() *V0UserPlanRespModel` + +NewV0UserPlanRespModelWithDefaults instantiates a new V0UserPlanRespModel object +This 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 *V0UserPlanRespModel) GetData() V0UserPlanDataModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0UserPlanRespModel) GetDataOk() (*V0UserPlanDataModel, 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 *V0UserPlanRespModel) SetData(v V0UserPlanDataModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0UserPlanRespModel) 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/go2/docs/V0UserProfileDataModel.md b/go2/docs/V0UserProfileDataModel.md new file mode 100644 index 0000000..38dc165 --- /dev/null +++ b/go2/docs/V0UserProfileDataModel.md @@ -0,0 +1,264 @@ +# V0UserProfileDataModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AvatarUrl** | Pointer to **string** | | [optional] +**CreatedAt** | Pointer to **string** | | [optional] +**DataId** | Pointer to **int32** | | [optional] +**Email** | Pointer to **string** | | [optional] +**HasUsedOrganizationTrial** | Pointer to **bool** | | [optional] +**PaymentProcessor** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**UnconfirmedEmail** | Pointer to **string** | | [optional] +**Username** | Pointer to **string** | | [optional] + +## Methods + +### NewV0UserProfileDataModel + +`func NewV0UserProfileDataModel() *V0UserProfileDataModel` + +NewV0UserProfileDataModel instantiates a new V0UserProfileDataModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0UserProfileDataModelWithDefaults + +`func NewV0UserProfileDataModelWithDefaults() *V0UserProfileDataModel` + +NewV0UserProfileDataModelWithDefaults instantiates a new V0UserProfileDataModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvatarUrl + +`func (o *V0UserProfileDataModel) GetAvatarUrl() string` + +GetAvatarUrl returns the AvatarUrl field if non-nil, zero value otherwise. + +### GetAvatarUrlOk + +`func (o *V0UserProfileDataModel) GetAvatarUrlOk() (*string, bool)` + +GetAvatarUrlOk returns a tuple with the AvatarUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvatarUrl + +`func (o *V0UserProfileDataModel) SetAvatarUrl(v string)` + +SetAvatarUrl sets AvatarUrl field to given value. + +### HasAvatarUrl + +`func (o *V0UserProfileDataModel) HasAvatarUrl() bool` + +HasAvatarUrl returns a boolean if a field has been set. + +### GetCreatedAt + +`func (o *V0UserProfileDataModel) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *V0UserProfileDataModel) GetCreatedAtOk() (*string, 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 *V0UserProfileDataModel) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *V0UserProfileDataModel) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetDataId + +`func (o *V0UserProfileDataModel) GetDataId() int32` + +GetDataId returns the DataId field if non-nil, zero value otherwise. + +### GetDataIdOk + +`func (o *V0UserProfileDataModel) GetDataIdOk() (*int32, bool)` + +GetDataIdOk returns a tuple with the DataId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataId + +`func (o *V0UserProfileDataModel) SetDataId(v int32)` + +SetDataId sets DataId field to given value. + +### HasDataId + +`func (o *V0UserProfileDataModel) HasDataId() bool` + +HasDataId returns a boolean if a field has been set. + +### GetEmail + +`func (o *V0UserProfileDataModel) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *V0UserProfileDataModel) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *V0UserProfileDataModel) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *V0UserProfileDataModel) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetHasUsedOrganizationTrial + +`func (o *V0UserProfileDataModel) GetHasUsedOrganizationTrial() bool` + +GetHasUsedOrganizationTrial returns the HasUsedOrganizationTrial field if non-nil, zero value otherwise. + +### GetHasUsedOrganizationTrialOk + +`func (o *V0UserProfileDataModel) GetHasUsedOrganizationTrialOk() (*bool, bool)` + +GetHasUsedOrganizationTrialOk returns a tuple with the HasUsedOrganizationTrial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasUsedOrganizationTrial + +`func (o *V0UserProfileDataModel) SetHasUsedOrganizationTrial(v bool)` + +SetHasUsedOrganizationTrial sets HasUsedOrganizationTrial field to given value. + +### HasHasUsedOrganizationTrial + +`func (o *V0UserProfileDataModel) HasHasUsedOrganizationTrial() bool` + +HasHasUsedOrganizationTrial returns a boolean if a field has been set. + +### GetPaymentProcessor + +`func (o *V0UserProfileDataModel) GetPaymentProcessor() string` + +GetPaymentProcessor returns the PaymentProcessor field if non-nil, zero value otherwise. + +### GetPaymentProcessorOk + +`func (o *V0UserProfileDataModel) GetPaymentProcessorOk() (*string, bool)` + +GetPaymentProcessorOk returns a tuple with the PaymentProcessor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPaymentProcessor + +`func (o *V0UserProfileDataModel) SetPaymentProcessor(v string)` + +SetPaymentProcessor sets PaymentProcessor field to given value. + +### HasPaymentProcessor + +`func (o *V0UserProfileDataModel) HasPaymentProcessor() bool` + +HasPaymentProcessor returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0UserProfileDataModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0UserProfileDataModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0UserProfileDataModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0UserProfileDataModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetUnconfirmedEmail + +`func (o *V0UserProfileDataModel) GetUnconfirmedEmail() string` + +GetUnconfirmedEmail returns the UnconfirmedEmail field if non-nil, zero value otherwise. + +### GetUnconfirmedEmailOk + +`func (o *V0UserProfileDataModel) GetUnconfirmedEmailOk() (*string, bool)` + +GetUnconfirmedEmailOk returns a tuple with the UnconfirmedEmail field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnconfirmedEmail + +`func (o *V0UserProfileDataModel) SetUnconfirmedEmail(v string)` + +SetUnconfirmedEmail sets UnconfirmedEmail field to given value. + +### HasUnconfirmedEmail + +`func (o *V0UserProfileDataModel) HasUnconfirmedEmail() bool` + +HasUnconfirmedEmail returns a boolean if a field has been set. + +### GetUsername + +`func (o *V0UserProfileDataModel) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *V0UserProfileDataModel) 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 *V0UserProfileDataModel) SetUsername(v string)` + +SetUsername sets Username field to given value. + +### HasUsername + +`func (o *V0UserProfileDataModel) 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/go2/docs/V0UserProfileRespModel.md b/go2/docs/V0UserProfileRespModel.md new file mode 100644 index 0000000..e987ae3 --- /dev/null +++ b/go2/docs/V0UserProfileRespModel.md @@ -0,0 +1,56 @@ +# V0UserProfileRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0UserProfileDataModel**](V0UserProfileDataModel.md) | | [optional] + +## Methods + +### NewV0UserProfileRespModel + +`func NewV0UserProfileRespModel() *V0UserProfileRespModel` + +NewV0UserProfileRespModel instantiates a new V0UserProfileRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0UserProfileRespModelWithDefaults + +`func NewV0UserProfileRespModelWithDefaults() *V0UserProfileRespModel` + +NewV0UserProfileRespModelWithDefaults instantiates a new V0UserProfileRespModel object +This 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 *V0UserProfileRespModel) GetData() V0UserProfileDataModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0UserProfileRespModel) GetDataOk() (*V0UserProfileDataModel, 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 *V0UserProfileRespModel) SetData(v V0UserProfileDataModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0UserProfileRespModel) 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/go2/docs/V0WebhookDeliveryItemResponseModel.md b/go2/docs/V0WebhookDeliveryItemResponseModel.md new file mode 100644 index 0000000..b5e627f --- /dev/null +++ b/go2/docs/V0WebhookDeliveryItemResponseModel.md @@ -0,0 +1,290 @@ +# V0WebhookDeliveryItemResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **string** | | [optional] +**RequestHeaders** | Pointer to **string** | | [optional] +**RequestPayload** | Pointer to **string** | | [optional] +**RequestUrl** | Pointer to **string** | | [optional] +**ResponseBody** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**ResponseHeaders** | Pointer to [**NullsString**](NullsString.md) | | [optional] +**ResponseHttpStatus** | Pointer to [**NullsInt64**](NullsInt64.md) | | [optional] +**ResponseSeconds** | Pointer to [**NullsInt64**](NullsInt64.md) | | [optional] +**Slug** | Pointer to **string** | | [optional] +**UpdatedAt** | Pointer to **string** | | [optional] + +## Methods + +### NewV0WebhookDeliveryItemResponseModel + +`func NewV0WebhookDeliveryItemResponseModel() *V0WebhookDeliveryItemResponseModel` + +NewV0WebhookDeliveryItemResponseModel instantiates a new V0WebhookDeliveryItemResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0WebhookDeliveryItemResponseModelWithDefaults + +`func NewV0WebhookDeliveryItemResponseModelWithDefaults() *V0WebhookDeliveryItemResponseModel` + +NewV0WebhookDeliveryItemResponseModelWithDefaults instantiates a new V0WebhookDeliveryItemResponseModel object +This 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 *V0WebhookDeliveryItemResponseModel) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *V0WebhookDeliveryItemResponseModel) GetCreatedAtOk() (*string, 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 *V0WebhookDeliveryItemResponseModel) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *V0WebhookDeliveryItemResponseModel) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetRequestHeaders + +`func (o *V0WebhookDeliveryItemResponseModel) GetRequestHeaders() string` + +GetRequestHeaders returns the RequestHeaders field if non-nil, zero value otherwise. + +### GetRequestHeadersOk + +`func (o *V0WebhookDeliveryItemResponseModel) GetRequestHeadersOk() (*string, bool)` + +GetRequestHeadersOk returns a tuple with the RequestHeaders field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestHeaders + +`func (o *V0WebhookDeliveryItemResponseModel) SetRequestHeaders(v string)` + +SetRequestHeaders sets RequestHeaders field to given value. + +### HasRequestHeaders + +`func (o *V0WebhookDeliveryItemResponseModel) HasRequestHeaders() bool` + +HasRequestHeaders returns a boolean if a field has been set. + +### GetRequestPayload + +`func (o *V0WebhookDeliveryItemResponseModel) GetRequestPayload() string` + +GetRequestPayload returns the RequestPayload field if non-nil, zero value otherwise. + +### GetRequestPayloadOk + +`func (o *V0WebhookDeliveryItemResponseModel) GetRequestPayloadOk() (*string, bool)` + +GetRequestPayloadOk returns a tuple with the RequestPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestPayload + +`func (o *V0WebhookDeliveryItemResponseModel) SetRequestPayload(v string)` + +SetRequestPayload sets RequestPayload field to given value. + +### HasRequestPayload + +`func (o *V0WebhookDeliveryItemResponseModel) HasRequestPayload() bool` + +HasRequestPayload returns a boolean if a field has been set. + +### GetRequestUrl + +`func (o *V0WebhookDeliveryItemResponseModel) GetRequestUrl() string` + +GetRequestUrl returns the RequestUrl field if non-nil, zero value otherwise. + +### GetRequestUrlOk + +`func (o *V0WebhookDeliveryItemResponseModel) GetRequestUrlOk() (*string, bool)` + +GetRequestUrlOk returns a tuple with the RequestUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRequestUrl + +`func (o *V0WebhookDeliveryItemResponseModel) SetRequestUrl(v string)` + +SetRequestUrl sets RequestUrl field to given value. + +### HasRequestUrl + +`func (o *V0WebhookDeliveryItemResponseModel) HasRequestUrl() bool` + +HasRequestUrl returns a boolean if a field has been set. + +### GetResponseBody + +`func (o *V0WebhookDeliveryItemResponseModel) GetResponseBody() NullsString` + +GetResponseBody returns the ResponseBody field if non-nil, zero value otherwise. + +### GetResponseBodyOk + +`func (o *V0WebhookDeliveryItemResponseModel) GetResponseBodyOk() (*NullsString, bool)` + +GetResponseBodyOk returns a tuple with the ResponseBody field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponseBody + +`func (o *V0WebhookDeliveryItemResponseModel) SetResponseBody(v NullsString)` + +SetResponseBody sets ResponseBody field to given value. + +### HasResponseBody + +`func (o *V0WebhookDeliveryItemResponseModel) HasResponseBody() bool` + +HasResponseBody returns a boolean if a field has been set. + +### GetResponseHeaders + +`func (o *V0WebhookDeliveryItemResponseModel) GetResponseHeaders() NullsString` + +GetResponseHeaders returns the ResponseHeaders field if non-nil, zero value otherwise. + +### GetResponseHeadersOk + +`func (o *V0WebhookDeliveryItemResponseModel) GetResponseHeadersOk() (*NullsString, bool)` + +GetResponseHeadersOk returns a tuple with the ResponseHeaders field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponseHeaders + +`func (o *V0WebhookDeliveryItemResponseModel) SetResponseHeaders(v NullsString)` + +SetResponseHeaders sets ResponseHeaders field to given value. + +### HasResponseHeaders + +`func (o *V0WebhookDeliveryItemResponseModel) HasResponseHeaders() bool` + +HasResponseHeaders returns a boolean if a field has been set. + +### GetResponseHttpStatus + +`func (o *V0WebhookDeliveryItemResponseModel) GetResponseHttpStatus() NullsInt64` + +GetResponseHttpStatus returns the ResponseHttpStatus field if non-nil, zero value otherwise. + +### GetResponseHttpStatusOk + +`func (o *V0WebhookDeliveryItemResponseModel) GetResponseHttpStatusOk() (*NullsInt64, bool)` + +GetResponseHttpStatusOk returns a tuple with the ResponseHttpStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponseHttpStatus + +`func (o *V0WebhookDeliveryItemResponseModel) SetResponseHttpStatus(v NullsInt64)` + +SetResponseHttpStatus sets ResponseHttpStatus field to given value. + +### HasResponseHttpStatus + +`func (o *V0WebhookDeliveryItemResponseModel) HasResponseHttpStatus() bool` + +HasResponseHttpStatus returns a boolean if a field has been set. + +### GetResponseSeconds + +`func (o *V0WebhookDeliveryItemResponseModel) GetResponseSeconds() NullsInt64` + +GetResponseSeconds returns the ResponseSeconds field if non-nil, zero value otherwise. + +### GetResponseSecondsOk + +`func (o *V0WebhookDeliveryItemResponseModel) GetResponseSecondsOk() (*NullsInt64, bool)` + +GetResponseSecondsOk returns a tuple with the ResponseSeconds field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResponseSeconds + +`func (o *V0WebhookDeliveryItemResponseModel) SetResponseSeconds(v NullsInt64)` + +SetResponseSeconds sets ResponseSeconds field to given value. + +### HasResponseSeconds + +`func (o *V0WebhookDeliveryItemResponseModel) HasResponseSeconds() bool` + +HasResponseSeconds returns a boolean if a field has been set. + +### GetSlug + +`func (o *V0WebhookDeliveryItemResponseModel) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *V0WebhookDeliveryItemResponseModel) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *V0WebhookDeliveryItemResponseModel) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *V0WebhookDeliveryItemResponseModel) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *V0WebhookDeliveryItemResponseModel) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *V0WebhookDeliveryItemResponseModel) GetUpdatedAtOk() (*string, 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 *V0WebhookDeliveryItemResponseModel) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *V0WebhookDeliveryItemResponseModel) 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/go2/docs/V0WebhookDeliveryItemShowResponseModel.md b/go2/docs/V0WebhookDeliveryItemShowResponseModel.md new file mode 100644 index 0000000..dd0e188 --- /dev/null +++ b/go2/docs/V0WebhookDeliveryItemShowResponseModel.md @@ -0,0 +1,56 @@ +# V0WebhookDeliveryItemShowResponseModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to [**V0WebhookDeliveryItemResponseModel**](V0WebhookDeliveryItemResponseModel.md) | | [optional] + +## Methods + +### NewV0WebhookDeliveryItemShowResponseModel + +`func NewV0WebhookDeliveryItemShowResponseModel() *V0WebhookDeliveryItemShowResponseModel` + +NewV0WebhookDeliveryItemShowResponseModel instantiates a new V0WebhookDeliveryItemShowResponseModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0WebhookDeliveryItemShowResponseModelWithDefaults + +`func NewV0WebhookDeliveryItemShowResponseModelWithDefaults() *V0WebhookDeliveryItemShowResponseModel` + +NewV0WebhookDeliveryItemShowResponseModelWithDefaults instantiates a new V0WebhookDeliveryItemShowResponseModel object +This 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 *V0WebhookDeliveryItemShowResponseModel) GetData() V0WebhookDeliveryItemResponseModel` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *V0WebhookDeliveryItemShowResponseModel) GetDataOk() (*V0WebhookDeliveryItemResponseModel, 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 *V0WebhookDeliveryItemShowResponseModel) SetData(v V0WebhookDeliveryItemResponseModel)` + +SetData sets Data field to given value. + +### HasData + +`func (o *V0WebhookDeliveryItemShowResponseModel) 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/go2/docs/V0WebhookRespModel.md b/go2/docs/V0WebhookRespModel.md new file mode 100644 index 0000000..d1272b3 --- /dev/null +++ b/go2/docs/V0WebhookRespModel.md @@ -0,0 +1,56 @@ +# V0WebhookRespModel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | Pointer to **string** | | [optional] + +## Methods + +### NewV0WebhookRespModel + +`func NewV0WebhookRespModel() *V0WebhookRespModel` + +NewV0WebhookRespModel instantiates a new V0WebhookRespModel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV0WebhookRespModelWithDefaults + +`func NewV0WebhookRespModelWithDefaults() *V0WebhookRespModel` + +NewV0WebhookRespModelWithDefaults instantiates a new V0WebhookRespModel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *V0WebhookRespModel) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *V0WebhookRespModel) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *V0WebhookRespModel) SetStatus(v string)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *V0WebhookRespModel) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/docs/WebhookDeliveryItemAPI.md b/go2/docs/WebhookDeliveryItemAPI.md new file mode 100644 index 0000000..57cd1c9 --- /dev/null +++ b/go2/docs/WebhookDeliveryItemAPI.md @@ -0,0 +1,240 @@ +# \WebhookDeliveryItemAPI + +All URIs are relative to *https://api.bitrise.io/v0.1* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**WebhookDeliveryItemList**](WebhookDeliveryItemAPI.md#WebhookDeliveryItemList) | **Get** /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items | List the webhook delivery items of an app +[**WebhookDeliveryItemRedeliver**](WebhookDeliveryItemAPI.md#WebhookDeliveryItemRedeliver) | **Post** /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug}/redeliver | Re-deliver the webhook delivery items of an app +[**WebhookDeliveryItemShow**](WebhookDeliveryItemAPI.md#WebhookDeliveryItemShow) | **Get** /apps/{app-slug}/outgoing-webhooks/{app-webhook-slug}/delivery-items/{webhook-delivery-item-slug} | Get a specific delivery item of a webhook + + + +## WebhookDeliveryItemList + +> V0WebhookDeliveryItemShowResponseModel WebhookDeliveryItemList(ctx, appSlug, appWebhookSlug).Next(next).Limit(limit).Execute() + +List the webhook delivery items of an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + appWebhookSlug := "appWebhookSlug_example" // string | App webhook slug + next := "next_example" // string | Slug of the first delivery item in the response (optional) + limit := int32(56) // int32 | Max number of elements per page (default: 50) (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WebhookDeliveryItemAPI.WebhookDeliveryItemList(context.Background(), appSlug, appWebhookSlug).Next(next).Limit(limit).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WebhookDeliveryItemAPI.WebhookDeliveryItemList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WebhookDeliveryItemList`: V0WebhookDeliveryItemShowResponseModel + fmt.Fprintf(os.Stdout, "Response from `WebhookDeliveryItemAPI.WebhookDeliveryItemList`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**appWebhookSlug** | **string** | App webhook slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWebhookDeliveryItemListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **next** | **string** | Slug of the first delivery item in the response | + **limit** | **int32** | Max number of elements per page (default: 50) | + +### Return type + +[**V0WebhookDeliveryItemShowResponseModel**](V0WebhookDeliveryItemShowResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## WebhookDeliveryItemRedeliver + +> ServiceStandardErrorRespModel WebhookDeliveryItemRedeliver(ctx, appSlug, appWebhookSlug, webhookDeliveryItemSlug).Execute() + +Re-deliver the webhook delivery items of an app + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + appWebhookSlug := "appWebhookSlug_example" // string | App webhook slug + webhookDeliveryItemSlug := "webhookDeliveryItemSlug_example" // string | Webhook delivery item slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WebhookDeliveryItemAPI.WebhookDeliveryItemRedeliver(context.Background(), appSlug, appWebhookSlug, webhookDeliveryItemSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WebhookDeliveryItemAPI.WebhookDeliveryItemRedeliver``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WebhookDeliveryItemRedeliver`: ServiceStandardErrorRespModel + fmt.Fprintf(os.Stdout, "Response from `WebhookDeliveryItemAPI.WebhookDeliveryItemRedeliver`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**appWebhookSlug** | **string** | App webhook slug | +**webhookDeliveryItemSlug** | **string** | Webhook delivery item slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWebhookDeliveryItemRedeliverRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**ServiceStandardErrorRespModel**](ServiceStandardErrorRespModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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) + + +## WebhookDeliveryItemShow + +> V0WebhookDeliveryItemResponseModel WebhookDeliveryItemShow(ctx, appSlug, appWebhookSlug, webhookDeliveryItemSlug).Execute() + +Get a specific delivery item of a webhook + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/staffbase/bitrise-api" +) + +func main() { + appSlug := "appSlug_example" // string | App slug + appWebhookSlug := "appWebhookSlug_example" // string | App webhook slug + webhookDeliveryItemSlug := "webhookDeliveryItemSlug_example" // string | Webhook delivery item slug + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.WebhookDeliveryItemAPI.WebhookDeliveryItemShow(context.Background(), appSlug, appWebhookSlug, webhookDeliveryItemSlug).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `WebhookDeliveryItemAPI.WebhookDeliveryItemShow``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `WebhookDeliveryItemShow`: V0WebhookDeliveryItemResponseModel + fmt.Fprintf(os.Stdout, "Response from `WebhookDeliveryItemAPI.WebhookDeliveryItemShow`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**appSlug** | **string** | App slug | +**appWebhookSlug** | **string** | App webhook slug | +**webhookDeliveryItemSlug** | **string** | Webhook delivery item slug | + +### Other Parameters + +Other parameters are passed through a pointer to a apiWebhookDeliveryItemShowRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + + +### Return type + +[**V0WebhookDeliveryItemResponseModel**](V0WebhookDeliveryItemResponseModel.md) + +### Authorization + +[PersonalAccessToken](../README.md#PersonalAccessToken) + +### 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/go2/docs/WebsiteBitriseYMLLocation.md b/go2/docs/WebsiteBitriseYMLLocation.md new file mode 100644 index 0000000..01bbb81 --- /dev/null +++ b/go2/docs/WebsiteBitriseYMLLocation.md @@ -0,0 +1,13 @@ +# WebsiteBitriseYMLLocation + +## Enum + + +* `LocationBitriseIo` (value: `"bitrise.io"`) + +* `LocationRepository` (value: `"repository"`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/go2/git_push.sh b/go2/git_push.sh new file mode 100644 index 0000000..5ccad56 --- /dev/null +++ b/go2/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="staffbase" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="bitrise-api" + 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/go2/go.mod b/go2/go.mod new file mode 100644 index 0000000..2ceda7f --- /dev/null +++ b/go2/go.mod @@ -0,0 +1,6 @@ +module github.com/staffbase/bitrise-api + +go 1.18 + +require ( +) diff --git a/go2/go.sum b/go2/go.sum new file mode 100644 index 0000000..c966c8d --- /dev/null +++ b/go2/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/go2/model_addons_addon.go b/go2/model_addons_addon.go new file mode 100644 index 0000000..e797764 --- /dev/null +++ b/go2/model_addons_addon.go @@ -0,0 +1,703 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AddonsAddon type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddonsAddon{} + +// AddonsAddon struct for AddonsAddon +type AddonsAddon struct { + BannerImage *string `json:"banner_image,omitempty"` + CardHeaderColors []string `json:"card_header_colors,omitempty"` + Categories []string `json:"categories,omitempty"` + Description *string `json:"description,omitempty"` + DeveloperLinks []AddonsDeveloperLink `json:"developer_links,omitempty"` + DocumentationUrl *string `json:"documentation_url,omitempty"` + HasUi *bool `json:"has_ui,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + IsBeta *bool `json:"is_beta,omitempty"` + Plans []AddonsPlan `json:"plans,omitempty"` + Platforms []string `json:"platforms,omitempty"` + PreviewImages []string `json:"preview_images,omitempty"` + SetupGuide *AddonsSetupGuide `json:"setup_guide,omitempty"` + Subtitle *string `json:"subtitle,omitempty"` + Summary *string `json:"summary,omitempty"` + Title *string `json:"title,omitempty"` +} + +// NewAddonsAddon instantiates a new AddonsAddon object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddonsAddon() *AddonsAddon { + this := AddonsAddon{} + return &this +} + +// NewAddonsAddonWithDefaults instantiates a new AddonsAddon object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddonsAddonWithDefaults() *AddonsAddon { + this := AddonsAddon{} + return &this +} + +// GetBannerImage returns the BannerImage field value if set, zero value otherwise. +func (o *AddonsAddon) GetBannerImage() string { + if o == nil || IsNil(o.BannerImage) { + var ret string + return ret + } + return *o.BannerImage +} + +// GetBannerImageOk returns a tuple with the BannerImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetBannerImageOk() (*string, bool) { + if o == nil || IsNil(o.BannerImage) { + return nil, false + } + return o.BannerImage, true +} + +// HasBannerImage returns a boolean if a field has been set. +func (o *AddonsAddon) HasBannerImage() bool { + if o != nil && !IsNil(o.BannerImage) { + return true + } + + return false +} + +// SetBannerImage gets a reference to the given string and assigns it to the BannerImage field. +func (o *AddonsAddon) SetBannerImage(v string) { + o.BannerImage = &v +} + +// GetCardHeaderColors returns the CardHeaderColors field value if set, zero value otherwise. +func (o *AddonsAddon) GetCardHeaderColors() []string { + if o == nil || IsNil(o.CardHeaderColors) { + var ret []string + return ret + } + return o.CardHeaderColors +} + +// GetCardHeaderColorsOk returns a tuple with the CardHeaderColors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetCardHeaderColorsOk() ([]string, bool) { + if o == nil || IsNil(o.CardHeaderColors) { + return nil, false + } + return o.CardHeaderColors, true +} + +// HasCardHeaderColors returns a boolean if a field has been set. +func (o *AddonsAddon) HasCardHeaderColors() bool { + if o != nil && !IsNil(o.CardHeaderColors) { + return true + } + + return false +} + +// SetCardHeaderColors gets a reference to the given []string and assigns it to the CardHeaderColors field. +func (o *AddonsAddon) SetCardHeaderColors(v []string) { + o.CardHeaderColors = v +} + +// GetCategories returns the Categories field value if set, zero value otherwise. +func (o *AddonsAddon) GetCategories() []string { + if o == nil || IsNil(o.Categories) { + var ret []string + return ret + } + return o.Categories +} + +// GetCategoriesOk returns a tuple with the Categories field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetCategoriesOk() ([]string, bool) { + if o == nil || IsNil(o.Categories) { + return nil, false + } + return o.Categories, true +} + +// HasCategories returns a boolean if a field has been set. +func (o *AddonsAddon) HasCategories() bool { + if o != nil && !IsNil(o.Categories) { + return true + } + + return false +} + +// SetCategories gets a reference to the given []string and assigns it to the Categories field. +func (o *AddonsAddon) SetCategories(v []string) { + o.Categories = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *AddonsAddon) 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 *AddonsAddon) 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 *AddonsAddon) 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 *AddonsAddon) SetDescription(v string) { + o.Description = &v +} + +// GetDeveloperLinks returns the DeveloperLinks field value if set, zero value otherwise. +func (o *AddonsAddon) GetDeveloperLinks() []AddonsDeveloperLink { + if o == nil || IsNil(o.DeveloperLinks) { + var ret []AddonsDeveloperLink + return ret + } + return o.DeveloperLinks +} + +// GetDeveloperLinksOk returns a tuple with the DeveloperLinks field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetDeveloperLinksOk() ([]AddonsDeveloperLink, bool) { + if o == nil || IsNil(o.DeveloperLinks) { + return nil, false + } + return o.DeveloperLinks, true +} + +// HasDeveloperLinks returns a boolean if a field has been set. +func (o *AddonsAddon) HasDeveloperLinks() bool { + if o != nil && !IsNil(o.DeveloperLinks) { + return true + } + + return false +} + +// SetDeveloperLinks gets a reference to the given []AddonsDeveloperLink and assigns it to the DeveloperLinks field. +func (o *AddonsAddon) SetDeveloperLinks(v []AddonsDeveloperLink) { + o.DeveloperLinks = v +} + +// GetDocumentationUrl returns the DocumentationUrl field value if set, zero value otherwise. +func (o *AddonsAddon) 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 *AddonsAddon) 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 *AddonsAddon) 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 *AddonsAddon) SetDocumentationUrl(v string) { + o.DocumentationUrl = &v +} + +// GetHasUi returns the HasUi field value if set, zero value otherwise. +func (o *AddonsAddon) GetHasUi() bool { + if o == nil || IsNil(o.HasUi) { + var ret bool + return ret + } + return *o.HasUi +} + +// GetHasUiOk returns a tuple with the HasUi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetHasUiOk() (*bool, bool) { + if o == nil || IsNil(o.HasUi) { + return nil, false + } + return o.HasUi, true +} + +// HasHasUi returns a boolean if a field has been set. +func (o *AddonsAddon) HasHasUi() bool { + if o != nil && !IsNil(o.HasUi) { + return true + } + + return false +} + +// SetHasUi gets a reference to the given bool and assigns it to the HasUi field. +func (o *AddonsAddon) SetHasUi(v bool) { + o.HasUi = &v +} + +// GetIcon returns the Icon field value if set, zero value otherwise. +func (o *AddonsAddon) GetIcon() string { + if o == nil || IsNil(o.Icon) { + var ret string + return ret + } + return *o.Icon +} + +// GetIconOk returns a tuple with the Icon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetIconOk() (*string, bool) { + if o == nil || IsNil(o.Icon) { + return nil, false + } + return o.Icon, true +} + +// HasIcon returns a boolean if a field has been set. +func (o *AddonsAddon) HasIcon() bool { + if o != nil && !IsNil(o.Icon) { + return true + } + + return false +} + +// SetIcon gets a reference to the given string and assigns it to the Icon field. +func (o *AddonsAddon) SetIcon(v string) { + o.Icon = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AddonsAddon) 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 *AddonsAddon) 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 *AddonsAddon) 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 *AddonsAddon) SetId(v string) { + o.Id = &v +} + +// GetIsBeta returns the IsBeta field value if set, zero value otherwise. +func (o *AddonsAddon) GetIsBeta() bool { + if o == nil || IsNil(o.IsBeta) { + var ret bool + return ret + } + return *o.IsBeta +} + +// GetIsBetaOk returns a tuple with the IsBeta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetIsBetaOk() (*bool, bool) { + if o == nil || IsNil(o.IsBeta) { + return nil, false + } + return o.IsBeta, true +} + +// HasIsBeta returns a boolean if a field has been set. +func (o *AddonsAddon) HasIsBeta() bool { + if o != nil && !IsNil(o.IsBeta) { + return true + } + + return false +} + +// SetIsBeta gets a reference to the given bool and assigns it to the IsBeta field. +func (o *AddonsAddon) SetIsBeta(v bool) { + o.IsBeta = &v +} + +// GetPlans returns the Plans field value if set, zero value otherwise. +func (o *AddonsAddon) GetPlans() []AddonsPlan { + if o == nil || IsNil(o.Plans) { + var ret []AddonsPlan + return ret + } + return o.Plans +} + +// GetPlansOk returns a tuple with the Plans field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetPlansOk() ([]AddonsPlan, bool) { + if o == nil || IsNil(o.Plans) { + return nil, false + } + return o.Plans, true +} + +// HasPlans returns a boolean if a field has been set. +func (o *AddonsAddon) HasPlans() bool { + if o != nil && !IsNil(o.Plans) { + return true + } + + return false +} + +// SetPlans gets a reference to the given []AddonsPlan and assigns it to the Plans field. +func (o *AddonsAddon) SetPlans(v []AddonsPlan) { + o.Plans = v +} + +// GetPlatforms returns the Platforms field value if set, zero value otherwise. +func (o *AddonsAddon) GetPlatforms() []string { + if o == nil || IsNil(o.Platforms) { + var ret []string + return ret + } + return o.Platforms +} + +// GetPlatformsOk returns a tuple with the Platforms field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetPlatformsOk() ([]string, bool) { + if o == nil || IsNil(o.Platforms) { + return nil, false + } + return o.Platforms, true +} + +// HasPlatforms returns a boolean if a field has been set. +func (o *AddonsAddon) HasPlatforms() bool { + if o != nil && !IsNil(o.Platforms) { + return true + } + + return false +} + +// SetPlatforms gets a reference to the given []string and assigns it to the Platforms field. +func (o *AddonsAddon) SetPlatforms(v []string) { + o.Platforms = v +} + +// GetPreviewImages returns the PreviewImages field value if set, zero value otherwise. +func (o *AddonsAddon) GetPreviewImages() []string { + if o == nil || IsNil(o.PreviewImages) { + var ret []string + return ret + } + return o.PreviewImages +} + +// GetPreviewImagesOk returns a tuple with the PreviewImages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetPreviewImagesOk() ([]string, bool) { + if o == nil || IsNil(o.PreviewImages) { + return nil, false + } + return o.PreviewImages, true +} + +// HasPreviewImages returns a boolean if a field has been set. +func (o *AddonsAddon) HasPreviewImages() bool { + if o != nil && !IsNil(o.PreviewImages) { + return true + } + + return false +} + +// SetPreviewImages gets a reference to the given []string and assigns it to the PreviewImages field. +func (o *AddonsAddon) SetPreviewImages(v []string) { + o.PreviewImages = v +} + +// GetSetupGuide returns the SetupGuide field value if set, zero value otherwise. +func (o *AddonsAddon) GetSetupGuide() AddonsSetupGuide { + if o == nil || IsNil(o.SetupGuide) { + var ret AddonsSetupGuide + return ret + } + return *o.SetupGuide +} + +// GetSetupGuideOk returns a tuple with the SetupGuide field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetSetupGuideOk() (*AddonsSetupGuide, bool) { + if o == nil || IsNil(o.SetupGuide) { + return nil, false + } + return o.SetupGuide, true +} + +// HasSetupGuide returns a boolean if a field has been set. +func (o *AddonsAddon) HasSetupGuide() bool { + if o != nil && !IsNil(o.SetupGuide) { + return true + } + + return false +} + +// SetSetupGuide gets a reference to the given AddonsSetupGuide and assigns it to the SetupGuide field. +func (o *AddonsAddon) SetSetupGuide(v AddonsSetupGuide) { + o.SetupGuide = &v +} + +// GetSubtitle returns the Subtitle field value if set, zero value otherwise. +func (o *AddonsAddon) GetSubtitle() string { + if o == nil || IsNil(o.Subtitle) { + var ret string + return ret + } + return *o.Subtitle +} + +// GetSubtitleOk returns a tuple with the Subtitle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetSubtitleOk() (*string, bool) { + if o == nil || IsNil(o.Subtitle) { + return nil, false + } + return o.Subtitle, true +} + +// HasSubtitle returns a boolean if a field has been set. +func (o *AddonsAddon) HasSubtitle() bool { + if o != nil && !IsNil(o.Subtitle) { + return true + } + + return false +} + +// SetSubtitle gets a reference to the given string and assigns it to the Subtitle field. +func (o *AddonsAddon) SetSubtitle(v string) { + o.Subtitle = &v +} + +// GetSummary returns the Summary field value if set, zero value otherwise. +func (o *AddonsAddon) GetSummary() string { + if o == nil || IsNil(o.Summary) { + var ret string + return ret + } + return *o.Summary +} + +// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetSummaryOk() (*string, bool) { + if o == nil || IsNil(o.Summary) { + return nil, false + } + return o.Summary, true +} + +// HasSummary returns a boolean if a field has been set. +func (o *AddonsAddon) HasSummary() bool { + if o != nil && !IsNil(o.Summary) { + return true + } + + return false +} + +// SetSummary gets a reference to the given string and assigns it to the Summary field. +func (o *AddonsAddon) SetSummary(v string) { + o.Summary = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *AddonsAddon) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsAddon) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *AddonsAddon) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *AddonsAddon) SetTitle(v string) { + o.Title = &v +} + +func (o AddonsAddon) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddonsAddon) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BannerImage) { + toSerialize["banner_image"] = o.BannerImage + } + if !IsNil(o.CardHeaderColors) { + toSerialize["card_header_colors"] = o.CardHeaderColors + } + if !IsNil(o.Categories) { + toSerialize["categories"] = o.Categories + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DeveloperLinks) { + toSerialize["developer_links"] = o.DeveloperLinks + } + if !IsNil(o.DocumentationUrl) { + toSerialize["documentation_url"] = o.DocumentationUrl + } + if !IsNil(o.HasUi) { + toSerialize["has_ui"] = o.HasUi + } + if !IsNil(o.Icon) { + toSerialize["icon"] = o.Icon + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.IsBeta) { + toSerialize["is_beta"] = o.IsBeta + } + if !IsNil(o.Plans) { + toSerialize["plans"] = o.Plans + } + if !IsNil(o.Platforms) { + toSerialize["platforms"] = o.Platforms + } + if !IsNil(o.PreviewImages) { + toSerialize["preview_images"] = o.PreviewImages + } + if !IsNil(o.SetupGuide) { + toSerialize["setup_guide"] = o.SetupGuide + } + if !IsNil(o.Subtitle) { + toSerialize["subtitle"] = o.Subtitle + } + if !IsNil(o.Summary) { + toSerialize["summary"] = o.Summary + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + return toSerialize, nil +} + +type NullableAddonsAddon struct { + value *AddonsAddon + isSet bool +} + +func (v NullableAddonsAddon) Get() *AddonsAddon { + return v.value +} + +func (v *NullableAddonsAddon) Set(val *AddonsAddon) { + v.value = val + v.isSet = true +} + +func (v NullableAddonsAddon) IsSet() bool { + return v.isSet +} + +func (v *NullableAddonsAddon) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddonsAddon(val *AddonsAddon) *NullableAddonsAddon { + return &NullableAddonsAddon{value: val, isSet: true} +} + +func (v NullableAddonsAddon) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddonsAddon) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_addons_developer_link.go b/go2/model_addons_developer_link.go new file mode 100644 index 0000000..fd1ef8b --- /dev/null +++ b/go2/model_addons_developer_link.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AddonsDeveloperLink type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddonsDeveloperLink{} + +// AddonsDeveloperLink struct for AddonsDeveloperLink +type AddonsDeveloperLink struct { + Title *string `json:"title,omitempty"` + Url *string `json:"url,omitempty"` +} + +// NewAddonsDeveloperLink instantiates a new AddonsDeveloperLink object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddonsDeveloperLink() *AddonsDeveloperLink { + this := AddonsDeveloperLink{} + return &this +} + +// NewAddonsDeveloperLinkWithDefaults instantiates a new AddonsDeveloperLink object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddonsDeveloperLinkWithDefaults() *AddonsDeveloperLink { + this := AddonsDeveloperLink{} + return &this +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *AddonsDeveloperLink) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsDeveloperLink) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *AddonsDeveloperLink) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *AddonsDeveloperLink) SetTitle(v string) { + o.Title = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *AddonsDeveloperLink) 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 *AddonsDeveloperLink) 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 *AddonsDeveloperLink) 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 *AddonsDeveloperLink) SetUrl(v string) { + o.Url = &v +} + +func (o AddonsDeveloperLink) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddonsDeveloperLink) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + return toSerialize, nil +} + +type NullableAddonsDeveloperLink struct { + value *AddonsDeveloperLink + isSet bool +} + +func (v NullableAddonsDeveloperLink) Get() *AddonsDeveloperLink { + return v.value +} + +func (v *NullableAddonsDeveloperLink) Set(val *AddonsDeveloperLink) { + v.value = val + v.isSet = true +} + +func (v NullableAddonsDeveloperLink) IsSet() bool { + return v.isSet +} + +func (v *NullableAddonsDeveloperLink) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddonsDeveloperLink(val *AddonsDeveloperLink) *NullableAddonsDeveloperLink { + return &NullableAddonsDeveloperLink{value: val, isSet: true} +} + +func (v NullableAddonsDeveloperLink) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddonsDeveloperLink) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_addons_feature.go b/go2/model_addons_feature.go new file mode 100644 index 0000000..8c31799 --- /dev/null +++ b/go2/model_addons_feature.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AddonsFeature type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddonsFeature{} + +// AddonsFeature struct for AddonsFeature +type AddonsFeature struct { + Available *bool `json:"available,omitempty"` + Description *string `json:"description,omitempty"` + Quantity *string `json:"quantity,omitempty"` +} + +// NewAddonsFeature instantiates a new AddonsFeature object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddonsFeature() *AddonsFeature { + this := AddonsFeature{} + return &this +} + +// NewAddonsFeatureWithDefaults instantiates a new AddonsFeature object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddonsFeatureWithDefaults() *AddonsFeature { + this := AddonsFeature{} + return &this +} + +// GetAvailable returns the Available field value if set, zero value otherwise. +func (o *AddonsFeature) 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 *AddonsFeature) 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 *AddonsFeature) 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 *AddonsFeature) SetAvailable(v bool) { + o.Available = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *AddonsFeature) 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 *AddonsFeature) 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 *AddonsFeature) 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 *AddonsFeature) SetDescription(v string) { + o.Description = &v +} + +// GetQuantity returns the Quantity field value if set, zero value otherwise. +func (o *AddonsFeature) GetQuantity() string { + if o == nil || IsNil(o.Quantity) { + var ret string + return ret + } + return *o.Quantity +} + +// GetQuantityOk returns a tuple with the Quantity field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsFeature) GetQuantityOk() (*string, bool) { + if o == nil || IsNil(o.Quantity) { + return nil, false + } + return o.Quantity, true +} + +// HasQuantity returns a boolean if a field has been set. +func (o *AddonsFeature) HasQuantity() bool { + if o != nil && !IsNil(o.Quantity) { + return true + } + + return false +} + +// SetQuantity gets a reference to the given string and assigns it to the Quantity field. +func (o *AddonsFeature) SetQuantity(v string) { + o.Quantity = &v +} + +func (o AddonsFeature) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddonsFeature) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Available) { + toSerialize["available"] = o.Available + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Quantity) { + toSerialize["quantity"] = o.Quantity + } + return toSerialize, nil +} + +type NullableAddonsFeature struct { + value *AddonsFeature + isSet bool +} + +func (v NullableAddonsFeature) Get() *AddonsFeature { + return v.value +} + +func (v *NullableAddonsFeature) Set(val *AddonsFeature) { + v.value = val + v.isSet = true +} + +func (v NullableAddonsFeature) IsSet() bool { + return v.isSet +} + +func (v *NullableAddonsFeature) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddonsFeature(val *AddonsFeature) *NullableAddonsFeature { + return &NullableAddonsFeature{value: val, isSet: true} +} + +func (v NullableAddonsFeature) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddonsFeature) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_addons_plan.go b/go2/model_addons_plan.go new file mode 100644 index 0000000..f0b3f47 --- /dev/null +++ b/go2/model_addons_plan.go @@ -0,0 +1,235 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AddonsPlan type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddonsPlan{} + +// AddonsPlan struct for AddonsPlan +type AddonsPlan struct { + Features []AddonsFeature `json:"features,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Price *int32 `json:"price,omitempty"` +} + +// NewAddonsPlan instantiates a new AddonsPlan object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddonsPlan() *AddonsPlan { + this := AddonsPlan{} + return &this +} + +// NewAddonsPlanWithDefaults instantiates a new AddonsPlan object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddonsPlanWithDefaults() *AddonsPlan { + this := AddonsPlan{} + return &this +} + +// GetFeatures returns the Features field value if set, zero value otherwise. +func (o *AddonsPlan) GetFeatures() []AddonsFeature { + if o == nil || IsNil(o.Features) { + var ret []AddonsFeature + 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 *AddonsPlan) GetFeaturesOk() ([]AddonsFeature, 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 *AddonsPlan) HasFeatures() bool { + if o != nil && !IsNil(o.Features) { + return true + } + + return false +} + +// SetFeatures gets a reference to the given []AddonsFeature and assigns it to the Features field. +func (o *AddonsPlan) SetFeatures(v []AddonsFeature) { + o.Features = v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AddonsPlan) 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 *AddonsPlan) 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 *AddonsPlan) 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 *AddonsPlan) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *AddonsPlan) 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 *AddonsPlan) 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 *AddonsPlan) 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 *AddonsPlan) SetName(v string) { + o.Name = &v +} + +// GetPrice returns the Price field value if set, zero value otherwise. +func (o *AddonsPlan) GetPrice() int32 { + if o == nil || IsNil(o.Price) { + var ret int32 + return ret + } + return *o.Price +} + +// GetPriceOk returns a tuple with the Price field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsPlan) GetPriceOk() (*int32, bool) { + if o == nil || IsNil(o.Price) { + return nil, false + } + return o.Price, true +} + +// HasPrice returns a boolean if a field has been set. +func (o *AddonsPlan) HasPrice() bool { + if o != nil && !IsNil(o.Price) { + return true + } + + return false +} + +// SetPrice gets a reference to the given int32 and assigns it to the Price field. +func (o *AddonsPlan) SetPrice(v int32) { + o.Price = &v +} + +func (o AddonsPlan) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddonsPlan) 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 !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Price) { + toSerialize["price"] = o.Price + } + return toSerialize, nil +} + +type NullableAddonsPlan struct { + value *AddonsPlan + isSet bool +} + +func (v NullableAddonsPlan) Get() *AddonsPlan { + return v.value +} + +func (v *NullableAddonsPlan) Set(val *AddonsPlan) { + v.value = val + v.isSet = true +} + +func (v NullableAddonsPlan) IsSet() bool { + return v.isSet +} + +func (v *NullableAddonsPlan) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddonsPlan(val *AddonsPlan) *NullableAddonsPlan { + return &NullableAddonsPlan{value: val, isSet: true} +} + +func (v NullableAddonsPlan) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddonsPlan) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_addons_setup_guide.go b/go2/model_addons_setup_guide.go new file mode 100644 index 0000000..d595c06 --- /dev/null +++ b/go2/model_addons_setup_guide.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AddonsSetupGuide type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddonsSetupGuide{} + +// AddonsSetupGuide struct for AddonsSetupGuide +type AddonsSetupGuide struct { + Instructions []AddonsSetupInstruction `json:"instructions,omitempty"` + Notification *string `json:"notification,omitempty"` +} + +// NewAddonsSetupGuide instantiates a new AddonsSetupGuide object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddonsSetupGuide() *AddonsSetupGuide { + this := AddonsSetupGuide{} + return &this +} + +// NewAddonsSetupGuideWithDefaults instantiates a new AddonsSetupGuide object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddonsSetupGuideWithDefaults() *AddonsSetupGuide { + this := AddonsSetupGuide{} + return &this +} + +// GetInstructions returns the Instructions field value if set, zero value otherwise. +func (o *AddonsSetupGuide) GetInstructions() []AddonsSetupInstruction { + if o == nil || IsNil(o.Instructions) { + var ret []AddonsSetupInstruction + return ret + } + return o.Instructions +} + +// GetInstructionsOk returns a tuple with the Instructions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsSetupGuide) GetInstructionsOk() ([]AddonsSetupInstruction, bool) { + if o == nil || IsNil(o.Instructions) { + return nil, false + } + return o.Instructions, true +} + +// HasInstructions returns a boolean if a field has been set. +func (o *AddonsSetupGuide) HasInstructions() bool { + if o != nil && !IsNil(o.Instructions) { + return true + } + + return false +} + +// SetInstructions gets a reference to the given []AddonsSetupInstruction and assigns it to the Instructions field. +func (o *AddonsSetupGuide) SetInstructions(v []AddonsSetupInstruction) { + o.Instructions = v +} + +// GetNotification returns the Notification field value if set, zero value otherwise. +func (o *AddonsSetupGuide) GetNotification() string { + if o == nil || IsNil(o.Notification) { + var ret string + return ret + } + return *o.Notification +} + +// GetNotificationOk returns a tuple with the Notification field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsSetupGuide) GetNotificationOk() (*string, bool) { + if o == nil || IsNil(o.Notification) { + return nil, false + } + return o.Notification, true +} + +// HasNotification returns a boolean if a field has been set. +func (o *AddonsSetupGuide) HasNotification() bool { + if o != nil && !IsNil(o.Notification) { + return true + } + + return false +} + +// SetNotification gets a reference to the given string and assigns it to the Notification field. +func (o *AddonsSetupGuide) SetNotification(v string) { + o.Notification = &v +} + +func (o AddonsSetupGuide) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddonsSetupGuide) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Instructions) { + toSerialize["instructions"] = o.Instructions + } + if !IsNil(o.Notification) { + toSerialize["notification"] = o.Notification + } + return toSerialize, nil +} + +type NullableAddonsSetupGuide struct { + value *AddonsSetupGuide + isSet bool +} + +func (v NullableAddonsSetupGuide) Get() *AddonsSetupGuide { + return v.value +} + +func (v *NullableAddonsSetupGuide) Set(val *AddonsSetupGuide) { + v.value = val + v.isSet = true +} + +func (v NullableAddonsSetupGuide) IsSet() bool { + return v.isSet +} + +func (v *NullableAddonsSetupGuide) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddonsSetupGuide(val *AddonsSetupGuide) *NullableAddonsSetupGuide { + return &NullableAddonsSetupGuide{value: val, isSet: true} +} + +func (v NullableAddonsSetupGuide) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddonsSetupGuide) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_addons_setup_instruction.go b/go2/model_addons_setup_instruction.go new file mode 100644 index 0000000..f97fbfe --- /dev/null +++ b/go2/model_addons_setup_instruction.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AddonsSetupInstruction type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AddonsSetupInstruction{} + +// AddonsSetupInstruction struct for AddonsSetupInstruction +type AddonsSetupInstruction struct { + CardContent *string `json:"card_content,omitempty"` + Description *string `json:"description,omitempty"` + Type *string `json:"type,omitempty"` +} + +// NewAddonsSetupInstruction instantiates a new AddonsSetupInstruction object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAddonsSetupInstruction() *AddonsSetupInstruction { + this := AddonsSetupInstruction{} + return &this +} + +// NewAddonsSetupInstructionWithDefaults instantiates a new AddonsSetupInstruction object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAddonsSetupInstructionWithDefaults() *AddonsSetupInstruction { + this := AddonsSetupInstruction{} + return &this +} + +// GetCardContent returns the CardContent field value if set, zero value otherwise. +func (o *AddonsSetupInstruction) GetCardContent() string { + if o == nil || IsNil(o.CardContent) { + var ret string + return ret + } + return *o.CardContent +} + +// GetCardContentOk returns a tuple with the CardContent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AddonsSetupInstruction) GetCardContentOk() (*string, bool) { + if o == nil || IsNil(o.CardContent) { + return nil, false + } + return o.CardContent, true +} + +// HasCardContent returns a boolean if a field has been set. +func (o *AddonsSetupInstruction) HasCardContent() bool { + if o != nil && !IsNil(o.CardContent) { + return true + } + + return false +} + +// SetCardContent gets a reference to the given string and assigns it to the CardContent field. +func (o *AddonsSetupInstruction) SetCardContent(v string) { + o.CardContent = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *AddonsSetupInstruction) 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 *AddonsSetupInstruction) 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 *AddonsSetupInstruction) 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 *AddonsSetupInstruction) SetDescription(v string) { + o.Description = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *AddonsSetupInstruction) 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 *AddonsSetupInstruction) 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 *AddonsSetupInstruction) 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 *AddonsSetupInstruction) SetType(v string) { + o.Type = &v +} + +func (o AddonsSetupInstruction) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AddonsSetupInstruction) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CardContent) { + toSerialize["card_content"] = o.CardContent + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableAddonsSetupInstruction struct { + value *AddonsSetupInstruction + isSet bool +} + +func (v NullableAddonsSetupInstruction) Get() *AddonsSetupInstruction { + return v.value +} + +func (v *NullableAddonsSetupInstruction) Set(val *AddonsSetupInstruction) { + v.value = val + v.isSet = true +} + +func (v NullableAddonsSetupInstruction) IsSet() bool { + return v.isSet +} + +func (v *NullableAddonsSetupInstruction) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAddonsSetupInstruction(val *AddonsSetupInstruction) *NullableAddonsSetupInstruction { + return &NullableAddonsSetupInstruction{value: val, isSet: true} +} + +func (v NullableAddonsSetupInstruction) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAddonsSetupInstruction) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_app_roles_query_200_response.go b/go2/model_app_roles_query_200_response.go new file mode 100644 index 0000000..e1c1c0f --- /dev/null +++ b/go2/model_app_roles_query_200_response.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the AppRolesQuery200Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AppRolesQuery200Response{} + +// AppRolesQuery200Response struct for AppRolesQuery200Response +type AppRolesQuery200Response struct { + Groups []string `json:"groups,omitempty"` +} + +// NewAppRolesQuery200Response instantiates a new AppRolesQuery200Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAppRolesQuery200Response() *AppRolesQuery200Response { + this := AppRolesQuery200Response{} + return &this +} + +// NewAppRolesQuery200ResponseWithDefaults instantiates a new AppRolesQuery200Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAppRolesQuery200ResponseWithDefaults() *AppRolesQuery200Response { + this := AppRolesQuery200Response{} + return &this +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *AppRolesQuery200Response) GetGroups() []string { + if o == nil || IsNil(o.Groups) { + var ret []string + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AppRolesQuery200Response) GetGroupsOk() ([]string, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *AppRolesQuery200Response) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []string and assigns it to the Groups field. +func (o *AppRolesQuery200Response) SetGroups(v []string) { + o.Groups = v +} + +func (o AppRolesQuery200Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AppRolesQuery200Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + return toSerialize, nil +} + +type NullableAppRolesQuery200Response struct { + value *AppRolesQuery200Response + isSet bool +} + +func (v NullableAppRolesQuery200Response) Get() *AppRolesQuery200Response { + return v.value +} + +func (v *NullableAppRolesQuery200Response) Set(val *AppRolesQuery200Response) { + v.value = val + v.isSet = true +} + +func (v NullableAppRolesQuery200Response) IsSet() bool { + return v.isSet +} + +func (v *NullableAppRolesQuery200Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAppRolesQuery200Response(val *AppRolesQuery200Response) *NullableAppRolesQuery200Response { + return &NullableAppRolesQuery200Response{value: val, isSet: true} +} + +func (v NullableAppRolesQuery200Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAppRolesQuery200Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_nulls_int64.go b/go2/model_nulls_int64.go new file mode 100644 index 0000000..9e9032f --- /dev/null +++ b/go2/model_nulls_int64.go @@ -0,0 +1,164 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the NullsInt64 type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NullsInt64{} + +// NullsInt64 struct for NullsInt64 +type NullsInt64 struct { + Int64 *int32 `json:"int64,omitempty"` + // Valid is true if Int64 is not NULL + Valid *bool `json:"valid,omitempty"` +} + +// NewNullsInt64 instantiates a new NullsInt64 object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNullsInt64() *NullsInt64 { + this := NullsInt64{} + return &this +} + +// NewNullsInt64WithDefaults instantiates a new NullsInt64 object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNullsInt64WithDefaults() *NullsInt64 { + this := NullsInt64{} + return &this +} + +// GetInt64 returns the Int64 field value if set, zero value otherwise. +func (o *NullsInt64) GetInt64() int32 { + if o == nil || IsNil(o.Int64) { + var ret int32 + return ret + } + return *o.Int64 +} + +// GetInt64Ok returns a tuple with the Int64 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NullsInt64) GetInt64Ok() (*int32, bool) { + if o == nil || IsNil(o.Int64) { + return nil, false + } + return o.Int64, true +} + +// HasInt64 returns a boolean if a field has been set. +func (o *NullsInt64) HasInt64() bool { + if o != nil && !IsNil(o.Int64) { + return true + } + + return false +} + +// SetInt64 gets a reference to the given int32 and assigns it to the Int64 field. +func (o *NullsInt64) SetInt64(v int32) { + o.Int64 = &v +} + +// GetValid returns the Valid field value if set, zero value otherwise. +func (o *NullsInt64) GetValid() bool { + if o == nil || IsNil(o.Valid) { + var ret bool + return ret + } + return *o.Valid +} + +// GetValidOk returns a tuple with the Valid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NullsInt64) GetValidOk() (*bool, bool) { + if o == nil || IsNil(o.Valid) { + return nil, false + } + return o.Valid, true +} + +// HasValid returns a boolean if a field has been set. +func (o *NullsInt64) HasValid() bool { + if o != nil && !IsNil(o.Valid) { + return true + } + + return false +} + +// SetValid gets a reference to the given bool and assigns it to the Valid field. +func (o *NullsInt64) SetValid(v bool) { + o.Valid = &v +} + +func (o NullsInt64) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NullsInt64) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Int64) { + toSerialize["int64"] = o.Int64 + } + if !IsNil(o.Valid) { + toSerialize["valid"] = o.Valid + } + return toSerialize, nil +} + +type NullableNullsInt64 struct { + value *NullsInt64 + isSet bool +} + +func (v NullableNullsInt64) Get() *NullsInt64 { + return v.value +} + +func (v *NullableNullsInt64) Set(val *NullsInt64) { + v.value = val + v.isSet = true +} + +func (v NullableNullsInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableNullsInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNullsInt64(val *NullsInt64) *NullableNullsInt64 { + return &NullableNullsInt64{value: val, isSet: true} +} + +func (v NullableNullsInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNullsInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_nulls_string.go b/go2/model_nulls_string.go new file mode 100644 index 0000000..ddff3e3 --- /dev/null +++ b/go2/model_nulls_string.go @@ -0,0 +1,164 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the NullsString type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NullsString{} + +// NullsString struct for NullsString +type NullsString struct { + String *string `json:"string,omitempty"` + // Valid is true if String is not NULL + Valid *bool `json:"valid,omitempty"` +} + +// NewNullsString instantiates a new NullsString object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNullsString() *NullsString { + this := NullsString{} + return &this +} + +// NewNullsStringWithDefaults instantiates a new NullsString object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNullsStringWithDefaults() *NullsString { + this := NullsString{} + return &this +} + +// GetString returns the String field value if set, zero value otherwise. +func (o *NullsString) GetString() string { + if o == nil || IsNil(o.String) { + var ret string + return ret + } + return *o.String +} + +// GetStringOk returns a tuple with the String field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NullsString) GetStringOk() (*string, bool) { + if o == nil || IsNil(o.String) { + return nil, false + } + return o.String, true +} + +// HasString returns a boolean if a field has been set. +func (o *NullsString) HasString() bool { + if o != nil && !IsNil(o.String) { + return true + } + + return false +} + +// SetString gets a reference to the given string and assigns it to the String field. +func (o *NullsString) SetString(v string) { + o.String = &v +} + +// GetValid returns the Valid field value if set, zero value otherwise. +func (o *NullsString) GetValid() bool { + if o == nil || IsNil(o.Valid) { + var ret bool + return ret + } + return *o.Valid +} + +// GetValidOk returns a tuple with the Valid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NullsString) GetValidOk() (*bool, bool) { + if o == nil || IsNil(o.Valid) { + return nil, false + } + return o.Valid, true +} + +// HasValid returns a boolean if a field has been set. +func (o *NullsString) HasValid() bool { + if o != nil && !IsNil(o.Valid) { + return true + } + + return false +} + +// SetValid gets a reference to the given bool and assigns it to the Valid field. +func (o *NullsString) SetValid(v bool) { + o.Valid = &v +} + +func (o NullsString) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NullsString) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.String) { + toSerialize["string"] = o.String + } + if !IsNil(o.Valid) { + toSerialize["valid"] = o.Valid + } + return toSerialize, nil +} + +type NullableNullsString struct { + value *NullsString + isSet bool +} + +func (v NullableNullsString) Get() *NullsString { + return v.value +} + +func (v *NullableNullsString) Set(val *NullsString) { + v.value = val + v.isSet = true +} + +func (v NullableNullsString) IsSet() bool { + return v.isSet +} + +func (v *NullableNullsString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNullsString(val *NullsString) *NullableNullsString { + return &NullableNullsString{value: val, isSet: true} +} + +func (v NullableNullsString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNullsString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_organzation_groups_list_200_response_inner.go b/go2/model_organzation_groups_list_200_response_inner.go new file mode 100644 index 0000000..a479652 --- /dev/null +++ b/go2/model_organzation_groups_list_200_response_inner.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the OrganzationGroupsList200ResponseInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OrganzationGroupsList200ResponseInner{} + +// OrganzationGroupsList200ResponseInner struct for OrganzationGroupsList200ResponseInner +type OrganzationGroupsList200ResponseInner struct { + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` +} + +// NewOrganzationGroupsList200ResponseInner instantiates a new OrganzationGroupsList200ResponseInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewOrganzationGroupsList200ResponseInner() *OrganzationGroupsList200ResponseInner { + this := OrganzationGroupsList200ResponseInner{} + return &this +} + +// NewOrganzationGroupsList200ResponseInnerWithDefaults instantiates a new OrganzationGroupsList200ResponseInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewOrganzationGroupsList200ResponseInnerWithDefaults() *OrganzationGroupsList200ResponseInner { + this := OrganzationGroupsList200ResponseInner{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *OrganzationGroupsList200ResponseInner) 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 *OrganzationGroupsList200ResponseInner) 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 *OrganzationGroupsList200ResponseInner) 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 *OrganzationGroupsList200ResponseInner) SetName(v string) { + o.Name = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *OrganzationGroupsList200ResponseInner) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OrganzationGroupsList200ResponseInner) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *OrganzationGroupsList200ResponseInner) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *OrganzationGroupsList200ResponseInner) SetSlug(v string) { + o.Slug = &v +} + +func (o OrganzationGroupsList200ResponseInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OrganzationGroupsList200ResponseInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + return toSerialize, nil +} + +type NullableOrganzationGroupsList200ResponseInner struct { + value *OrganzationGroupsList200ResponseInner + isSet bool +} + +func (v NullableOrganzationGroupsList200ResponseInner) Get() *OrganzationGroupsList200ResponseInner { + return v.value +} + +func (v *NullableOrganzationGroupsList200ResponseInner) Set(val *OrganzationGroupsList200ResponseInner) { + v.value = val + v.isSet = true +} + +func (v NullableOrganzationGroupsList200ResponseInner) IsSet() bool { + return v.isSet +} + +func (v *NullableOrganzationGroupsList200ResponseInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableOrganzationGroupsList200ResponseInner(val *OrganzationGroupsList200ResponseInner) *NullableOrganzationGroupsList200ResponseInner { + return &NullableOrganzationGroupsList200ResponseInner{value: val, isSet: true} +} + +func (v NullableOrganzationGroupsList200ResponseInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableOrganzationGroupsList200ResponseInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_pipelineabledomain_artifact_meta.go b/go2/model_pipelineabledomain_artifact_meta.go new file mode 100644 index 0000000..294c26d --- /dev/null +++ b/go2/model_pipelineabledomain_artifact_meta.go @@ -0,0 +1,271 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the PipelineabledomainArtifactMeta type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PipelineabledomainArtifactMeta{} + +// PipelineabledomainArtifactMeta struct for PipelineabledomainArtifactMeta +type PipelineabledomainArtifactMeta struct { + ArtifactType *string `json:"artifact_type,omitempty"` + Id *string `json:"id,omitempty"` + Title *string `json:"title,omitempty"` + VersionCode *string `json:"version_code,omitempty"` + VersionName *string `json:"version_name,omitempty"` +} + +// NewPipelineabledomainArtifactMeta instantiates a new PipelineabledomainArtifactMeta object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPipelineabledomainArtifactMeta() *PipelineabledomainArtifactMeta { + this := PipelineabledomainArtifactMeta{} + return &this +} + +// NewPipelineabledomainArtifactMetaWithDefaults instantiates a new PipelineabledomainArtifactMeta object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPipelineabledomainArtifactMetaWithDefaults() *PipelineabledomainArtifactMeta { + this := PipelineabledomainArtifactMeta{} + return &this +} + +// GetArtifactType returns the ArtifactType field value if set, zero value otherwise. +func (o *PipelineabledomainArtifactMeta) GetArtifactType() string { + if o == nil || IsNil(o.ArtifactType) { + var ret string + return ret + } + return *o.ArtifactType +} + +// GetArtifactTypeOk returns a tuple with the ArtifactType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainArtifactMeta) GetArtifactTypeOk() (*string, bool) { + if o == nil || IsNil(o.ArtifactType) { + return nil, false + } + return o.ArtifactType, true +} + +// HasArtifactType returns a boolean if a field has been set. +func (o *PipelineabledomainArtifactMeta) HasArtifactType() bool { + if o != nil && !IsNil(o.ArtifactType) { + return true + } + + return false +} + +// SetArtifactType gets a reference to the given string and assigns it to the ArtifactType field. +func (o *PipelineabledomainArtifactMeta) SetArtifactType(v string) { + o.ArtifactType = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *PipelineabledomainArtifactMeta) 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 *PipelineabledomainArtifactMeta) 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 *PipelineabledomainArtifactMeta) 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 *PipelineabledomainArtifactMeta) SetId(v string) { + o.Id = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *PipelineabledomainArtifactMeta) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainArtifactMeta) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *PipelineabledomainArtifactMeta) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *PipelineabledomainArtifactMeta) SetTitle(v string) { + o.Title = &v +} + +// GetVersionCode returns the VersionCode field value if set, zero value otherwise. +func (o *PipelineabledomainArtifactMeta) GetVersionCode() string { + if o == nil || IsNil(o.VersionCode) { + var ret string + return ret + } + return *o.VersionCode +} + +// GetVersionCodeOk returns a tuple with the VersionCode field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainArtifactMeta) GetVersionCodeOk() (*string, bool) { + if o == nil || IsNil(o.VersionCode) { + return nil, false + } + return o.VersionCode, true +} + +// HasVersionCode returns a boolean if a field has been set. +func (o *PipelineabledomainArtifactMeta) HasVersionCode() bool { + if o != nil && !IsNil(o.VersionCode) { + return true + } + + return false +} + +// SetVersionCode gets a reference to the given string and assigns it to the VersionCode field. +func (o *PipelineabledomainArtifactMeta) SetVersionCode(v string) { + o.VersionCode = &v +} + +// GetVersionName returns the VersionName field value if set, zero value otherwise. +func (o *PipelineabledomainArtifactMeta) GetVersionName() string { + if o == nil || IsNil(o.VersionName) { + var ret string + return ret + } + return *o.VersionName +} + +// GetVersionNameOk returns a tuple with the VersionName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainArtifactMeta) GetVersionNameOk() (*string, bool) { + if o == nil || IsNil(o.VersionName) { + return nil, false + } + return o.VersionName, true +} + +// HasVersionName returns a boolean if a field has been set. +func (o *PipelineabledomainArtifactMeta) HasVersionName() bool { + if o != nil && !IsNil(o.VersionName) { + return true + } + + return false +} + +// SetVersionName gets a reference to the given string and assigns it to the VersionName field. +func (o *PipelineabledomainArtifactMeta) SetVersionName(v string) { + o.VersionName = &v +} + +func (o PipelineabledomainArtifactMeta) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PipelineabledomainArtifactMeta) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ArtifactType) { + toSerialize["artifact_type"] = o.ArtifactType + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.VersionCode) { + toSerialize["version_code"] = o.VersionCode + } + if !IsNil(o.VersionName) { + toSerialize["version_name"] = o.VersionName + } + return toSerialize, nil +} + +type NullablePipelineabledomainArtifactMeta struct { + value *PipelineabledomainArtifactMeta + isSet bool +} + +func (v NullablePipelineabledomainArtifactMeta) Get() *PipelineabledomainArtifactMeta { + return v.value +} + +func (v *NullablePipelineabledomainArtifactMeta) Set(val *PipelineabledomainArtifactMeta) { + v.value = val + v.isSet = true +} + +func (v NullablePipelineabledomainArtifactMeta) IsSet() bool { + return v.isSet +} + +func (v *NullablePipelineabledomainArtifactMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePipelineabledomainArtifactMeta(val *PipelineabledomainArtifactMeta) *NullablePipelineabledomainArtifactMeta { + return &NullablePipelineabledomainArtifactMeta{value: val, isSet: true} +} + +func (v NullablePipelineabledomainArtifactMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePipelineabledomainArtifactMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_pipelineabledomain_build_tool_invocation.go b/go2/model_pipelineabledomain_build_tool_invocation.go new file mode 100644 index 0000000..a3df253 --- /dev/null +++ b/go2/model_pipelineabledomain_build_tool_invocation.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the PipelineabledomainBuildToolInvocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PipelineabledomainBuildToolInvocation{} + +// PipelineabledomainBuildToolInvocation struct for PipelineabledomainBuildToolInvocation +type PipelineabledomainBuildToolInvocation struct { + InvocationId *string `json:"invocation_id,omitempty"` + Tool *string `json:"tool,omitempty"` + ToolVersion *string `json:"tool_version,omitempty"` +} + +// NewPipelineabledomainBuildToolInvocation instantiates a new PipelineabledomainBuildToolInvocation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPipelineabledomainBuildToolInvocation() *PipelineabledomainBuildToolInvocation { + this := PipelineabledomainBuildToolInvocation{} + return &this +} + +// NewPipelineabledomainBuildToolInvocationWithDefaults instantiates a new PipelineabledomainBuildToolInvocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPipelineabledomainBuildToolInvocationWithDefaults() *PipelineabledomainBuildToolInvocation { + this := PipelineabledomainBuildToolInvocation{} + return &this +} + +// GetInvocationId returns the InvocationId field value if set, zero value otherwise. +func (o *PipelineabledomainBuildToolInvocation) GetInvocationId() string { + if o == nil || IsNil(o.InvocationId) { + var ret string + return ret + } + return *o.InvocationId +} + +// GetInvocationIdOk returns a tuple with the InvocationId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainBuildToolInvocation) GetInvocationIdOk() (*string, bool) { + if o == nil || IsNil(o.InvocationId) { + return nil, false + } + return o.InvocationId, true +} + +// HasInvocationId returns a boolean if a field has been set. +func (o *PipelineabledomainBuildToolInvocation) HasInvocationId() bool { + if o != nil && !IsNil(o.InvocationId) { + return true + } + + return false +} + +// SetInvocationId gets a reference to the given string and assigns it to the InvocationId field. +func (o *PipelineabledomainBuildToolInvocation) SetInvocationId(v string) { + o.InvocationId = &v +} + +// GetTool returns the Tool field value if set, zero value otherwise. +func (o *PipelineabledomainBuildToolInvocation) GetTool() string { + if o == nil || IsNil(o.Tool) { + var ret string + return ret + } + return *o.Tool +} + +// GetToolOk returns a tuple with the Tool field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainBuildToolInvocation) GetToolOk() (*string, bool) { + if o == nil || IsNil(o.Tool) { + return nil, false + } + return o.Tool, true +} + +// HasTool returns a boolean if a field has been set. +func (o *PipelineabledomainBuildToolInvocation) HasTool() bool { + if o != nil && !IsNil(o.Tool) { + return true + } + + return false +} + +// SetTool gets a reference to the given string and assigns it to the Tool field. +func (o *PipelineabledomainBuildToolInvocation) SetTool(v string) { + o.Tool = &v +} + +// GetToolVersion returns the ToolVersion field value if set, zero value otherwise. +func (o *PipelineabledomainBuildToolInvocation) GetToolVersion() string { + if o == nil || IsNil(o.ToolVersion) { + var ret string + return ret + } + return *o.ToolVersion +} + +// GetToolVersionOk returns a tuple with the ToolVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainBuildToolInvocation) GetToolVersionOk() (*string, bool) { + if o == nil || IsNil(o.ToolVersion) { + return nil, false + } + return o.ToolVersion, true +} + +// HasToolVersion returns a boolean if a field has been set. +func (o *PipelineabledomainBuildToolInvocation) HasToolVersion() bool { + if o != nil && !IsNil(o.ToolVersion) { + return true + } + + return false +} + +// SetToolVersion gets a reference to the given string and assigns it to the ToolVersion field. +func (o *PipelineabledomainBuildToolInvocation) SetToolVersion(v string) { + o.ToolVersion = &v +} + +func (o PipelineabledomainBuildToolInvocation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PipelineabledomainBuildToolInvocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.InvocationId) { + toSerialize["invocation_id"] = o.InvocationId + } + if !IsNil(o.Tool) { + toSerialize["tool"] = o.Tool + } + if !IsNil(o.ToolVersion) { + toSerialize["tool_version"] = o.ToolVersion + } + return toSerialize, nil +} + +type NullablePipelineabledomainBuildToolInvocation struct { + value *PipelineabledomainBuildToolInvocation + isSet bool +} + +func (v NullablePipelineabledomainBuildToolInvocation) Get() *PipelineabledomainBuildToolInvocation { + return v.value +} + +func (v *NullablePipelineabledomainBuildToolInvocation) Set(val *PipelineabledomainBuildToolInvocation) { + v.value = val + v.isSet = true +} + +func (v NullablePipelineabledomainBuildToolInvocation) IsSet() bool { + return v.isSet +} + +func (v *NullablePipelineabledomainBuildToolInvocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePipelineabledomainBuildToolInvocation(val *PipelineabledomainBuildToolInvocation) *NullablePipelineabledomainBuildToolInvocation { + return &NullablePipelineabledomainBuildToolInvocation{value: val, isSet: true} +} + +func (v NullablePipelineabledomainBuildToolInvocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePipelineabledomainBuildToolInvocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_pipelineabledomain_environments.go b/go2/model_pipelineabledomain_environments.go new file mode 100644 index 0000000..7b27a09 --- /dev/null +++ b/go2/model_pipelineabledomain_environments.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the PipelineabledomainEnvironments type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PipelineabledomainEnvironments{} + +// PipelineabledomainEnvironments struct for PipelineabledomainEnvironments +type PipelineabledomainEnvironments struct { + IsExpand map[string]interface{} `json:"is_expand,omitempty"` + Key *string `json:"key,omitempty"` + Value map[string]interface{} `json:"value,omitempty"` +} + +// NewPipelineabledomainEnvironments instantiates a new PipelineabledomainEnvironments object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPipelineabledomainEnvironments() *PipelineabledomainEnvironments { + this := PipelineabledomainEnvironments{} + return &this +} + +// NewPipelineabledomainEnvironmentsWithDefaults instantiates a new PipelineabledomainEnvironments object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPipelineabledomainEnvironmentsWithDefaults() *PipelineabledomainEnvironments { + this := PipelineabledomainEnvironments{} + return &this +} + +// GetIsExpand returns the IsExpand field value if set, zero value otherwise. +func (o *PipelineabledomainEnvironments) GetIsExpand() map[string]interface{} { + if o == nil || IsNil(o.IsExpand) { + var ret map[string]interface{} + return ret + } + return o.IsExpand +} + +// GetIsExpandOk returns a tuple with the IsExpand field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainEnvironments) GetIsExpandOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.IsExpand) { + return map[string]interface{}{}, false + } + return o.IsExpand, true +} + +// HasIsExpand returns a boolean if a field has been set. +func (o *PipelineabledomainEnvironments) HasIsExpand() bool { + if o != nil && !IsNil(o.IsExpand) { + return true + } + + return false +} + +// SetIsExpand gets a reference to the given map[string]interface{} and assigns it to the IsExpand field. +func (o *PipelineabledomainEnvironments) SetIsExpand(v map[string]interface{}) { + o.IsExpand = v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *PipelineabledomainEnvironments) GetKey() string { + if o == nil || IsNil(o.Key) { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainEnvironments) GetKeyOk() (*string, bool) { + if o == nil || IsNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *PipelineabledomainEnvironments) HasKey() bool { + if o != nil && !IsNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *PipelineabledomainEnvironments) SetKey(v string) { + o.Key = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *PipelineabledomainEnvironments) GetValue() map[string]interface{} { + if o == nil || IsNil(o.Value) { + var ret map[string]interface{} + 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 *PipelineabledomainEnvironments) GetValueOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Value) { + return map[string]interface{}{}, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *PipelineabledomainEnvironments) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given map[string]interface{} and assigns it to the Value field. +func (o *PipelineabledomainEnvironments) SetValue(v map[string]interface{}) { + o.Value = v +} + +func (o PipelineabledomainEnvironments) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PipelineabledomainEnvironments) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsExpand) { + toSerialize["is_expand"] = o.IsExpand + } + if !IsNil(o.Key) { + toSerialize["key"] = o.Key + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullablePipelineabledomainEnvironments struct { + value *PipelineabledomainEnvironments + isSet bool +} + +func (v NullablePipelineabledomainEnvironments) Get() *PipelineabledomainEnvironments { + return v.value +} + +func (v *NullablePipelineabledomainEnvironments) Set(val *PipelineabledomainEnvironments) { + v.value = val + v.isSet = true +} + +func (v NullablePipelineabledomainEnvironments) IsSet() bool { + return v.isSet +} + +func (v *NullablePipelineabledomainEnvironments) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePipelineabledomainEnvironments(val *PipelineabledomainEnvironments) *NullablePipelineabledomainEnvironments { + return &NullablePipelineabledomainEnvironments{value: val, isSet: true} +} + +func (v NullablePipelineabledomainEnvironments) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePipelineabledomainEnvironments) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_pipelineabledomain_local_config.go b/go2/model_pipelineabledomain_local_config.go new file mode 100644 index 0000000..384eb98 --- /dev/null +++ b/go2/model_pipelineabledomain_local_config.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the PipelineabledomainLocalConfig type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PipelineabledomainLocalConfig{} + +// PipelineabledomainLocalConfig struct for PipelineabledomainLocalConfig +type PipelineabledomainLocalConfig struct { + Host *string `json:"host,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewPipelineabledomainLocalConfig instantiates a new PipelineabledomainLocalConfig object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPipelineabledomainLocalConfig() *PipelineabledomainLocalConfig { + this := PipelineabledomainLocalConfig{} + return &this +} + +// NewPipelineabledomainLocalConfigWithDefaults instantiates a new PipelineabledomainLocalConfig object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPipelineabledomainLocalConfigWithDefaults() *PipelineabledomainLocalConfig { + this := PipelineabledomainLocalConfig{} + return &this +} + +// GetHost returns the Host field value if set, zero value otherwise. +func (o *PipelineabledomainLocalConfig) 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 *PipelineabledomainLocalConfig) 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 *PipelineabledomainLocalConfig) 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 *PipelineabledomainLocalConfig) SetHost(v string) { + o.Host = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *PipelineabledomainLocalConfig) 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 *PipelineabledomainLocalConfig) 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 *PipelineabledomainLocalConfig) 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 *PipelineabledomainLocalConfig) SetUsername(v string) { + o.Username = &v +} + +func (o PipelineabledomainLocalConfig) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PipelineabledomainLocalConfig) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Host) { + toSerialize["host"] = o.Host + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullablePipelineabledomainLocalConfig struct { + value *PipelineabledomainLocalConfig + isSet bool +} + +func (v NullablePipelineabledomainLocalConfig) Get() *PipelineabledomainLocalConfig { + return v.value +} + +func (v *NullablePipelineabledomainLocalConfig) Set(val *PipelineabledomainLocalConfig) { + v.value = val + v.isSet = true +} + +func (v NullablePipelineabledomainLocalConfig) IsSet() bool { + return v.isSet +} + +func (v *NullablePipelineabledomainLocalConfig) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePipelineabledomainLocalConfig(val *PipelineabledomainLocalConfig) *NullablePipelineabledomainLocalConfig { + return &NullablePipelineabledomainLocalConfig{value: val, isSet: true} +} + +func (v NullablePipelineabledomainLocalConfig) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePipelineabledomainLocalConfig) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_pipelineabledomain_trigger_params.go b/go2/model_pipelineabledomain_trigger_params.go new file mode 100644 index 0000000..cadbfb5 --- /dev/null +++ b/go2/model_pipelineabledomain_trigger_params.go @@ -0,0 +1,595 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the PipelineabledomainTriggerParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PipelineabledomainTriggerParams{} + +// PipelineabledomainTriggerParams struct for PipelineabledomainTriggerParams +type PipelineabledomainTriggerParams struct { + Branch *string `json:"branch,omitempty"` + BranchDest *string `json:"branch_dest,omitempty"` + BranchDestRepoOwner *string `json:"branch_dest_repo_owner,omitempty"` + BranchRepoOwner *string `json:"branch_repo_owner,omitempty"` + CommitHash *string `json:"commit_hash,omitempty"` + CommitMessage *string `json:"commit_message,omitempty"` + Environments []PipelineabledomainEnvironments `json:"environments,omitempty"` + PullRequestAuthor *string `json:"pull_request_author,omitempty"` + PullRequestHeadBranch *string `json:"pull_request_head_branch,omitempty"` + PullRequestId map[string]interface{} `json:"pull_request_id,omitempty"` + PullRequestMergeBranch *string `json:"pull_request_merge_branch,omitempty"` + PullRequestRepositoryUrl *string `json:"pull_request_repository_url,omitempty"` + PullRequestUnverifiedMergeBranch *string `json:"pull_request_unverified_merge_branch,omitempty"` + Tag map[string]interface{} `json:"tag,omitempty"` +} + +// NewPipelineabledomainTriggerParams instantiates a new PipelineabledomainTriggerParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPipelineabledomainTriggerParams() *PipelineabledomainTriggerParams { + this := PipelineabledomainTriggerParams{} + return &this +} + +// NewPipelineabledomainTriggerParamsWithDefaults instantiates a new PipelineabledomainTriggerParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPipelineabledomainTriggerParamsWithDefaults() *PipelineabledomainTriggerParams { + this := PipelineabledomainTriggerParams{} + return &this +} + +// GetBranch returns the Branch field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetBranch() string { + if o == nil || IsNil(o.Branch) { + var ret string + return ret + } + return *o.Branch +} + +// GetBranchOk returns a tuple with the Branch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetBranchOk() (*string, bool) { + if o == nil || IsNil(o.Branch) { + return nil, false + } + return o.Branch, true +} + +// HasBranch returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasBranch() bool { + if o != nil && !IsNil(o.Branch) { + return true + } + + return false +} + +// SetBranch gets a reference to the given string and assigns it to the Branch field. +func (o *PipelineabledomainTriggerParams) SetBranch(v string) { + o.Branch = &v +} + +// GetBranchDest returns the BranchDest field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetBranchDest() string { + if o == nil || IsNil(o.BranchDest) { + var ret string + return ret + } + return *o.BranchDest +} + +// GetBranchDestOk returns a tuple with the BranchDest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetBranchDestOk() (*string, bool) { + if o == nil || IsNil(o.BranchDest) { + return nil, false + } + return o.BranchDest, true +} + +// HasBranchDest returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasBranchDest() bool { + if o != nil && !IsNil(o.BranchDest) { + return true + } + + return false +} + +// SetBranchDest gets a reference to the given string and assigns it to the BranchDest field. +func (o *PipelineabledomainTriggerParams) SetBranchDest(v string) { + o.BranchDest = &v +} + +// GetBranchDestRepoOwner returns the BranchDestRepoOwner field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetBranchDestRepoOwner() string { + if o == nil || IsNil(o.BranchDestRepoOwner) { + var ret string + return ret + } + return *o.BranchDestRepoOwner +} + +// GetBranchDestRepoOwnerOk returns a tuple with the BranchDestRepoOwner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetBranchDestRepoOwnerOk() (*string, bool) { + if o == nil || IsNil(o.BranchDestRepoOwner) { + return nil, false + } + return o.BranchDestRepoOwner, true +} + +// HasBranchDestRepoOwner returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasBranchDestRepoOwner() bool { + if o != nil && !IsNil(o.BranchDestRepoOwner) { + return true + } + + return false +} + +// SetBranchDestRepoOwner gets a reference to the given string and assigns it to the BranchDestRepoOwner field. +func (o *PipelineabledomainTriggerParams) SetBranchDestRepoOwner(v string) { + o.BranchDestRepoOwner = &v +} + +// GetBranchRepoOwner returns the BranchRepoOwner field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetBranchRepoOwner() string { + if o == nil || IsNil(o.BranchRepoOwner) { + var ret string + return ret + } + return *o.BranchRepoOwner +} + +// GetBranchRepoOwnerOk returns a tuple with the BranchRepoOwner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetBranchRepoOwnerOk() (*string, bool) { + if o == nil || IsNil(o.BranchRepoOwner) { + return nil, false + } + return o.BranchRepoOwner, true +} + +// HasBranchRepoOwner returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasBranchRepoOwner() bool { + if o != nil && !IsNil(o.BranchRepoOwner) { + return true + } + + return false +} + +// SetBranchRepoOwner gets a reference to the given string and assigns it to the BranchRepoOwner field. +func (o *PipelineabledomainTriggerParams) SetBranchRepoOwner(v string) { + o.BranchRepoOwner = &v +} + +// GetCommitHash returns the CommitHash field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetCommitHash() string { + if o == nil || IsNil(o.CommitHash) { + var ret string + return ret + } + return *o.CommitHash +} + +// GetCommitHashOk returns a tuple with the CommitHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetCommitHashOk() (*string, bool) { + if o == nil || IsNil(o.CommitHash) { + return nil, false + } + return o.CommitHash, true +} + +// HasCommitHash returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasCommitHash() bool { + if o != nil && !IsNil(o.CommitHash) { + return true + } + + return false +} + +// SetCommitHash gets a reference to the given string and assigns it to the CommitHash field. +func (o *PipelineabledomainTriggerParams) SetCommitHash(v string) { + o.CommitHash = &v +} + +// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetCommitMessage() string { + if o == nil || IsNil(o.CommitMessage) { + var ret string + return ret + } + return *o.CommitMessage +} + +// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetCommitMessageOk() (*string, bool) { + if o == nil || IsNil(o.CommitMessage) { + return nil, false + } + return o.CommitMessage, true +} + +// HasCommitMessage returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasCommitMessage() bool { + if o != nil && !IsNil(o.CommitMessage) { + return true + } + + return false +} + +// SetCommitMessage gets a reference to the given string and assigns it to the CommitMessage field. +func (o *PipelineabledomainTriggerParams) SetCommitMessage(v string) { + o.CommitMessage = &v +} + +// GetEnvironments returns the Environments field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetEnvironments() []PipelineabledomainEnvironments { + if o == nil || IsNil(o.Environments) { + var ret []PipelineabledomainEnvironments + return ret + } + return o.Environments +} + +// GetEnvironmentsOk returns a tuple with the Environments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetEnvironmentsOk() ([]PipelineabledomainEnvironments, bool) { + if o == nil || IsNil(o.Environments) { + return nil, false + } + return o.Environments, true +} + +// HasEnvironments returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasEnvironments() bool { + if o != nil && !IsNil(o.Environments) { + return true + } + + return false +} + +// SetEnvironments gets a reference to the given []PipelineabledomainEnvironments and assigns it to the Environments field. +func (o *PipelineabledomainTriggerParams) SetEnvironments(v []PipelineabledomainEnvironments) { + o.Environments = v +} + +// GetPullRequestAuthor returns the PullRequestAuthor field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetPullRequestAuthor() string { + if o == nil || IsNil(o.PullRequestAuthor) { + var ret string + return ret + } + return *o.PullRequestAuthor +} + +// GetPullRequestAuthorOk returns a tuple with the PullRequestAuthor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetPullRequestAuthorOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestAuthor) { + return nil, false + } + return o.PullRequestAuthor, true +} + +// HasPullRequestAuthor returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasPullRequestAuthor() bool { + if o != nil && !IsNil(o.PullRequestAuthor) { + return true + } + + return false +} + +// SetPullRequestAuthor gets a reference to the given string and assigns it to the PullRequestAuthor field. +func (o *PipelineabledomainTriggerParams) SetPullRequestAuthor(v string) { + o.PullRequestAuthor = &v +} + +// GetPullRequestHeadBranch returns the PullRequestHeadBranch field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetPullRequestHeadBranch() string { + if o == nil || IsNil(o.PullRequestHeadBranch) { + var ret string + return ret + } + return *o.PullRequestHeadBranch +} + +// GetPullRequestHeadBranchOk returns a tuple with the PullRequestHeadBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetPullRequestHeadBranchOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestHeadBranch) { + return nil, false + } + return o.PullRequestHeadBranch, true +} + +// HasPullRequestHeadBranch returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasPullRequestHeadBranch() bool { + if o != nil && !IsNil(o.PullRequestHeadBranch) { + return true + } + + return false +} + +// SetPullRequestHeadBranch gets a reference to the given string and assigns it to the PullRequestHeadBranch field. +func (o *PipelineabledomainTriggerParams) SetPullRequestHeadBranch(v string) { + o.PullRequestHeadBranch = &v +} + +// GetPullRequestId returns the PullRequestId field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetPullRequestId() map[string]interface{} { + if o == nil || IsNil(o.PullRequestId) { + var ret map[string]interface{} + return ret + } + return o.PullRequestId +} + +// GetPullRequestIdOk returns a tuple with the PullRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetPullRequestIdOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.PullRequestId) { + return map[string]interface{}{}, false + } + return o.PullRequestId, true +} + +// HasPullRequestId returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasPullRequestId() bool { + if o != nil && !IsNil(o.PullRequestId) { + return true + } + + return false +} + +// SetPullRequestId gets a reference to the given map[string]interface{} and assigns it to the PullRequestId field. +func (o *PipelineabledomainTriggerParams) SetPullRequestId(v map[string]interface{}) { + o.PullRequestId = v +} + +// GetPullRequestMergeBranch returns the PullRequestMergeBranch field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetPullRequestMergeBranch() string { + if o == nil || IsNil(o.PullRequestMergeBranch) { + var ret string + return ret + } + return *o.PullRequestMergeBranch +} + +// GetPullRequestMergeBranchOk returns a tuple with the PullRequestMergeBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetPullRequestMergeBranchOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestMergeBranch) { + return nil, false + } + return o.PullRequestMergeBranch, true +} + +// HasPullRequestMergeBranch returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasPullRequestMergeBranch() bool { + if o != nil && !IsNil(o.PullRequestMergeBranch) { + return true + } + + return false +} + +// SetPullRequestMergeBranch gets a reference to the given string and assigns it to the PullRequestMergeBranch field. +func (o *PipelineabledomainTriggerParams) SetPullRequestMergeBranch(v string) { + o.PullRequestMergeBranch = &v +} + +// GetPullRequestRepositoryUrl returns the PullRequestRepositoryUrl field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetPullRequestRepositoryUrl() string { + if o == nil || IsNil(o.PullRequestRepositoryUrl) { + var ret string + return ret + } + return *o.PullRequestRepositoryUrl +} + +// GetPullRequestRepositoryUrlOk returns a tuple with the PullRequestRepositoryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetPullRequestRepositoryUrlOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestRepositoryUrl) { + return nil, false + } + return o.PullRequestRepositoryUrl, true +} + +// HasPullRequestRepositoryUrl returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasPullRequestRepositoryUrl() bool { + if o != nil && !IsNil(o.PullRequestRepositoryUrl) { + return true + } + + return false +} + +// SetPullRequestRepositoryUrl gets a reference to the given string and assigns it to the PullRequestRepositoryUrl field. +func (o *PipelineabledomainTriggerParams) SetPullRequestRepositoryUrl(v string) { + o.PullRequestRepositoryUrl = &v +} + +// GetPullRequestUnverifiedMergeBranch returns the PullRequestUnverifiedMergeBranch field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetPullRequestUnverifiedMergeBranch() string { + if o == nil || IsNil(o.PullRequestUnverifiedMergeBranch) { + var ret string + return ret + } + return *o.PullRequestUnverifiedMergeBranch +} + +// GetPullRequestUnverifiedMergeBranchOk returns a tuple with the PullRequestUnverifiedMergeBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetPullRequestUnverifiedMergeBranchOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestUnverifiedMergeBranch) { + return nil, false + } + return o.PullRequestUnverifiedMergeBranch, true +} + +// HasPullRequestUnverifiedMergeBranch returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasPullRequestUnverifiedMergeBranch() bool { + if o != nil && !IsNil(o.PullRequestUnverifiedMergeBranch) { + return true + } + + return false +} + +// SetPullRequestUnverifiedMergeBranch gets a reference to the given string and assigns it to the PullRequestUnverifiedMergeBranch field. +func (o *PipelineabledomainTriggerParams) SetPullRequestUnverifiedMergeBranch(v string) { + o.PullRequestUnverifiedMergeBranch = &v +} + +// GetTag returns the Tag field value if set, zero value otherwise. +func (o *PipelineabledomainTriggerParams) GetTag() map[string]interface{} { + if o == nil || IsNil(o.Tag) { + var ret map[string]interface{} + return ret + } + return o.Tag +} + +// GetTagOk returns a tuple with the Tag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PipelineabledomainTriggerParams) GetTagOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Tag) { + return map[string]interface{}{}, false + } + return o.Tag, true +} + +// HasTag returns a boolean if a field has been set. +func (o *PipelineabledomainTriggerParams) HasTag() bool { + if o != nil && !IsNil(o.Tag) { + return true + } + + return false +} + +// SetTag gets a reference to the given map[string]interface{} and assigns it to the Tag field. +func (o *PipelineabledomainTriggerParams) SetTag(v map[string]interface{}) { + o.Tag = v +} + +func (o PipelineabledomainTriggerParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PipelineabledomainTriggerParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Branch) { + toSerialize["branch"] = o.Branch + } + if !IsNil(o.BranchDest) { + toSerialize["branch_dest"] = o.BranchDest + } + if !IsNil(o.BranchDestRepoOwner) { + toSerialize["branch_dest_repo_owner"] = o.BranchDestRepoOwner + } + if !IsNil(o.BranchRepoOwner) { + toSerialize["branch_repo_owner"] = o.BranchRepoOwner + } + if !IsNil(o.CommitHash) { + toSerialize["commit_hash"] = o.CommitHash + } + if !IsNil(o.CommitMessage) { + toSerialize["commit_message"] = o.CommitMessage + } + if !IsNil(o.Environments) { + toSerialize["environments"] = o.Environments + } + if !IsNil(o.PullRequestAuthor) { + toSerialize["pull_request_author"] = o.PullRequestAuthor + } + if !IsNil(o.PullRequestHeadBranch) { + toSerialize["pull_request_head_branch"] = o.PullRequestHeadBranch + } + if !IsNil(o.PullRequestId) { + toSerialize["pull_request_id"] = o.PullRequestId + } + if !IsNil(o.PullRequestMergeBranch) { + toSerialize["pull_request_merge_branch"] = o.PullRequestMergeBranch + } + if !IsNil(o.PullRequestRepositoryUrl) { + toSerialize["pull_request_repository_url"] = o.PullRequestRepositoryUrl + } + if !IsNil(o.PullRequestUnverifiedMergeBranch) { + toSerialize["pull_request_unverified_merge_branch"] = o.PullRequestUnverifiedMergeBranch + } + if !IsNil(o.Tag) { + toSerialize["tag"] = o.Tag + } + return toSerialize, nil +} + +type NullablePipelineabledomainTriggerParams struct { + value *PipelineabledomainTriggerParams + isSet bool +} + +func (v NullablePipelineabledomainTriggerParams) Get() *PipelineabledomainTriggerParams { + return v.value +} + +func (v *NullablePipelineabledomainTriggerParams) Set(val *PipelineabledomainTriggerParams) { + v.value = val + v.isSet = true +} + +func (v NullablePipelineabledomainTriggerParams) IsSet() bool { + return v.isSet +} + +func (v *NullablePipelineabledomainTriggerParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePipelineabledomainTriggerParams(val *PipelineabledomainTriggerParams) *NullablePipelineabledomainTriggerParams { + return &NullablePipelineabledomainTriggerParams{value: val, isSet: true} +} + +func (v NullablePipelineabledomainTriggerParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePipelineabledomainTriggerParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_service_proxy_error_resp_model.go b/go2/model_service_proxy_error_resp_model.go new file mode 100644 index 0000000..9237e54 --- /dev/null +++ b/go2/model_service_proxy_error_resp_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the ServiceProxyErrorRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceProxyErrorRespModel{} + +// ServiceProxyErrorRespModel struct for ServiceProxyErrorRespModel +type ServiceProxyErrorRespModel struct { + ErrorMsg *string `json:"error_msg,omitempty"` +} + +// NewServiceProxyErrorRespModel instantiates a new ServiceProxyErrorRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceProxyErrorRespModel() *ServiceProxyErrorRespModel { + this := ServiceProxyErrorRespModel{} + return &this +} + +// NewServiceProxyErrorRespModelWithDefaults instantiates a new ServiceProxyErrorRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceProxyErrorRespModelWithDefaults() *ServiceProxyErrorRespModel { + this := ServiceProxyErrorRespModel{} + return &this +} + +// GetErrorMsg returns the ErrorMsg field value if set, zero value otherwise. +func (o *ServiceProxyErrorRespModel) GetErrorMsg() string { + if o == nil || IsNil(o.ErrorMsg) { + var ret string + return ret + } + return *o.ErrorMsg +} + +// GetErrorMsgOk returns a tuple with the ErrorMsg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceProxyErrorRespModel) GetErrorMsgOk() (*string, bool) { + if o == nil || IsNil(o.ErrorMsg) { + return nil, false + } + return o.ErrorMsg, true +} + +// HasErrorMsg returns a boolean if a field has been set. +func (o *ServiceProxyErrorRespModel) HasErrorMsg() bool { + if o != nil && !IsNil(o.ErrorMsg) { + return true + } + + return false +} + +// SetErrorMsg gets a reference to the given string and assigns it to the ErrorMsg field. +func (o *ServiceProxyErrorRespModel) SetErrorMsg(v string) { + o.ErrorMsg = &v +} + +func (o ServiceProxyErrorRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceProxyErrorRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ErrorMsg) { + toSerialize["error_msg"] = o.ErrorMsg + } + return toSerialize, nil +} + +type NullableServiceProxyErrorRespModel struct { + value *ServiceProxyErrorRespModel + isSet bool +} + +func (v NullableServiceProxyErrorRespModel) Get() *ServiceProxyErrorRespModel { + return v.value +} + +func (v *NullableServiceProxyErrorRespModel) Set(val *ServiceProxyErrorRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableServiceProxyErrorRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceProxyErrorRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceProxyErrorRespModel(val *ServiceProxyErrorRespModel) *NullableServiceProxyErrorRespModel { + return &NullableServiceProxyErrorRespModel{value: val, isSet: true} +} + +func (v NullableServiceProxyErrorRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceProxyErrorRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_service_standard_error_resp_model.go b/go2/model_service_standard_error_resp_model.go new file mode 100644 index 0000000..0c70893 --- /dev/null +++ b/go2/model_service_standard_error_resp_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the ServiceStandardErrorRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ServiceStandardErrorRespModel{} + +// ServiceStandardErrorRespModel struct for ServiceStandardErrorRespModel +type ServiceStandardErrorRespModel struct { + Message *string `json:"message,omitempty"` +} + +// NewServiceStandardErrorRespModel instantiates a new ServiceStandardErrorRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewServiceStandardErrorRespModel() *ServiceStandardErrorRespModel { + this := ServiceStandardErrorRespModel{} + return &this +} + +// NewServiceStandardErrorRespModelWithDefaults instantiates a new ServiceStandardErrorRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewServiceStandardErrorRespModelWithDefaults() *ServiceStandardErrorRespModel { + this := ServiceStandardErrorRespModel{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ServiceStandardErrorRespModel) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceStandardErrorRespModel) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ServiceStandardErrorRespModel) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ServiceStandardErrorRespModel) SetMessage(v string) { + o.Message = &v +} + +func (o ServiceStandardErrorRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ServiceStandardErrorRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + return toSerialize, nil +} + +type NullableServiceStandardErrorRespModel struct { + value *ServiceStandardErrorRespModel + isSet bool +} + +func (v NullableServiceStandardErrorRespModel) Get() *ServiceStandardErrorRespModel { + return v.value +} + +func (v *NullableServiceStandardErrorRespModel) Set(val *ServiceStandardErrorRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableServiceStandardErrorRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableServiceStandardErrorRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableServiceStandardErrorRespModel(val *ServiceStandardErrorRespModel) *NullableServiceStandardErrorRespModel { + return &NullableServiceStandardErrorRespModel{value: val, isSet: true} +} + +func (v NullableServiceStandardErrorRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableServiceStandardErrorRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_activity_event_list_response_model.go b/go2/model_v0_activity_event_list_response_model.go new file mode 100644 index 0000000..9c798f5 --- /dev/null +++ b/go2/model_v0_activity_event_list_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ActivityEventListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ActivityEventListResponseModel{} + +// V0ActivityEventListResponseModel struct for V0ActivityEventListResponseModel +type V0ActivityEventListResponseModel struct { + Data []V0ActivityEventResponseItemModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0ActivityEventListResponseModel instantiates a new V0ActivityEventListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ActivityEventListResponseModel() *V0ActivityEventListResponseModel { + this := V0ActivityEventListResponseModel{} + return &this +} + +// NewV0ActivityEventListResponseModelWithDefaults instantiates a new V0ActivityEventListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ActivityEventListResponseModelWithDefaults() *V0ActivityEventListResponseModel { + this := V0ActivityEventListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0ActivityEventListResponseModel) GetData() []V0ActivityEventResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0ActivityEventResponseItemModel + 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 *V0ActivityEventListResponseModel) GetDataOk() ([]V0ActivityEventResponseItemModel, 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 *V0ActivityEventListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0ActivityEventResponseItemModel and assigns it to the Data field. +func (o *V0ActivityEventListResponseModel) SetData(v []V0ActivityEventResponseItemModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0ActivityEventListResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ActivityEventListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0ActivityEventListResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0ActivityEventListResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0ActivityEventListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ActivityEventListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0ActivityEventListResponseModel struct { + value *V0ActivityEventListResponseModel + isSet bool +} + +func (v NullableV0ActivityEventListResponseModel) Get() *V0ActivityEventListResponseModel { + return v.value +} + +func (v *NullableV0ActivityEventListResponseModel) Set(val *V0ActivityEventListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ActivityEventListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ActivityEventListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ActivityEventListResponseModel(val *V0ActivityEventListResponseModel) *NullableV0ActivityEventListResponseModel { + return &NullableV0ActivityEventListResponseModel{value: val, isSet: true} +} + +func (v NullableV0ActivityEventListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ActivityEventListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_activity_event_response_item_model.go b/go2/model_v0_activity_event_response_item_model.go new file mode 100644 index 0000000..c9c57ba --- /dev/null +++ b/go2/model_v0_activity_event_response_item_model.go @@ -0,0 +1,415 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ActivityEventResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ActivityEventResponseItemModel{} + +// V0ActivityEventResponseItemModel struct for V0ActivityEventResponseItemModel +type V0ActivityEventResponseItemModel struct { + CreatedAt *string `json:"created_at,omitempty"` + Description *NullsString `json:"description,omitempty"` + EventIcon *NullsString `json:"event_icon,omitempty"` + EventStype *NullsString `json:"event_stype,omitempty"` + RepositoryAvatarIconUrl *string `json:"repository_avatar_icon_url,omitempty"` + RepositoryTitle *string `json:"repository_title,omitempty"` + Slug *string `json:"slug,omitempty"` + TargetPathString *NullsString `json:"target_path_string,omitempty"` + Title *NullsString `json:"title,omitempty"` +} + +// NewV0ActivityEventResponseItemModel instantiates a new V0ActivityEventResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ActivityEventResponseItemModel() *V0ActivityEventResponseItemModel { + this := V0ActivityEventResponseItemModel{} + return &this +} + +// NewV0ActivityEventResponseItemModelWithDefaults instantiates a new V0ActivityEventResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ActivityEventResponseItemModelWithDefaults() *V0ActivityEventResponseItemModel { + this := V0ActivityEventResponseItemModel{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *V0ActivityEventResponseItemModel) GetCreatedAt() string { + if o == nil || IsNil(o.CreatedAt) { + var ret string + 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 *V0ActivityEventResponseItemModel) GetCreatedAtOk() (*string, 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 *V0ActivityEventResponseItemModel) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. +func (o *V0ActivityEventResponseItemModel) SetCreatedAt(v string) { + o.CreatedAt = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *V0ActivityEventResponseItemModel) GetDescription() NullsString { + if o == nil || IsNil(o.Description) { + var ret NullsString + 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 *V0ActivityEventResponseItemModel) GetDescriptionOk() (*NullsString, 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 *V0ActivityEventResponseItemModel) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullsString and assigns it to the Description field. +func (o *V0ActivityEventResponseItemModel) SetDescription(v NullsString) { + o.Description = &v +} + +// GetEventIcon returns the EventIcon field value if set, zero value otherwise. +func (o *V0ActivityEventResponseItemModel) GetEventIcon() NullsString { + if o == nil || IsNil(o.EventIcon) { + var ret NullsString + return ret + } + return *o.EventIcon +} + +// GetEventIconOk returns a tuple with the EventIcon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ActivityEventResponseItemModel) GetEventIconOk() (*NullsString, bool) { + if o == nil || IsNil(o.EventIcon) { + return nil, false + } + return o.EventIcon, true +} + +// HasEventIcon returns a boolean if a field has been set. +func (o *V0ActivityEventResponseItemModel) HasEventIcon() bool { + if o != nil && !IsNil(o.EventIcon) { + return true + } + + return false +} + +// SetEventIcon gets a reference to the given NullsString and assigns it to the EventIcon field. +func (o *V0ActivityEventResponseItemModel) SetEventIcon(v NullsString) { + o.EventIcon = &v +} + +// GetEventStype returns the EventStype field value if set, zero value otherwise. +func (o *V0ActivityEventResponseItemModel) GetEventStype() NullsString { + if o == nil || IsNil(o.EventStype) { + var ret NullsString + return ret + } + return *o.EventStype +} + +// GetEventStypeOk returns a tuple with the EventStype field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ActivityEventResponseItemModel) GetEventStypeOk() (*NullsString, bool) { + if o == nil || IsNil(o.EventStype) { + return nil, false + } + return o.EventStype, true +} + +// HasEventStype returns a boolean if a field has been set. +func (o *V0ActivityEventResponseItemModel) HasEventStype() bool { + if o != nil && !IsNil(o.EventStype) { + return true + } + + return false +} + +// SetEventStype gets a reference to the given NullsString and assigns it to the EventStype field. +func (o *V0ActivityEventResponseItemModel) SetEventStype(v NullsString) { + o.EventStype = &v +} + +// GetRepositoryAvatarIconUrl returns the RepositoryAvatarIconUrl field value if set, zero value otherwise. +func (o *V0ActivityEventResponseItemModel) GetRepositoryAvatarIconUrl() string { + if o == nil || IsNil(o.RepositoryAvatarIconUrl) { + var ret string + return ret + } + return *o.RepositoryAvatarIconUrl +} + +// GetRepositoryAvatarIconUrlOk returns a tuple with the RepositoryAvatarIconUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ActivityEventResponseItemModel) GetRepositoryAvatarIconUrlOk() (*string, bool) { + if o == nil || IsNil(o.RepositoryAvatarIconUrl) { + return nil, false + } + return o.RepositoryAvatarIconUrl, true +} + +// HasRepositoryAvatarIconUrl returns a boolean if a field has been set. +func (o *V0ActivityEventResponseItemModel) HasRepositoryAvatarIconUrl() bool { + if o != nil && !IsNil(o.RepositoryAvatarIconUrl) { + return true + } + + return false +} + +// SetRepositoryAvatarIconUrl gets a reference to the given string and assigns it to the RepositoryAvatarIconUrl field. +func (o *V0ActivityEventResponseItemModel) SetRepositoryAvatarIconUrl(v string) { + o.RepositoryAvatarIconUrl = &v +} + +// GetRepositoryTitle returns the RepositoryTitle field value if set, zero value otherwise. +func (o *V0ActivityEventResponseItemModel) GetRepositoryTitle() string { + if o == nil || IsNil(o.RepositoryTitle) { + var ret string + return ret + } + return *o.RepositoryTitle +} + +// GetRepositoryTitleOk returns a tuple with the RepositoryTitle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ActivityEventResponseItemModel) GetRepositoryTitleOk() (*string, bool) { + if o == nil || IsNil(o.RepositoryTitle) { + return nil, false + } + return o.RepositoryTitle, true +} + +// HasRepositoryTitle returns a boolean if a field has been set. +func (o *V0ActivityEventResponseItemModel) HasRepositoryTitle() bool { + if o != nil && !IsNil(o.RepositoryTitle) { + return true + } + + return false +} + +// SetRepositoryTitle gets a reference to the given string and assigns it to the RepositoryTitle field. +func (o *V0ActivityEventResponseItemModel) SetRepositoryTitle(v string) { + o.RepositoryTitle = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0ActivityEventResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ActivityEventResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0ActivityEventResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0ActivityEventResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetTargetPathString returns the TargetPathString field value if set, zero value otherwise. +func (o *V0ActivityEventResponseItemModel) GetTargetPathString() NullsString { + if o == nil || IsNil(o.TargetPathString) { + var ret NullsString + return ret + } + return *o.TargetPathString +} + +// GetTargetPathStringOk returns a tuple with the TargetPathString field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ActivityEventResponseItemModel) GetTargetPathStringOk() (*NullsString, bool) { + if o == nil || IsNil(o.TargetPathString) { + return nil, false + } + return o.TargetPathString, true +} + +// HasTargetPathString returns a boolean if a field has been set. +func (o *V0ActivityEventResponseItemModel) HasTargetPathString() bool { + if o != nil && !IsNil(o.TargetPathString) { + return true + } + + return false +} + +// SetTargetPathString gets a reference to the given NullsString and assigns it to the TargetPathString field. +func (o *V0ActivityEventResponseItemModel) SetTargetPathString(v NullsString) { + o.TargetPathString = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *V0ActivityEventResponseItemModel) GetTitle() NullsString { + if o == nil || IsNil(o.Title) { + var ret NullsString + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ActivityEventResponseItemModel) GetTitleOk() (*NullsString, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *V0ActivityEventResponseItemModel) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given NullsString and assigns it to the Title field. +func (o *V0ActivityEventResponseItemModel) SetTitle(v NullsString) { + o.Title = &v +} + +func (o V0ActivityEventResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ActivityEventResponseItemModel) 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.EventIcon) { + toSerialize["event_icon"] = o.EventIcon + } + if !IsNil(o.EventStype) { + toSerialize["event_stype"] = o.EventStype + } + if !IsNil(o.RepositoryAvatarIconUrl) { + toSerialize["repository_avatar_icon_url"] = o.RepositoryAvatarIconUrl + } + if !IsNil(o.RepositoryTitle) { + toSerialize["repository_title"] = o.RepositoryTitle + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.TargetPathString) { + toSerialize["target_path_string"] = o.TargetPathString + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + return toSerialize, nil +} + +type NullableV0ActivityEventResponseItemModel struct { + value *V0ActivityEventResponseItemModel + isSet bool +} + +func (v NullableV0ActivityEventResponseItemModel) Get() *V0ActivityEventResponseItemModel { + return v.value +} + +func (v *NullableV0ActivityEventResponseItemModel) Set(val *V0ActivityEventResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ActivityEventResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ActivityEventResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ActivityEventResponseItemModel(val *V0ActivityEventResponseItemModel) *NullableV0ActivityEventResponseItemModel { + return &NullableV0ActivityEventResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0ActivityEventResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ActivityEventResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_add_on_app_response_item_model.go b/go2/model_v0_add_on_app_response_item_model.go new file mode 100644 index 0000000..21f5dca --- /dev/null +++ b/go2/model_v0_add_on_app_response_item_model.go @@ -0,0 +1,271 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AddOnAppResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AddOnAppResponseItemModel{} + +// V0AddOnAppResponseItemModel struct for V0AddOnAppResponseItemModel +type V0AddOnAppResponseItemModel struct { + Icon *NullsString `json:"icon,omitempty"` + Plan *AddonsPlan `json:"plan,omitempty"` + PlanStartedAt *string `json:"plan_started_at,omitempty"` + Slug *string `json:"slug,omitempty"` + Title *string `json:"title,omitempty"` +} + +// NewV0AddOnAppResponseItemModel instantiates a new V0AddOnAppResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AddOnAppResponseItemModel() *V0AddOnAppResponseItemModel { + this := V0AddOnAppResponseItemModel{} + return &this +} + +// NewV0AddOnAppResponseItemModelWithDefaults instantiates a new V0AddOnAppResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AddOnAppResponseItemModelWithDefaults() *V0AddOnAppResponseItemModel { + this := V0AddOnAppResponseItemModel{} + return &this +} + +// GetIcon returns the Icon field value if set, zero value otherwise. +func (o *V0AddOnAppResponseItemModel) GetIcon() NullsString { + if o == nil || IsNil(o.Icon) { + var ret NullsString + return ret + } + return *o.Icon +} + +// GetIconOk returns a tuple with the Icon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AddOnAppResponseItemModel) GetIconOk() (*NullsString, bool) { + if o == nil || IsNil(o.Icon) { + return nil, false + } + return o.Icon, true +} + +// HasIcon returns a boolean if a field has been set. +func (o *V0AddOnAppResponseItemModel) HasIcon() bool { + if o != nil && !IsNil(o.Icon) { + return true + } + + return false +} + +// SetIcon gets a reference to the given NullsString and assigns it to the Icon field. +func (o *V0AddOnAppResponseItemModel) SetIcon(v NullsString) { + o.Icon = &v +} + +// GetPlan returns the Plan field value if set, zero value otherwise. +func (o *V0AddOnAppResponseItemModel) GetPlan() AddonsPlan { + if o == nil || IsNil(o.Plan) { + var ret AddonsPlan + 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 *V0AddOnAppResponseItemModel) GetPlanOk() (*AddonsPlan, 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 *V0AddOnAppResponseItemModel) HasPlan() bool { + if o != nil && !IsNil(o.Plan) { + return true + } + + return false +} + +// SetPlan gets a reference to the given AddonsPlan and assigns it to the Plan field. +func (o *V0AddOnAppResponseItemModel) SetPlan(v AddonsPlan) { + o.Plan = &v +} + +// GetPlanStartedAt returns the PlanStartedAt field value if set, zero value otherwise. +func (o *V0AddOnAppResponseItemModel) GetPlanStartedAt() string { + if o == nil || IsNil(o.PlanStartedAt) { + var ret string + return ret + } + return *o.PlanStartedAt +} + +// GetPlanStartedAtOk returns a tuple with the PlanStartedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AddOnAppResponseItemModel) GetPlanStartedAtOk() (*string, bool) { + if o == nil || IsNil(o.PlanStartedAt) { + return nil, false + } + return o.PlanStartedAt, true +} + +// HasPlanStartedAt returns a boolean if a field has been set. +func (o *V0AddOnAppResponseItemModel) HasPlanStartedAt() bool { + if o != nil && !IsNil(o.PlanStartedAt) { + return true + } + + return false +} + +// SetPlanStartedAt gets a reference to the given string and assigns it to the PlanStartedAt field. +func (o *V0AddOnAppResponseItemModel) SetPlanStartedAt(v string) { + o.PlanStartedAt = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0AddOnAppResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AddOnAppResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0AddOnAppResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0AddOnAppResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *V0AddOnAppResponseItemModel) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AddOnAppResponseItemModel) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *V0AddOnAppResponseItemModel) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *V0AddOnAppResponseItemModel) SetTitle(v string) { + o.Title = &v +} + +func (o V0AddOnAppResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AddOnAppResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Icon) { + toSerialize["icon"] = o.Icon + } + if !IsNil(o.Plan) { + toSerialize["plan"] = o.Plan + } + if !IsNil(o.PlanStartedAt) { + toSerialize["plan_started_at"] = o.PlanStartedAt + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + return toSerialize, nil +} + +type NullableV0AddOnAppResponseItemModel struct { + value *V0AddOnAppResponseItemModel + isSet bool +} + +func (v NullableV0AddOnAppResponseItemModel) Get() *V0AddOnAppResponseItemModel { + return v.value +} + +func (v *NullableV0AddOnAppResponseItemModel) Set(val *V0AddOnAppResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AddOnAppResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AddOnAppResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AddOnAppResponseItemModel(val *V0AddOnAppResponseItemModel) *NullableV0AddOnAppResponseItemModel { + return &NullableV0AddOnAppResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0AddOnAppResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AddOnAppResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_addons_list_response_model.go b/go2/model_v0_addons_list_response_model.go new file mode 100644 index 0000000..301d6f1 --- /dev/null +++ b/go2/model_v0_addons_list_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AddonsListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AddonsListResponseModel{} + +// V0AddonsListResponseModel struct for V0AddonsListResponseModel +type V0AddonsListResponseModel struct { + Data []AddonsAddon `json:"data,omitempty"` +} + +// NewV0AddonsListResponseModel instantiates a new V0AddonsListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AddonsListResponseModel() *V0AddonsListResponseModel { + this := V0AddonsListResponseModel{} + return &this +} + +// NewV0AddonsListResponseModelWithDefaults instantiates a new V0AddonsListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AddonsListResponseModelWithDefaults() *V0AddonsListResponseModel { + this := V0AddonsListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0AddonsListResponseModel) GetData() []AddonsAddon { + if o == nil || IsNil(o.Data) { + var ret []AddonsAddon + 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 *V0AddonsListResponseModel) GetDataOk() ([]AddonsAddon, 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 *V0AddonsListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []AddonsAddon and assigns it to the Data field. +func (o *V0AddonsListResponseModel) SetData(v []AddonsAddon) { + o.Data = v +} + +func (o V0AddonsListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AddonsListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0AddonsListResponseModel struct { + value *V0AddonsListResponseModel + isSet bool +} + +func (v NullableV0AddonsListResponseModel) Get() *V0AddonsListResponseModel { + return v.value +} + +func (v *NullableV0AddonsListResponseModel) Set(val *V0AddonsListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AddonsListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AddonsListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AddonsListResponseModel(val *V0AddonsListResponseModel) *NullableV0AddonsListResponseModel { + return &NullableV0AddonsListResponseModel{value: val, isSet: true} +} + +func (v NullableV0AddonsListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AddonsListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_addons_show_response_model.go b/go2/model_v0_addons_show_response_model.go new file mode 100644 index 0000000..dba30e9 --- /dev/null +++ b/go2/model_v0_addons_show_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AddonsShowResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AddonsShowResponseModel{} + +// V0AddonsShowResponseModel struct for V0AddonsShowResponseModel +type V0AddonsShowResponseModel struct { + Data *AddonsAddon `json:"data,omitempty"` +} + +// NewV0AddonsShowResponseModel instantiates a new V0AddonsShowResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AddonsShowResponseModel() *V0AddonsShowResponseModel { + this := V0AddonsShowResponseModel{} + return &this +} + +// NewV0AddonsShowResponseModelWithDefaults instantiates a new V0AddonsShowResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AddonsShowResponseModelWithDefaults() *V0AddonsShowResponseModel { + this := V0AddonsShowResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0AddonsShowResponseModel) GetData() AddonsAddon { + if o == nil || IsNil(o.Data) { + var ret AddonsAddon + 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 *V0AddonsShowResponseModel) GetDataOk() (*AddonsAddon, 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 *V0AddonsShowResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given AddonsAddon and assigns it to the Data field. +func (o *V0AddonsShowResponseModel) SetData(v AddonsAddon) { + o.Data = &v +} + +func (o V0AddonsShowResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AddonsShowResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0AddonsShowResponseModel struct { + value *V0AddonsShowResponseModel + isSet bool +} + +func (v NullableV0AddonsShowResponseModel) Get() *V0AddonsShowResponseModel { + return v.value +} + +func (v *NullableV0AddonsShowResponseModel) Set(val *V0AddonsShowResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AddonsShowResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AddonsShowResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AddonsShowResponseModel(val *V0AddonsShowResponseModel) *NullableV0AddonsShowResponseModel { + return &NullableV0AddonsShowResponseModel{value: val, isSet: true} +} + +func (v NullableV0AddonsShowResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AddonsShowResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_android_keystore_file_upload_params.go b/go2/model_v0_android_keystore_file_upload_params.go new file mode 100644 index 0000000..498ff44 --- /dev/null +++ b/go2/model_v0_android_keystore_file_upload_params.go @@ -0,0 +1,304 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0AndroidKeystoreFileUploadParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AndroidKeystoreFileUploadParams{} + +// V0AndroidKeystoreFileUploadParams struct for V0AndroidKeystoreFileUploadParams +type V0AndroidKeystoreFileUploadParams struct { + Alias string `json:"alias"` + KeystoreFileName *string `json:"keystore_file_name,omitempty"` + Password string `json:"password"` + PrivateKeyPassword string `json:"private_key_password"` + UploadFileName string `json:"upload_file_name"` + UploadFileSize int32 `json:"upload_file_size"` +} + +type _V0AndroidKeystoreFileUploadParams V0AndroidKeystoreFileUploadParams + +// NewV0AndroidKeystoreFileUploadParams instantiates a new V0AndroidKeystoreFileUploadParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AndroidKeystoreFileUploadParams(alias string, password string, privateKeyPassword string, uploadFileName string, uploadFileSize int32) *V0AndroidKeystoreFileUploadParams { + this := V0AndroidKeystoreFileUploadParams{} + this.Alias = alias + this.Password = password + this.PrivateKeyPassword = privateKeyPassword + this.UploadFileName = uploadFileName + this.UploadFileSize = uploadFileSize + return &this +} + +// NewV0AndroidKeystoreFileUploadParamsWithDefaults instantiates a new V0AndroidKeystoreFileUploadParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AndroidKeystoreFileUploadParamsWithDefaults() *V0AndroidKeystoreFileUploadParams { + this := V0AndroidKeystoreFileUploadParams{} + return &this +} + +// GetAlias returns the Alias field value +func (o *V0AndroidKeystoreFileUploadParams) GetAlias() string { + if o == nil { + var ret string + return ret + } + + return o.Alias +} + +// GetAliasOk returns a tuple with the Alias field value +// and a boolean to check if the value has been set. +func (o *V0AndroidKeystoreFileUploadParams) GetAliasOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Alias, true +} + +// SetAlias sets field value +func (o *V0AndroidKeystoreFileUploadParams) SetAlias(v string) { + o.Alias = v +} + +// GetKeystoreFileName returns the KeystoreFileName field value if set, zero value otherwise. +func (o *V0AndroidKeystoreFileUploadParams) GetKeystoreFileName() string { + if o == nil || IsNil(o.KeystoreFileName) { + var ret string + return ret + } + return *o.KeystoreFileName +} + +// GetKeystoreFileNameOk returns a tuple with the KeystoreFileName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AndroidKeystoreFileUploadParams) GetKeystoreFileNameOk() (*string, bool) { + if o == nil || IsNil(o.KeystoreFileName) { + return nil, false + } + return o.KeystoreFileName, true +} + +// HasKeystoreFileName returns a boolean if a field has been set. +func (o *V0AndroidKeystoreFileUploadParams) HasKeystoreFileName() bool { + if o != nil && !IsNil(o.KeystoreFileName) { + return true + } + + return false +} + +// SetKeystoreFileName gets a reference to the given string and assigns it to the KeystoreFileName field. +func (o *V0AndroidKeystoreFileUploadParams) SetKeystoreFileName(v string) { + o.KeystoreFileName = &v +} + +// GetPassword returns the Password field value +func (o *V0AndroidKeystoreFileUploadParams) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *V0AndroidKeystoreFileUploadParams) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *V0AndroidKeystoreFileUploadParams) SetPassword(v string) { + o.Password = v +} + +// GetPrivateKeyPassword returns the PrivateKeyPassword field value +func (o *V0AndroidKeystoreFileUploadParams) GetPrivateKeyPassword() string { + if o == nil { + var ret string + return ret + } + + return o.PrivateKeyPassword +} + +// GetPrivateKeyPasswordOk returns a tuple with the PrivateKeyPassword field value +// and a boolean to check if the value has been set. +func (o *V0AndroidKeystoreFileUploadParams) GetPrivateKeyPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PrivateKeyPassword, true +} + +// SetPrivateKeyPassword sets field value +func (o *V0AndroidKeystoreFileUploadParams) SetPrivateKeyPassword(v string) { + o.PrivateKeyPassword = v +} + +// GetUploadFileName returns the UploadFileName field value +func (o *V0AndroidKeystoreFileUploadParams) GetUploadFileName() string { + if o == nil { + var ret string + return ret + } + + return o.UploadFileName +} + +// GetUploadFileNameOk returns a tuple with the UploadFileName field value +// and a boolean to check if the value has been set. +func (o *V0AndroidKeystoreFileUploadParams) GetUploadFileNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UploadFileName, true +} + +// SetUploadFileName sets field value +func (o *V0AndroidKeystoreFileUploadParams) SetUploadFileName(v string) { + o.UploadFileName = v +} + +// GetUploadFileSize returns the UploadFileSize field value +func (o *V0AndroidKeystoreFileUploadParams) GetUploadFileSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.UploadFileSize +} + +// GetUploadFileSizeOk returns a tuple with the UploadFileSize field value +// and a boolean to check if the value has been set. +func (o *V0AndroidKeystoreFileUploadParams) GetUploadFileSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.UploadFileSize, true +} + +// SetUploadFileSize sets field value +func (o *V0AndroidKeystoreFileUploadParams) SetUploadFileSize(v int32) { + o.UploadFileSize = v +} + +func (o V0AndroidKeystoreFileUploadParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AndroidKeystoreFileUploadParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["alias"] = o.Alias + if !IsNil(o.KeystoreFileName) { + toSerialize["keystore_file_name"] = o.KeystoreFileName + } + toSerialize["password"] = o.Password + toSerialize["private_key_password"] = o.PrivateKeyPassword + toSerialize["upload_file_name"] = o.UploadFileName + toSerialize["upload_file_size"] = o.UploadFileSize + return toSerialize, nil +} + +func (o *V0AndroidKeystoreFileUploadParams) UnmarshalJSON(bytes []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{ + "alias", + "password", + "private_key_password", + "upload_file_name", + "upload_file_size", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0AndroidKeystoreFileUploadParams := _V0AndroidKeystoreFileUploadParams{} + + err = json.Unmarshal(bytes, &varV0AndroidKeystoreFileUploadParams) + + if err != nil { + return err + } + + *o = V0AndroidKeystoreFileUploadParams(varV0AndroidKeystoreFileUploadParams) + + return err +} + +type NullableV0AndroidKeystoreFileUploadParams struct { + value *V0AndroidKeystoreFileUploadParams + isSet bool +} + +func (v NullableV0AndroidKeystoreFileUploadParams) Get() *V0AndroidKeystoreFileUploadParams { + return v.value +} + +func (v *NullableV0AndroidKeystoreFileUploadParams) Set(val *V0AndroidKeystoreFileUploadParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0AndroidKeystoreFileUploadParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AndroidKeystoreFileUploadParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AndroidKeystoreFileUploadParams(val *V0AndroidKeystoreFileUploadParams) *NullableV0AndroidKeystoreFileUploadParams { + return &NullableV0AndroidKeystoreFileUploadParams{value: val, isSet: true} +} + +func (v NullableV0AndroidKeystoreFileUploadParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AndroidKeystoreFileUploadParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_add_on_response_item_model.go b/go2/model_v0_app_add_on_response_item_model.go new file mode 100644 index 0000000..155a552 --- /dev/null +++ b/go2/model_v0_app_add_on_response_item_model.go @@ -0,0 +1,595 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppAddOnResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppAddOnResponseItemModel{} + +// V0AppAddOnResponseItemModel struct for V0AppAddOnResponseItemModel +type V0AppAddOnResponseItemModel struct { + Description *string `json:"description,omitempty"` + DocumentationUrl *string `json:"documentation_url,omitempty"` + HasUi *bool `json:"has_ui,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + IsBeta *bool `json:"is_beta,omitempty"` + IsEnabled *bool `json:"is_enabled,omitempty"` + LoginUrl *string `json:"login_url,omitempty"` + Plan *AddonsPlan `json:"plan,omitempty"` + Scopes []string `json:"scopes,omitempty"` + SetupGuide *AddonsSetupGuide `json:"setup_guide,omitempty"` + Summary *string `json:"summary,omitempty"` + TermsUrl *string `json:"terms_url,omitempty"` + Title *string `json:"title,omitempty"` +} + +// NewV0AppAddOnResponseItemModel instantiates a new V0AppAddOnResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppAddOnResponseItemModel() *V0AppAddOnResponseItemModel { + this := V0AppAddOnResponseItemModel{} + return &this +} + +// NewV0AppAddOnResponseItemModelWithDefaults instantiates a new V0AppAddOnResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppAddOnResponseItemModelWithDefaults() *V0AppAddOnResponseItemModel { + this := V0AppAddOnResponseItemModel{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) 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 *V0AppAddOnResponseItemModel) 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 *V0AppAddOnResponseItemModel) 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 *V0AppAddOnResponseItemModel) SetDescription(v string) { + o.Description = &v +} + +// GetDocumentationUrl returns the DocumentationUrl field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) 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 *V0AppAddOnResponseItemModel) 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 *V0AppAddOnResponseItemModel) 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 *V0AppAddOnResponseItemModel) SetDocumentationUrl(v string) { + o.DocumentationUrl = &v +} + +// GetHasUi returns the HasUi field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) GetHasUi() bool { + if o == nil || IsNil(o.HasUi) { + var ret bool + return ret + } + return *o.HasUi +} + +// GetHasUiOk returns a tuple with the HasUi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppAddOnResponseItemModel) GetHasUiOk() (*bool, bool) { + if o == nil || IsNil(o.HasUi) { + return nil, false + } + return o.HasUi, true +} + +// HasHasUi returns a boolean if a field has been set. +func (o *V0AppAddOnResponseItemModel) HasHasUi() bool { + if o != nil && !IsNil(o.HasUi) { + return true + } + + return false +} + +// SetHasUi gets a reference to the given bool and assigns it to the HasUi field. +func (o *V0AppAddOnResponseItemModel) SetHasUi(v bool) { + o.HasUi = &v +} + +// GetIcon returns the Icon field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) GetIcon() string { + if o == nil || IsNil(o.Icon) { + var ret string + return ret + } + return *o.Icon +} + +// GetIconOk returns a tuple with the Icon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppAddOnResponseItemModel) GetIconOk() (*string, bool) { + if o == nil || IsNil(o.Icon) { + return nil, false + } + return o.Icon, true +} + +// HasIcon returns a boolean if a field has been set. +func (o *V0AppAddOnResponseItemModel) HasIcon() bool { + if o != nil && !IsNil(o.Icon) { + return true + } + + return false +} + +// SetIcon gets a reference to the given string and assigns it to the Icon field. +func (o *V0AppAddOnResponseItemModel) SetIcon(v string) { + o.Icon = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) 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 *V0AppAddOnResponseItemModel) 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 *V0AppAddOnResponseItemModel) 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 *V0AppAddOnResponseItemModel) SetId(v string) { + o.Id = &v +} + +// GetIsBeta returns the IsBeta field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) GetIsBeta() bool { + if o == nil || IsNil(o.IsBeta) { + var ret bool + return ret + } + return *o.IsBeta +} + +// GetIsBetaOk returns a tuple with the IsBeta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppAddOnResponseItemModel) GetIsBetaOk() (*bool, bool) { + if o == nil || IsNil(o.IsBeta) { + return nil, false + } + return o.IsBeta, true +} + +// HasIsBeta returns a boolean if a field has been set. +func (o *V0AppAddOnResponseItemModel) HasIsBeta() bool { + if o != nil && !IsNil(o.IsBeta) { + return true + } + + return false +} + +// SetIsBeta gets a reference to the given bool and assigns it to the IsBeta field. +func (o *V0AppAddOnResponseItemModel) SetIsBeta(v bool) { + o.IsBeta = &v +} + +// GetIsEnabled returns the IsEnabled field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) GetIsEnabled() bool { + if o == nil || IsNil(o.IsEnabled) { + var ret bool + return ret + } + return *o.IsEnabled +} + +// GetIsEnabledOk returns a tuple with the IsEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppAddOnResponseItemModel) GetIsEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.IsEnabled) { + return nil, false + } + return o.IsEnabled, true +} + +// HasIsEnabled returns a boolean if a field has been set. +func (o *V0AppAddOnResponseItemModel) HasIsEnabled() bool { + if o != nil && !IsNil(o.IsEnabled) { + return true + } + + return false +} + +// SetIsEnabled gets a reference to the given bool and assigns it to the IsEnabled field. +func (o *V0AppAddOnResponseItemModel) SetIsEnabled(v bool) { + o.IsEnabled = &v +} + +// GetLoginUrl returns the LoginUrl field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) GetLoginUrl() string { + if o == nil || IsNil(o.LoginUrl) { + var ret string + return ret + } + return *o.LoginUrl +} + +// GetLoginUrlOk returns a tuple with the LoginUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppAddOnResponseItemModel) GetLoginUrlOk() (*string, bool) { + if o == nil || IsNil(o.LoginUrl) { + return nil, false + } + return o.LoginUrl, true +} + +// HasLoginUrl returns a boolean if a field has been set. +func (o *V0AppAddOnResponseItemModel) HasLoginUrl() bool { + if o != nil && !IsNil(o.LoginUrl) { + return true + } + + return false +} + +// SetLoginUrl gets a reference to the given string and assigns it to the LoginUrl field. +func (o *V0AppAddOnResponseItemModel) SetLoginUrl(v string) { + o.LoginUrl = &v +} + +// GetPlan returns the Plan field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) GetPlan() AddonsPlan { + if o == nil || IsNil(o.Plan) { + var ret AddonsPlan + 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 *V0AppAddOnResponseItemModel) GetPlanOk() (*AddonsPlan, 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 *V0AppAddOnResponseItemModel) HasPlan() bool { + if o != nil && !IsNil(o.Plan) { + return true + } + + return false +} + +// SetPlan gets a reference to the given AddonsPlan and assigns it to the Plan field. +func (o *V0AppAddOnResponseItemModel) SetPlan(v AddonsPlan) { + o.Plan = &v +} + +// GetScopes returns the Scopes field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) GetScopes() []string { + if o == nil || IsNil(o.Scopes) { + var ret []string + return ret + } + return o.Scopes +} + +// GetScopesOk returns a tuple with the Scopes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppAddOnResponseItemModel) GetScopesOk() ([]string, bool) { + if o == nil || IsNil(o.Scopes) { + return nil, false + } + return o.Scopes, true +} + +// HasScopes returns a boolean if a field has been set. +func (o *V0AppAddOnResponseItemModel) HasScopes() bool { + if o != nil && !IsNil(o.Scopes) { + return true + } + + return false +} + +// SetScopes gets a reference to the given []string and assigns it to the Scopes field. +func (o *V0AppAddOnResponseItemModel) SetScopes(v []string) { + o.Scopes = v +} + +// GetSetupGuide returns the SetupGuide field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) GetSetupGuide() AddonsSetupGuide { + if o == nil || IsNil(o.SetupGuide) { + var ret AddonsSetupGuide + return ret + } + return *o.SetupGuide +} + +// GetSetupGuideOk returns a tuple with the SetupGuide field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppAddOnResponseItemModel) GetSetupGuideOk() (*AddonsSetupGuide, bool) { + if o == nil || IsNil(o.SetupGuide) { + return nil, false + } + return o.SetupGuide, true +} + +// HasSetupGuide returns a boolean if a field has been set. +func (o *V0AppAddOnResponseItemModel) HasSetupGuide() bool { + if o != nil && !IsNil(o.SetupGuide) { + return true + } + + return false +} + +// SetSetupGuide gets a reference to the given AddonsSetupGuide and assigns it to the SetupGuide field. +func (o *V0AppAddOnResponseItemModel) SetSetupGuide(v AddonsSetupGuide) { + o.SetupGuide = &v +} + +// GetSummary returns the Summary field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) GetSummary() string { + if o == nil || IsNil(o.Summary) { + var ret string + return ret + } + return *o.Summary +} + +// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppAddOnResponseItemModel) GetSummaryOk() (*string, bool) { + if o == nil || IsNil(o.Summary) { + return nil, false + } + return o.Summary, true +} + +// HasSummary returns a boolean if a field has been set. +func (o *V0AppAddOnResponseItemModel) HasSummary() bool { + if o != nil && !IsNil(o.Summary) { + return true + } + + return false +} + +// SetSummary gets a reference to the given string and assigns it to the Summary field. +func (o *V0AppAddOnResponseItemModel) SetSummary(v string) { + o.Summary = &v +} + +// GetTermsUrl returns the TermsUrl field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) GetTermsUrl() string { + if o == nil || IsNil(o.TermsUrl) { + var ret string + return ret + } + return *o.TermsUrl +} + +// GetTermsUrlOk returns a tuple with the TermsUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppAddOnResponseItemModel) GetTermsUrlOk() (*string, bool) { + if o == nil || IsNil(o.TermsUrl) { + return nil, false + } + return o.TermsUrl, true +} + +// HasTermsUrl returns a boolean if a field has been set. +func (o *V0AppAddOnResponseItemModel) HasTermsUrl() bool { + if o != nil && !IsNil(o.TermsUrl) { + return true + } + + return false +} + +// SetTermsUrl gets a reference to the given string and assigns it to the TermsUrl field. +func (o *V0AppAddOnResponseItemModel) SetTermsUrl(v string) { + o.TermsUrl = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *V0AppAddOnResponseItemModel) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppAddOnResponseItemModel) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *V0AppAddOnResponseItemModel) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *V0AppAddOnResponseItemModel) SetTitle(v string) { + o.Title = &v +} + +func (o V0AppAddOnResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppAddOnResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DocumentationUrl) { + toSerialize["documentation_url"] = o.DocumentationUrl + } + if !IsNil(o.HasUi) { + toSerialize["has_ui"] = o.HasUi + } + if !IsNil(o.Icon) { + toSerialize["icon"] = o.Icon + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.IsBeta) { + toSerialize["is_beta"] = o.IsBeta + } + if !IsNil(o.IsEnabled) { + toSerialize["is_enabled"] = o.IsEnabled + } + if !IsNil(o.LoginUrl) { + toSerialize["login_url"] = o.LoginUrl + } + if !IsNil(o.Plan) { + toSerialize["plan"] = o.Plan + } + if !IsNil(o.Scopes) { + toSerialize["scopes"] = o.Scopes + } + if !IsNil(o.SetupGuide) { + toSerialize["setup_guide"] = o.SetupGuide + } + if !IsNil(o.Summary) { + toSerialize["summary"] = o.Summary + } + if !IsNil(o.TermsUrl) { + toSerialize["terms_url"] = o.TermsUrl + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + return toSerialize, nil +} + +type NullableV0AppAddOnResponseItemModel struct { + value *V0AppAddOnResponseItemModel + isSet bool +} + +func (v NullableV0AppAddOnResponseItemModel) Get() *V0AppAddOnResponseItemModel { + return v.value +} + +func (v *NullableV0AppAddOnResponseItemModel) Set(val *V0AppAddOnResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppAddOnResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppAddOnResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppAddOnResponseItemModel(val *V0AppAddOnResponseItemModel) *NullableV0AppAddOnResponseItemModel { + return &NullableV0AppAddOnResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0AppAddOnResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppAddOnResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_add_ons_list_response_model.go b/go2/model_v0_app_add_ons_list_response_model.go new file mode 100644 index 0000000..8272a8d --- /dev/null +++ b/go2/model_v0_app_add_ons_list_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppAddOnsListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppAddOnsListResponseModel{} + +// V0AppAddOnsListResponseModel struct for V0AppAddOnsListResponseModel +type V0AppAddOnsListResponseModel struct { + Data []V0AppAddOnResponseItemModel `json:"data,omitempty"` +} + +// NewV0AppAddOnsListResponseModel instantiates a new V0AppAddOnsListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppAddOnsListResponseModel() *V0AppAddOnsListResponseModel { + this := V0AppAddOnsListResponseModel{} + return &this +} + +// NewV0AppAddOnsListResponseModelWithDefaults instantiates a new V0AppAddOnsListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppAddOnsListResponseModelWithDefaults() *V0AppAddOnsListResponseModel { + this := V0AppAddOnsListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0AppAddOnsListResponseModel) GetData() []V0AppAddOnResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0AppAddOnResponseItemModel + 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 *V0AppAddOnsListResponseModel) GetDataOk() ([]V0AppAddOnResponseItemModel, 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 *V0AppAddOnsListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0AppAddOnResponseItemModel and assigns it to the Data field. +func (o *V0AppAddOnsListResponseModel) SetData(v []V0AppAddOnResponseItemModel) { + o.Data = v +} + +func (o V0AppAddOnsListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppAddOnsListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0AppAddOnsListResponseModel struct { + value *V0AppAddOnsListResponseModel + isSet bool +} + +func (v NullableV0AppAddOnsListResponseModel) Get() *V0AppAddOnsListResponseModel { + return v.value +} + +func (v *NullableV0AppAddOnsListResponseModel) Set(val *V0AppAddOnsListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppAddOnsListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppAddOnsListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppAddOnsListResponseModel(val *V0AppAddOnsListResponseModel) *NullableV0AppAddOnsListResponseModel { + return &NullableV0AppAddOnsListResponseModel{value: val, isSet: true} +} + +func (v NullableV0AppAddOnsListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppAddOnsListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_config_request_param.go b/go2/model_v0_app_config_request_param.go new file mode 100644 index 0000000..c37bab2 --- /dev/null +++ b/go2/model_v0_app_config_request_param.go @@ -0,0 +1,157 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0AppConfigRequestParam type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppConfigRequestParam{} + +// V0AppConfigRequestParam struct for V0AppConfigRequestParam +type V0AppConfigRequestParam struct { + // The bitrise.yml of your application, defined in JSON format + AppConfigDatastoreYaml string `json:"app_config_datastore_yaml"` +} + +type _V0AppConfigRequestParam V0AppConfigRequestParam + +// NewV0AppConfigRequestParam instantiates a new V0AppConfigRequestParam object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppConfigRequestParam(appConfigDatastoreYaml string) *V0AppConfigRequestParam { + this := V0AppConfigRequestParam{} + this.AppConfigDatastoreYaml = appConfigDatastoreYaml + return &this +} + +// NewV0AppConfigRequestParamWithDefaults instantiates a new V0AppConfigRequestParam object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppConfigRequestParamWithDefaults() *V0AppConfigRequestParam { + this := V0AppConfigRequestParam{} + return &this +} + +// GetAppConfigDatastoreYaml returns the AppConfigDatastoreYaml field value +func (o *V0AppConfigRequestParam) GetAppConfigDatastoreYaml() string { + if o == nil { + var ret string + return ret + } + + return o.AppConfigDatastoreYaml +} + +// GetAppConfigDatastoreYamlOk returns a tuple with the AppConfigDatastoreYaml field value +// and a boolean to check if the value has been set. +func (o *V0AppConfigRequestParam) GetAppConfigDatastoreYamlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AppConfigDatastoreYaml, true +} + +// SetAppConfigDatastoreYaml sets field value +func (o *V0AppConfigRequestParam) SetAppConfigDatastoreYaml(v string) { + o.AppConfigDatastoreYaml = v +} + +func (o V0AppConfigRequestParam) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppConfigRequestParam) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["app_config_datastore_yaml"] = o.AppConfigDatastoreYaml + return toSerialize, nil +} + +func (o *V0AppConfigRequestParam) UnmarshalJSON(bytes []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{ + "app_config_datastore_yaml", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0AppConfigRequestParam := _V0AppConfigRequestParam{} + + err = json.Unmarshal(bytes, &varV0AppConfigRequestParam) + + if err != nil { + return err + } + + *o = V0AppConfigRequestParam(varV0AppConfigRequestParam) + + return err +} + +type NullableV0AppConfigRequestParam struct { + value *V0AppConfigRequestParam + isSet bool +} + +func (v NullableV0AppConfigRequestParam) Get() *V0AppConfigRequestParam { + return v.value +} + +func (v *NullableV0AppConfigRequestParam) Set(val *V0AppConfigRequestParam) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppConfigRequestParam) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppConfigRequestParam) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppConfigRequestParam(val *V0AppConfigRequestParam) *NullableV0AppConfigRequestParam { + return &NullableV0AppConfigRequestParam{value: val, isSet: true} +} + +func (v NullableV0AppConfigRequestParam) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppConfigRequestParam) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_delete_resp_model.go b/go2/model_v0_app_delete_resp_model.go new file mode 100644 index 0000000..25500ec --- /dev/null +++ b/go2/model_v0_app_delete_resp_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppDeleteRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppDeleteRespModel{} + +// V0AppDeleteRespModel struct for V0AppDeleteRespModel +type V0AppDeleteRespModel struct { + Msg *string `json:"msg,omitempty"` +} + +// NewV0AppDeleteRespModel instantiates a new V0AppDeleteRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppDeleteRespModel() *V0AppDeleteRespModel { + this := V0AppDeleteRespModel{} + return &this +} + +// NewV0AppDeleteRespModelWithDefaults instantiates a new V0AppDeleteRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppDeleteRespModelWithDefaults() *V0AppDeleteRespModel { + this := V0AppDeleteRespModel{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *V0AppDeleteRespModel) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppDeleteRespModel) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *V0AppDeleteRespModel) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *V0AppDeleteRespModel) SetMsg(v string) { + o.Msg = &v +} + +func (o V0AppDeleteRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppDeleteRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + return toSerialize, nil +} + +type NullableV0AppDeleteRespModel struct { + value *V0AppDeleteRespModel + isSet bool +} + +func (v NullableV0AppDeleteRespModel) Get() *V0AppDeleteRespModel { + return v.value +} + +func (v *NullableV0AppDeleteRespModel) Set(val *V0AppDeleteRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppDeleteRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppDeleteRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppDeleteRespModel(val *V0AppDeleteRespModel) *NullableV0AppDeleteRespModel { + return &NullableV0AppDeleteRespModel{value: val, isSet: true} +} + +func (v NullableV0AppDeleteRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppDeleteRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_finish_params.go b/go2/model_v0_app_finish_params.go new file mode 100644 index 0000000..5ac99a3 --- /dev/null +++ b/go2/model_v0_app_finish_params.go @@ -0,0 +1,334 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0AppFinishParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppFinishParams{} + +// V0AppFinishParams struct for V0AppFinishParams +type V0AppFinishParams struct { + // Which config to use. Specify a config that matches your project type (e. g. `default-android-config` for `android`, etc.). If not speficied, default value is `other-config`. The available values are `default-android-config`, `default-cordova-config`, `default-fastlane-android-config`, `default-fastlane-ios-config`, `flutter-config-notest-app-android`, `flutter-config-notest-app-both`, `flutter-config-notest-app-ios`, `flutter-config-test-app-android`, `flutter-config-test-app-both`, `flutter-config-test-app-ios`, `default-ionic-config`, `default-ios-config`, `default-macos-config`, `default-react-native-config`, `default-react-native-expo-config`, `other-config`. + Config *string `json:"config,omitempty"` + // Environment variables for the application workflows, e.g. {\"env1\":\"val1\",\"env2\":\"val2\"} + Envs *map[string]string `json:"envs,omitempty"` + // config specification mode, has to be specified with `manual` value + Mode *string `json:"mode,omitempty"` + // The slug of the organization, who will be the owner of the application, if it's not specified, then the authenticated user will be the owner + OrganizationSlug *string `json:"organization_slug,omitempty"` + // The type of your project (`android`, `ios`, `cordova`, `other`, `xamarin`, `macos`, `ionic`, `react-native`, `fastlane`, null) + ProjectType string `json:"project_type"` + // The id of the stack the application will be built (these can be found in the [system report](https://github.com/bitrise-io/bitrise.io/tree/master/system_reports) file names) + StackId string `json:"stack_id"` +} + +type _V0AppFinishParams V0AppFinishParams + +// NewV0AppFinishParams instantiates a new V0AppFinishParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppFinishParams(projectType string, stackId string) *V0AppFinishParams { + this := V0AppFinishParams{} + this.ProjectType = projectType + this.StackId = stackId + return &this +} + +// NewV0AppFinishParamsWithDefaults instantiates a new V0AppFinishParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppFinishParamsWithDefaults() *V0AppFinishParams { + this := V0AppFinishParams{} + return &this +} + +// GetConfig returns the Config field value if set, zero value otherwise. +func (o *V0AppFinishParams) GetConfig() string { + if o == nil || IsNil(o.Config) { + var ret string + return ret + } + return *o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppFinishParams) GetConfigOk() (*string, bool) { + if o == nil || IsNil(o.Config) { + return nil, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *V0AppFinishParams) HasConfig() bool { + if o != nil && !IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given string and assigns it to the Config field. +func (o *V0AppFinishParams) SetConfig(v string) { + o.Config = &v +} + +// GetEnvs returns the Envs field value if set, zero value otherwise. +func (o *V0AppFinishParams) GetEnvs() map[string]string { + if o == nil || IsNil(o.Envs) { + var ret map[string]string + return ret + } + return *o.Envs +} + +// GetEnvsOk returns a tuple with the Envs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppFinishParams) GetEnvsOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Envs) { + return nil, false + } + return o.Envs, true +} + +// HasEnvs returns a boolean if a field has been set. +func (o *V0AppFinishParams) HasEnvs() bool { + if o != nil && !IsNil(o.Envs) { + return true + } + + return false +} + +// SetEnvs gets a reference to the given map[string]string and assigns it to the Envs field. +func (o *V0AppFinishParams) SetEnvs(v map[string]string) { + o.Envs = &v +} + +// GetMode returns the Mode field value if set, zero value otherwise. +func (o *V0AppFinishParams) 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 *V0AppFinishParams) 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 *V0AppFinishParams) 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 *V0AppFinishParams) SetMode(v string) { + o.Mode = &v +} + +// GetOrganizationSlug returns the OrganizationSlug field value if set, zero value otherwise. +func (o *V0AppFinishParams) GetOrganizationSlug() string { + if o == nil || IsNil(o.OrganizationSlug) { + var ret string + return ret + } + return *o.OrganizationSlug +} + +// GetOrganizationSlugOk returns a tuple with the OrganizationSlug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppFinishParams) GetOrganizationSlugOk() (*string, bool) { + if o == nil || IsNil(o.OrganizationSlug) { + return nil, false + } + return o.OrganizationSlug, true +} + +// HasOrganizationSlug returns a boolean if a field has been set. +func (o *V0AppFinishParams) HasOrganizationSlug() bool { + if o != nil && !IsNil(o.OrganizationSlug) { + return true + } + + return false +} + +// SetOrganizationSlug gets a reference to the given string and assigns it to the OrganizationSlug field. +func (o *V0AppFinishParams) SetOrganizationSlug(v string) { + o.OrganizationSlug = &v +} + +// GetProjectType returns the ProjectType field value +func (o *V0AppFinishParams) GetProjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ProjectType +} + +// GetProjectTypeOk returns a tuple with the ProjectType field value +// and a boolean to check if the value has been set. +func (o *V0AppFinishParams) GetProjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProjectType, true +} + +// SetProjectType sets field value +func (o *V0AppFinishParams) SetProjectType(v string) { + o.ProjectType = v +} + +// GetStackId returns the StackId field value +func (o *V0AppFinishParams) GetStackId() string { + if o == nil { + var ret string + return ret + } + + return o.StackId +} + +// GetStackIdOk returns a tuple with the StackId field value +// and a boolean to check if the value has been set. +func (o *V0AppFinishParams) GetStackIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.StackId, true +} + +// SetStackId sets field value +func (o *V0AppFinishParams) SetStackId(v string) { + o.StackId = v +} + +func (o V0AppFinishParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppFinishParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Config) { + toSerialize["config"] = o.Config + } + if !IsNil(o.Envs) { + toSerialize["envs"] = o.Envs + } + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } + if !IsNil(o.OrganizationSlug) { + toSerialize["organization_slug"] = o.OrganizationSlug + } + toSerialize["project_type"] = o.ProjectType + toSerialize["stack_id"] = o.StackId + return toSerialize, nil +} + +func (o *V0AppFinishParams) UnmarshalJSON(bytes []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{ + "project_type", + "stack_id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0AppFinishParams := _V0AppFinishParams{} + + err = json.Unmarshal(bytes, &varV0AppFinishParams) + + if err != nil { + return err + } + + *o = V0AppFinishParams(varV0AppFinishParams) + + return err +} + +type NullableV0AppFinishParams struct { + value *V0AppFinishParams + isSet bool +} + +func (v NullableV0AppFinishParams) Get() *V0AppFinishParams { + return v.value +} + +func (v *NullableV0AppFinishParams) Set(val *V0AppFinishParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppFinishParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppFinishParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppFinishParams(val *V0AppFinishParams) *NullableV0AppFinishParams { + return &NullableV0AppFinishParams{value: val, isSet: true} +} + +func (v NullableV0AppFinishParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppFinishParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_finish_resp_model.go b/go2/model_v0_app_finish_resp_model.go new file mode 100644 index 0000000..cec4749 --- /dev/null +++ b/go2/model_v0_app_finish_resp_model.go @@ -0,0 +1,235 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppFinishRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppFinishRespModel{} + +// V0AppFinishRespModel struct for V0AppFinishRespModel +type V0AppFinishRespModel struct { + BranchName *string `json:"branch_name,omitempty"` + BuildTriggerToken *string `json:"build_trigger_token,omitempty"` + IsWebhookAutoRegSupported *bool `json:"is_webhook_auto_reg_supported,omitempty"` + Status *string `json:"status,omitempty"` +} + +// NewV0AppFinishRespModel instantiates a new V0AppFinishRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppFinishRespModel() *V0AppFinishRespModel { + this := V0AppFinishRespModel{} + return &this +} + +// NewV0AppFinishRespModelWithDefaults instantiates a new V0AppFinishRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppFinishRespModelWithDefaults() *V0AppFinishRespModel { + this := V0AppFinishRespModel{} + return &this +} + +// GetBranchName returns the BranchName field value if set, zero value otherwise. +func (o *V0AppFinishRespModel) GetBranchName() string { + if o == nil || IsNil(o.BranchName) { + var ret string + return ret + } + return *o.BranchName +} + +// GetBranchNameOk returns a tuple with the BranchName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppFinishRespModel) GetBranchNameOk() (*string, bool) { + if o == nil || IsNil(o.BranchName) { + return nil, false + } + return o.BranchName, true +} + +// HasBranchName returns a boolean if a field has been set. +func (o *V0AppFinishRespModel) HasBranchName() bool { + if o != nil && !IsNil(o.BranchName) { + return true + } + + return false +} + +// SetBranchName gets a reference to the given string and assigns it to the BranchName field. +func (o *V0AppFinishRespModel) SetBranchName(v string) { + o.BranchName = &v +} + +// GetBuildTriggerToken returns the BuildTriggerToken field value if set, zero value otherwise. +func (o *V0AppFinishRespModel) GetBuildTriggerToken() string { + if o == nil || IsNil(o.BuildTriggerToken) { + var ret string + return ret + } + return *o.BuildTriggerToken +} + +// GetBuildTriggerTokenOk returns a tuple with the BuildTriggerToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppFinishRespModel) GetBuildTriggerTokenOk() (*string, bool) { + if o == nil || IsNil(o.BuildTriggerToken) { + return nil, false + } + return o.BuildTriggerToken, true +} + +// HasBuildTriggerToken returns a boolean if a field has been set. +func (o *V0AppFinishRespModel) HasBuildTriggerToken() bool { + if o != nil && !IsNil(o.BuildTriggerToken) { + return true + } + + return false +} + +// SetBuildTriggerToken gets a reference to the given string and assigns it to the BuildTriggerToken field. +func (o *V0AppFinishRespModel) SetBuildTriggerToken(v string) { + o.BuildTriggerToken = &v +} + +// GetIsWebhookAutoRegSupported returns the IsWebhookAutoRegSupported field value if set, zero value otherwise. +func (o *V0AppFinishRespModel) GetIsWebhookAutoRegSupported() bool { + if o == nil || IsNil(o.IsWebhookAutoRegSupported) { + var ret bool + return ret + } + return *o.IsWebhookAutoRegSupported +} + +// GetIsWebhookAutoRegSupportedOk returns a tuple with the IsWebhookAutoRegSupported field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppFinishRespModel) GetIsWebhookAutoRegSupportedOk() (*bool, bool) { + if o == nil || IsNil(o.IsWebhookAutoRegSupported) { + return nil, false + } + return o.IsWebhookAutoRegSupported, true +} + +// HasIsWebhookAutoRegSupported returns a boolean if a field has been set. +func (o *V0AppFinishRespModel) HasIsWebhookAutoRegSupported() bool { + if o != nil && !IsNil(o.IsWebhookAutoRegSupported) { + return true + } + + return false +} + +// SetIsWebhookAutoRegSupported gets a reference to the given bool and assigns it to the IsWebhookAutoRegSupported field. +func (o *V0AppFinishRespModel) SetIsWebhookAutoRegSupported(v bool) { + o.IsWebhookAutoRegSupported = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0AppFinishRespModel) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppFinishRespModel) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0AppFinishRespModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V0AppFinishRespModel) SetStatus(v string) { + o.Status = &v +} + +func (o V0AppFinishRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppFinishRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BranchName) { + toSerialize["branch_name"] = o.BranchName + } + if !IsNil(o.BuildTriggerToken) { + toSerialize["build_trigger_token"] = o.BuildTriggerToken + } + if !IsNil(o.IsWebhookAutoRegSupported) { + toSerialize["is_webhook_auto_reg_supported"] = o.IsWebhookAutoRegSupported + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableV0AppFinishRespModel struct { + value *V0AppFinishRespModel + isSet bool +} + +func (v NullableV0AppFinishRespModel) Get() *V0AppFinishRespModel { + return v.value +} + +func (v *NullableV0AppFinishRespModel) Set(val *V0AppFinishRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppFinishRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppFinishRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppFinishRespModel(val *V0AppFinishRespModel) *NullableV0AppFinishRespModel { + return &NullableV0AppFinishRespModel{value: val, isSet: true} +} + +func (v NullableV0AppFinishRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppFinishRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_list_response_model.go b/go2/model_v0_app_list_response_model.go new file mode 100644 index 0000000..1f1699a --- /dev/null +++ b/go2/model_v0_app_list_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppListResponseModel{} + +// V0AppListResponseModel struct for V0AppListResponseModel +type V0AppListResponseModel struct { + Data []V0AppResponseItemModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0AppListResponseModel instantiates a new V0AppListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppListResponseModel() *V0AppListResponseModel { + this := V0AppListResponseModel{} + return &this +} + +// NewV0AppListResponseModelWithDefaults instantiates a new V0AppListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppListResponseModelWithDefaults() *V0AppListResponseModel { + this := V0AppListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0AppListResponseModel) GetData() []V0AppResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0AppResponseItemModel + 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 *V0AppListResponseModel) GetDataOk() ([]V0AppResponseItemModel, 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 *V0AppListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0AppResponseItemModel and assigns it to the Data field. +func (o *V0AppListResponseModel) SetData(v []V0AppResponseItemModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0AppListResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0AppListResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0AppListResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0AppListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0AppListResponseModel struct { + value *V0AppListResponseModel + isSet bool +} + +func (v NullableV0AppListResponseModel) Get() *V0AppListResponseModel { + return v.value +} + +func (v *NullableV0AppListResponseModel) Set(val *V0AppListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppListResponseModel(val *V0AppListResponseModel) *NullableV0AppListResponseModel { + return &NullableV0AppListResponseModel{value: val, isSet: true} +} + +func (v NullableV0AppListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_notification_settings_params.go b/go2/model_v0_app_notification_settings_params.go new file mode 100644 index 0000000..77b2bdc --- /dev/null +++ b/go2/model_v0_app_notification_settings_params.go @@ -0,0 +1,165 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppNotificationSettingsParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppNotificationSettingsParams{} + +// V0AppNotificationSettingsParams struct for V0AppNotificationSettingsParams +type V0AppNotificationSettingsParams struct { + // When should Bitrise send notifications for the users on build failure? Possible values: always, never, change + OnFailure *string `json:"on_failure,omitempty"` + // When should Bitrise send notifications for the users on build success? Possible values: always, never, change + OnSuccess *string `json:"on_success,omitempty"` +} + +// NewV0AppNotificationSettingsParams instantiates a new V0AppNotificationSettingsParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppNotificationSettingsParams() *V0AppNotificationSettingsParams { + this := V0AppNotificationSettingsParams{} + return &this +} + +// NewV0AppNotificationSettingsParamsWithDefaults instantiates a new V0AppNotificationSettingsParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppNotificationSettingsParamsWithDefaults() *V0AppNotificationSettingsParams { + this := V0AppNotificationSettingsParams{} + return &this +} + +// GetOnFailure returns the OnFailure field value if set, zero value otherwise. +func (o *V0AppNotificationSettingsParams) GetOnFailure() string { + if o == nil || IsNil(o.OnFailure) { + var ret string + return ret + } + return *o.OnFailure +} + +// GetOnFailureOk returns a tuple with the OnFailure field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppNotificationSettingsParams) GetOnFailureOk() (*string, bool) { + if o == nil || IsNil(o.OnFailure) { + return nil, false + } + return o.OnFailure, true +} + +// HasOnFailure returns a boolean if a field has been set. +func (o *V0AppNotificationSettingsParams) HasOnFailure() bool { + if o != nil && !IsNil(o.OnFailure) { + return true + } + + return false +} + +// SetOnFailure gets a reference to the given string and assigns it to the OnFailure field. +func (o *V0AppNotificationSettingsParams) SetOnFailure(v string) { + o.OnFailure = &v +} + +// GetOnSuccess returns the OnSuccess field value if set, zero value otherwise. +func (o *V0AppNotificationSettingsParams) GetOnSuccess() string { + if o == nil || IsNil(o.OnSuccess) { + var ret string + return ret + } + return *o.OnSuccess +} + +// GetOnSuccessOk returns a tuple with the OnSuccess field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppNotificationSettingsParams) GetOnSuccessOk() (*string, bool) { + if o == nil || IsNil(o.OnSuccess) { + return nil, false + } + return o.OnSuccess, true +} + +// HasOnSuccess returns a boolean if a field has been set. +func (o *V0AppNotificationSettingsParams) HasOnSuccess() bool { + if o != nil && !IsNil(o.OnSuccess) { + return true + } + + return false +} + +// SetOnSuccess gets a reference to the given string and assigns it to the OnSuccess field. +func (o *V0AppNotificationSettingsParams) SetOnSuccess(v string) { + o.OnSuccess = &v +} + +func (o V0AppNotificationSettingsParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppNotificationSettingsParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.OnFailure) { + toSerialize["on_failure"] = o.OnFailure + } + if !IsNil(o.OnSuccess) { + toSerialize["on_success"] = o.OnSuccess + } + return toSerialize, nil +} + +type NullableV0AppNotificationSettingsParams struct { + value *V0AppNotificationSettingsParams + isSet bool +} + +func (v NullableV0AppNotificationSettingsParams) Get() *V0AppNotificationSettingsParams { + return v.value +} + +func (v *NullableV0AppNotificationSettingsParams) Set(val *V0AppNotificationSettingsParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppNotificationSettingsParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppNotificationSettingsParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppNotificationSettingsParams(val *V0AppNotificationSettingsParams) *NullableV0AppNotificationSettingsParams { + return &NullableV0AppNotificationSettingsParams{value: val, isSet: true} +} + +func (v NullableV0AppNotificationSettingsParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppNotificationSettingsParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_notification_settings_update_response.go b/go2/model_v0_app_notification_settings_update_response.go new file mode 100644 index 0000000..03d7bcc --- /dev/null +++ b/go2/model_v0_app_notification_settings_update_response.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppNotificationSettingsUpdateResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppNotificationSettingsUpdateResponse{} + +// V0AppNotificationSettingsUpdateResponse struct for V0AppNotificationSettingsUpdateResponse +type V0AppNotificationSettingsUpdateResponse struct { + Msg *string `json:"msg,omitempty"` +} + +// NewV0AppNotificationSettingsUpdateResponse instantiates a new V0AppNotificationSettingsUpdateResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppNotificationSettingsUpdateResponse() *V0AppNotificationSettingsUpdateResponse { + this := V0AppNotificationSettingsUpdateResponse{} + return &this +} + +// NewV0AppNotificationSettingsUpdateResponseWithDefaults instantiates a new V0AppNotificationSettingsUpdateResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppNotificationSettingsUpdateResponseWithDefaults() *V0AppNotificationSettingsUpdateResponse { + this := V0AppNotificationSettingsUpdateResponse{} + return &this +} + +// GetMsg returns the Msg field value if set, zero value otherwise. +func (o *V0AppNotificationSettingsUpdateResponse) GetMsg() string { + if o == nil || IsNil(o.Msg) { + var ret string + return ret + } + return *o.Msg +} + +// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppNotificationSettingsUpdateResponse) GetMsgOk() (*string, bool) { + if o == nil || IsNil(o.Msg) { + return nil, false + } + return o.Msg, true +} + +// HasMsg returns a boolean if a field has been set. +func (o *V0AppNotificationSettingsUpdateResponse) HasMsg() bool { + if o != nil && !IsNil(o.Msg) { + return true + } + + return false +} + +// SetMsg gets a reference to the given string and assigns it to the Msg field. +func (o *V0AppNotificationSettingsUpdateResponse) SetMsg(v string) { + o.Msg = &v +} + +func (o V0AppNotificationSettingsUpdateResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppNotificationSettingsUpdateResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Msg) { + toSerialize["msg"] = o.Msg + } + return toSerialize, nil +} + +type NullableV0AppNotificationSettingsUpdateResponse struct { + value *V0AppNotificationSettingsUpdateResponse + isSet bool +} + +func (v NullableV0AppNotificationSettingsUpdateResponse) Get() *V0AppNotificationSettingsUpdateResponse { + return v.value +} + +func (v *NullableV0AppNotificationSettingsUpdateResponse) Set(val *V0AppNotificationSettingsUpdateResponse) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppNotificationSettingsUpdateResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppNotificationSettingsUpdateResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppNotificationSettingsUpdateResponse(val *V0AppNotificationSettingsUpdateResponse) *NullableV0AppNotificationSettingsUpdateResponse { + return &NullableV0AppNotificationSettingsUpdateResponse{value: val, isSet: true} +} + +func (v NullableV0AppNotificationSettingsUpdateResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppNotificationSettingsUpdateResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_resp_model.go b/go2/model_v0_app_resp_model.go new file mode 100644 index 0000000..650638c --- /dev/null +++ b/go2/model_v0_app_resp_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppRespModel{} + +// V0AppRespModel struct for V0AppRespModel +type V0AppRespModel struct { + Slug *string `json:"slug,omitempty"` + Status *string `json:"status,omitempty"` +} + +// NewV0AppRespModel instantiates a new V0AppRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppRespModel() *V0AppRespModel { + this := V0AppRespModel{} + return &this +} + +// NewV0AppRespModelWithDefaults instantiates a new V0AppRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppRespModelWithDefaults() *V0AppRespModel { + this := V0AppRespModel{} + return &this +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0AppRespModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppRespModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0AppRespModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0AppRespModel) SetSlug(v string) { + o.Slug = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0AppRespModel) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppRespModel) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0AppRespModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V0AppRespModel) SetStatus(v string) { + o.Status = &v +} + +func (o V0AppRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableV0AppRespModel struct { + value *V0AppRespModel + isSet bool +} + +func (v NullableV0AppRespModel) Get() *V0AppRespModel { + return v.value +} + +func (v *NullableV0AppRespModel) Set(val *V0AppRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppRespModel(val *V0AppRespModel) *NullableV0AppRespModel { + return &NullableV0AppRespModel{value: val, isSet: true} +} + +func (v NullableV0AppRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_response_item_model.go b/go2/model_v0_app_response_item_model.go new file mode 100644 index 0000000..b04d859 --- /dev/null +++ b/go2/model_v0_app_response_item_model.go @@ -0,0 +1,559 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppResponseItemModel{} + +// V0AppResponseItemModel struct for V0AppResponseItemModel +type V0AppResponseItemModel struct { + AvatarUrl *NullsString `json:"avatar_url,omitempty"` + IsDisabled *bool `json:"is_disabled,omitempty"` + IsGithubChecksEnabled *bool `json:"is_github_checks_enabled,omitempty"` + IsPublic *bool `json:"is_public,omitempty"` + Owner *V0OwnerAccountResponseModel `json:"owner,omitempty"` + ProjectType *NullsString `json:"project_type,omitempty"` + Provider *NullsString `json:"provider,omitempty"` + RepoOwner *NullsString `json:"repo_owner,omitempty"` + RepoSlug *NullsString `json:"repo_slug,omitempty"` + RepoUrl *NullsString `json:"repo_url,omitempty"` + Slug *string `json:"slug,omitempty"` + Status *int32 `json:"status,omitempty"` + Title *string `json:"title,omitempty"` +} + +// NewV0AppResponseItemModel instantiates a new V0AppResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppResponseItemModel() *V0AppResponseItemModel { + this := V0AppResponseItemModel{} + return &this +} + +// NewV0AppResponseItemModelWithDefaults instantiates a new V0AppResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppResponseItemModelWithDefaults() *V0AppResponseItemModel { + this := V0AppResponseItemModel{} + return &this +} + +// GetAvatarUrl returns the AvatarUrl field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetAvatarUrl() NullsString { + if o == nil || IsNil(o.AvatarUrl) { + var ret NullsString + return ret + } + return *o.AvatarUrl +} + +// GetAvatarUrlOk returns a tuple with the AvatarUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetAvatarUrlOk() (*NullsString, bool) { + if o == nil || IsNil(o.AvatarUrl) { + return nil, false + } + return o.AvatarUrl, true +} + +// HasAvatarUrl returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasAvatarUrl() bool { + if o != nil && !IsNil(o.AvatarUrl) { + return true + } + + return false +} + +// SetAvatarUrl gets a reference to the given NullsString and assigns it to the AvatarUrl field. +func (o *V0AppResponseItemModel) SetAvatarUrl(v NullsString) { + o.AvatarUrl = &v +} + +// GetIsDisabled returns the IsDisabled field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetIsDisabled() bool { + if o == nil || IsNil(o.IsDisabled) { + var ret bool + return ret + } + return *o.IsDisabled +} + +// GetIsDisabledOk returns a tuple with the IsDisabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetIsDisabledOk() (*bool, bool) { + if o == nil || IsNil(o.IsDisabled) { + return nil, false + } + return o.IsDisabled, true +} + +// HasIsDisabled returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasIsDisabled() bool { + if o != nil && !IsNil(o.IsDisabled) { + return true + } + + return false +} + +// SetIsDisabled gets a reference to the given bool and assigns it to the IsDisabled field. +func (o *V0AppResponseItemModel) SetIsDisabled(v bool) { + o.IsDisabled = &v +} + +// GetIsGithubChecksEnabled returns the IsGithubChecksEnabled field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetIsGithubChecksEnabled() bool { + if o == nil || IsNil(o.IsGithubChecksEnabled) { + var ret bool + return ret + } + return *o.IsGithubChecksEnabled +} + +// GetIsGithubChecksEnabledOk returns a tuple with the IsGithubChecksEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetIsGithubChecksEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.IsGithubChecksEnabled) { + return nil, false + } + return o.IsGithubChecksEnabled, true +} + +// HasIsGithubChecksEnabled returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasIsGithubChecksEnabled() bool { + if o != nil && !IsNil(o.IsGithubChecksEnabled) { + return true + } + + return false +} + +// SetIsGithubChecksEnabled gets a reference to the given bool and assigns it to the IsGithubChecksEnabled field. +func (o *V0AppResponseItemModel) SetIsGithubChecksEnabled(v bool) { + o.IsGithubChecksEnabled = &v +} + +// GetIsPublic returns the IsPublic field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetIsPublic() bool { + if o == nil || IsNil(o.IsPublic) { + var ret bool + return ret + } + return *o.IsPublic +} + +// GetIsPublicOk returns a tuple with the IsPublic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetIsPublicOk() (*bool, bool) { + if o == nil || IsNil(o.IsPublic) { + return nil, false + } + return o.IsPublic, true +} + +// HasIsPublic returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasIsPublic() bool { + if o != nil && !IsNil(o.IsPublic) { + return true + } + + return false +} + +// SetIsPublic gets a reference to the given bool and assigns it to the IsPublic field. +func (o *V0AppResponseItemModel) SetIsPublic(v bool) { + o.IsPublic = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetOwner() V0OwnerAccountResponseModel { + if o == nil || IsNil(o.Owner) { + var ret V0OwnerAccountResponseModel + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetOwnerOk() (*V0OwnerAccountResponseModel, bool) { + if o == nil || IsNil(o.Owner) { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasOwner() bool { + if o != nil && !IsNil(o.Owner) { + return true + } + + return false +} + +// SetOwner gets a reference to the given V0OwnerAccountResponseModel and assigns it to the Owner field. +func (o *V0AppResponseItemModel) SetOwner(v V0OwnerAccountResponseModel) { + o.Owner = &v +} + +// GetProjectType returns the ProjectType field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetProjectType() NullsString { + if o == nil || IsNil(o.ProjectType) { + var ret NullsString + return ret + } + return *o.ProjectType +} + +// GetProjectTypeOk returns a tuple with the ProjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetProjectTypeOk() (*NullsString, bool) { + if o == nil || IsNil(o.ProjectType) { + return nil, false + } + return o.ProjectType, true +} + +// HasProjectType returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasProjectType() bool { + if o != nil && !IsNil(o.ProjectType) { + return true + } + + return false +} + +// SetProjectType gets a reference to the given NullsString and assigns it to the ProjectType field. +func (o *V0AppResponseItemModel) SetProjectType(v NullsString) { + o.ProjectType = &v +} + +// GetProvider returns the Provider field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetProvider() NullsString { + if o == nil || IsNil(o.Provider) { + var ret NullsString + return ret + } + return *o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetProviderOk() (*NullsString, bool) { + if o == nil || IsNil(o.Provider) { + return nil, false + } + return o.Provider, true +} + +// HasProvider returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasProvider() bool { + if o != nil && !IsNil(o.Provider) { + return true + } + + return false +} + +// SetProvider gets a reference to the given NullsString and assigns it to the Provider field. +func (o *V0AppResponseItemModel) SetProvider(v NullsString) { + o.Provider = &v +} + +// GetRepoOwner returns the RepoOwner field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetRepoOwner() NullsString { + if o == nil || IsNil(o.RepoOwner) { + var ret NullsString + return ret + } + return *o.RepoOwner +} + +// GetRepoOwnerOk returns a tuple with the RepoOwner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetRepoOwnerOk() (*NullsString, bool) { + if o == nil || IsNil(o.RepoOwner) { + return nil, false + } + return o.RepoOwner, true +} + +// HasRepoOwner returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasRepoOwner() bool { + if o != nil && !IsNil(o.RepoOwner) { + return true + } + + return false +} + +// SetRepoOwner gets a reference to the given NullsString and assigns it to the RepoOwner field. +func (o *V0AppResponseItemModel) SetRepoOwner(v NullsString) { + o.RepoOwner = &v +} + +// GetRepoSlug returns the RepoSlug field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetRepoSlug() NullsString { + if o == nil || IsNil(o.RepoSlug) { + var ret NullsString + return ret + } + return *o.RepoSlug +} + +// GetRepoSlugOk returns a tuple with the RepoSlug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetRepoSlugOk() (*NullsString, bool) { + if o == nil || IsNil(o.RepoSlug) { + return nil, false + } + return o.RepoSlug, true +} + +// HasRepoSlug returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasRepoSlug() bool { + if o != nil && !IsNil(o.RepoSlug) { + return true + } + + return false +} + +// SetRepoSlug gets a reference to the given NullsString and assigns it to the RepoSlug field. +func (o *V0AppResponseItemModel) SetRepoSlug(v NullsString) { + o.RepoSlug = &v +} + +// GetRepoUrl returns the RepoUrl field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetRepoUrl() NullsString { + if o == nil || IsNil(o.RepoUrl) { + var ret NullsString + return ret + } + return *o.RepoUrl +} + +// GetRepoUrlOk returns a tuple with the RepoUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetRepoUrlOk() (*NullsString, bool) { + if o == nil || IsNil(o.RepoUrl) { + return nil, false + } + return o.RepoUrl, true +} + +// HasRepoUrl returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasRepoUrl() bool { + if o != nil && !IsNil(o.RepoUrl) { + return true + } + + return false +} + +// SetRepoUrl gets a reference to the given NullsString and assigns it to the RepoUrl field. +func (o *V0AppResponseItemModel) SetRepoUrl(v NullsString) { + o.RepoUrl = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0AppResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetStatusOk() (*int32, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *V0AppResponseItemModel) SetStatus(v int32) { + o.Status = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *V0AppResponseItemModel) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppResponseItemModel) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *V0AppResponseItemModel) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *V0AppResponseItemModel) SetTitle(v string) { + o.Title = &v +} + +func (o V0AppResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AvatarUrl) { + toSerialize["avatar_url"] = o.AvatarUrl + } + if !IsNil(o.IsDisabled) { + toSerialize["is_disabled"] = o.IsDisabled + } + if !IsNil(o.IsGithubChecksEnabled) { + toSerialize["is_github_checks_enabled"] = o.IsGithubChecksEnabled + } + if !IsNil(o.IsPublic) { + toSerialize["is_public"] = o.IsPublic + } + if !IsNil(o.Owner) { + toSerialize["owner"] = o.Owner + } + if !IsNil(o.ProjectType) { + toSerialize["project_type"] = o.ProjectType + } + if !IsNil(o.Provider) { + toSerialize["provider"] = o.Provider + } + if !IsNil(o.RepoOwner) { + toSerialize["repo_owner"] = o.RepoOwner + } + if !IsNil(o.RepoSlug) { + toSerialize["repo_slug"] = o.RepoSlug + } + if !IsNil(o.RepoUrl) { + toSerialize["repo_url"] = o.RepoUrl + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + return toSerialize, nil +} + +type NullableV0AppResponseItemModel struct { + value *V0AppResponseItemModel + isSet bool +} + +func (v NullableV0AppResponseItemModel) Get() *V0AppResponseItemModel { + return v.value +} + +func (v *NullableV0AppResponseItemModel) Set(val *V0AppResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppResponseItemModel(val *V0AppResponseItemModel) *NullableV0AppResponseItemModel { + return &NullableV0AppResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0AppResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_secret.go b/go2/model_v0_app_secret.go new file mode 100644 index 0000000..1428eb5 --- /dev/null +++ b/go2/model_v0_app_secret.go @@ -0,0 +1,239 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppSecret type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppSecret{} + +// V0AppSecret struct for V0AppSecret +type V0AppSecret struct { + // Replace variable in inputs? https://devcenter.bitrise.io/en/references/steps-reference/step-inputs-reference.html#step-input-properties + ExpandInStepInputs *bool `json:"expand_in_step_inputs,omitempty"` + // Expose for Pull Requests? + IsExposedForPullRequests *bool `json:"is_exposed_for_pull_requests,omitempty"` + // Secret marked as protected? + IsProtected *bool `json:"is_protected,omitempty"` + // Name of the secret + Name *string `json:"name,omitempty"` +} + +// NewV0AppSecret instantiates a new V0AppSecret object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppSecret() *V0AppSecret { + this := V0AppSecret{} + return &this +} + +// NewV0AppSecretWithDefaults instantiates a new V0AppSecret object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppSecretWithDefaults() *V0AppSecret { + this := V0AppSecret{} + return &this +} + +// GetExpandInStepInputs returns the ExpandInStepInputs field value if set, zero value otherwise. +func (o *V0AppSecret) GetExpandInStepInputs() bool { + if o == nil || IsNil(o.ExpandInStepInputs) { + var ret bool + return ret + } + return *o.ExpandInStepInputs +} + +// GetExpandInStepInputsOk returns a tuple with the ExpandInStepInputs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppSecret) GetExpandInStepInputsOk() (*bool, bool) { + if o == nil || IsNil(o.ExpandInStepInputs) { + return nil, false + } + return o.ExpandInStepInputs, true +} + +// HasExpandInStepInputs returns a boolean if a field has been set. +func (o *V0AppSecret) HasExpandInStepInputs() bool { + if o != nil && !IsNil(o.ExpandInStepInputs) { + return true + } + + return false +} + +// SetExpandInStepInputs gets a reference to the given bool and assigns it to the ExpandInStepInputs field. +func (o *V0AppSecret) SetExpandInStepInputs(v bool) { + o.ExpandInStepInputs = &v +} + +// GetIsExposedForPullRequests returns the IsExposedForPullRequests field value if set, zero value otherwise. +func (o *V0AppSecret) GetIsExposedForPullRequests() bool { + if o == nil || IsNil(o.IsExposedForPullRequests) { + var ret bool + return ret + } + return *o.IsExposedForPullRequests +} + +// GetIsExposedForPullRequestsOk returns a tuple with the IsExposedForPullRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppSecret) GetIsExposedForPullRequestsOk() (*bool, bool) { + if o == nil || IsNil(o.IsExposedForPullRequests) { + return nil, false + } + return o.IsExposedForPullRequests, true +} + +// HasIsExposedForPullRequests returns a boolean if a field has been set. +func (o *V0AppSecret) HasIsExposedForPullRequests() bool { + if o != nil && !IsNil(o.IsExposedForPullRequests) { + return true + } + + return false +} + +// SetIsExposedForPullRequests gets a reference to the given bool and assigns it to the IsExposedForPullRequests field. +func (o *V0AppSecret) SetIsExposedForPullRequests(v bool) { + o.IsExposedForPullRequests = &v +} + +// GetIsProtected returns the IsProtected field value if set, zero value otherwise. +func (o *V0AppSecret) GetIsProtected() bool { + if o == nil || IsNil(o.IsProtected) { + var ret bool + return ret + } + return *o.IsProtected +} + +// GetIsProtectedOk returns a tuple with the IsProtected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppSecret) GetIsProtectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsProtected) { + return nil, false + } + return o.IsProtected, true +} + +// HasIsProtected returns a boolean if a field has been set. +func (o *V0AppSecret) HasIsProtected() bool { + if o != nil && !IsNil(o.IsProtected) { + return true + } + + return false +} + +// SetIsProtected gets a reference to the given bool and assigns it to the IsProtected field. +func (o *V0AppSecret) SetIsProtected(v bool) { + o.IsProtected = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V0AppSecret) 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 *V0AppSecret) 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 *V0AppSecret) 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 *V0AppSecret) SetName(v string) { + o.Name = &v +} + +func (o V0AppSecret) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppSecret) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ExpandInStepInputs) { + toSerialize["expand_in_step_inputs"] = o.ExpandInStepInputs + } + if !IsNil(o.IsExposedForPullRequests) { + toSerialize["is_exposed_for_pull_requests"] = o.IsExposedForPullRequests + } + if !IsNil(o.IsProtected) { + toSerialize["is_protected"] = o.IsProtected + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullableV0AppSecret struct { + value *V0AppSecret + isSet bool +} + +func (v NullableV0AppSecret) Get() *V0AppSecret { + return v.value +} + +func (v *NullableV0AppSecret) Set(val *V0AppSecret) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppSecret) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppSecret) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppSecret(val *V0AppSecret) *NullableV0AppSecret { + return &NullableV0AppSecret{value: val, isSet: true} +} + +func (v NullableV0AppSecret) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppSecret) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_secret_get_value_response.go b/go2/model_v0_app_secret_get_value_response.go new file mode 100644 index 0000000..ddceb7e --- /dev/null +++ b/go2/model_v0_app_secret_get_value_response.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppSecretGetValueResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppSecretGetValueResponse{} + +// V0AppSecretGetValueResponse struct for V0AppSecretGetValueResponse +type V0AppSecretGetValueResponse struct { + Value *string `json:"value,omitempty"` +} + +// NewV0AppSecretGetValueResponse instantiates a new V0AppSecretGetValueResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppSecretGetValueResponse() *V0AppSecretGetValueResponse { + this := V0AppSecretGetValueResponse{} + return &this +} + +// NewV0AppSecretGetValueResponseWithDefaults instantiates a new V0AppSecretGetValueResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppSecretGetValueResponseWithDefaults() *V0AppSecretGetValueResponse { + this := V0AppSecretGetValueResponse{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *V0AppSecretGetValueResponse) 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 *V0AppSecretGetValueResponse) 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 *V0AppSecretGetValueResponse) 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 *V0AppSecretGetValueResponse) SetValue(v string) { + o.Value = &v +} + +func (o V0AppSecretGetValueResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppSecretGetValueResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableV0AppSecretGetValueResponse struct { + value *V0AppSecretGetValueResponse + isSet bool +} + +func (v NullableV0AppSecretGetValueResponse) Get() *V0AppSecretGetValueResponse { + return v.value +} + +func (v *NullableV0AppSecretGetValueResponse) Set(val *V0AppSecretGetValueResponse) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppSecretGetValueResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppSecretGetValueResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppSecretGetValueResponse(val *V0AppSecretGetValueResponse) *NullableV0AppSecretGetValueResponse { + return &NullableV0AppSecretGetValueResponse{value: val, isSet: true} +} + +func (v NullableV0AppSecretGetValueResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppSecretGetValueResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_secret_list_response.go b/go2/model_v0_app_secret_list_response.go new file mode 100644 index 0000000..885432f --- /dev/null +++ b/go2/model_v0_app_secret_list_response.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppSecretListResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppSecretListResponse{} + +// V0AppSecretListResponse struct for V0AppSecretListResponse +type V0AppSecretListResponse struct { + Secrets []V0AppSecret `json:"secrets,omitempty"` +} + +// NewV0AppSecretListResponse instantiates a new V0AppSecretListResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppSecretListResponse() *V0AppSecretListResponse { + this := V0AppSecretListResponse{} + return &this +} + +// NewV0AppSecretListResponseWithDefaults instantiates a new V0AppSecretListResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppSecretListResponseWithDefaults() *V0AppSecretListResponse { + this := V0AppSecretListResponse{} + return &this +} + +// GetSecrets returns the Secrets field value if set, zero value otherwise. +func (o *V0AppSecretListResponse) GetSecrets() []V0AppSecret { + if o == nil || IsNil(o.Secrets) { + var ret []V0AppSecret + return ret + } + return o.Secrets +} + +// GetSecretsOk returns a tuple with the Secrets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppSecretListResponse) GetSecretsOk() ([]V0AppSecret, bool) { + if o == nil || IsNil(o.Secrets) { + return nil, false + } + return o.Secrets, true +} + +// HasSecrets returns a boolean if a field has been set. +func (o *V0AppSecretListResponse) HasSecrets() bool { + if o != nil && !IsNil(o.Secrets) { + return true + } + + return false +} + +// SetSecrets gets a reference to the given []V0AppSecret and assigns it to the Secrets field. +func (o *V0AppSecretListResponse) SetSecrets(v []V0AppSecret) { + o.Secrets = v +} + +func (o V0AppSecretListResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppSecretListResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Secrets) { + toSerialize["secrets"] = o.Secrets + } + return toSerialize, nil +} + +type NullableV0AppSecretListResponse struct { + value *V0AppSecretListResponse + isSet bool +} + +func (v NullableV0AppSecretListResponse) Get() *V0AppSecretListResponse { + return v.value +} + +func (v *NullableV0AppSecretListResponse) Set(val *V0AppSecretListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppSecretListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppSecretListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppSecretListResponse(val *V0AppSecretListResponse) *NullableV0AppSecretListResponse { + return &NullableV0AppSecretListResponse{value: val, isSet: true} +} + +func (v NullableV0AppSecretListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppSecretListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_secret_upsert_params.go b/go2/model_v0_app_secret_upsert_params.go new file mode 100644 index 0000000..a97aa5d --- /dev/null +++ b/go2/model_v0_app_secret_upsert_params.go @@ -0,0 +1,239 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppSecretUpsertParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppSecretUpsertParams{} + +// V0AppSecretUpsertParams struct for V0AppSecretUpsertParams +type V0AppSecretUpsertParams struct { + // Replace variable in inputs? https://devcenter.bitrise.io/en/references/steps-reference/step-inputs-reference.html#step-input-properties + ExpandInStepInputs *bool `json:"expand_in_step_inputs,omitempty"` + // Expose for Pull Requests? + IsExposedForPullRequests *bool `json:"is_exposed_for_pull_requests,omitempty"` + // Secret marked as protected? + IsProtected *bool `json:"is_protected,omitempty"` + // Value of the secret + Value *string `json:"value,omitempty"` +} + +// NewV0AppSecretUpsertParams instantiates a new V0AppSecretUpsertParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppSecretUpsertParams() *V0AppSecretUpsertParams { + this := V0AppSecretUpsertParams{} + return &this +} + +// NewV0AppSecretUpsertParamsWithDefaults instantiates a new V0AppSecretUpsertParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppSecretUpsertParamsWithDefaults() *V0AppSecretUpsertParams { + this := V0AppSecretUpsertParams{} + return &this +} + +// GetExpandInStepInputs returns the ExpandInStepInputs field value if set, zero value otherwise. +func (o *V0AppSecretUpsertParams) GetExpandInStepInputs() bool { + if o == nil || IsNil(o.ExpandInStepInputs) { + var ret bool + return ret + } + return *o.ExpandInStepInputs +} + +// GetExpandInStepInputsOk returns a tuple with the ExpandInStepInputs field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppSecretUpsertParams) GetExpandInStepInputsOk() (*bool, bool) { + if o == nil || IsNil(o.ExpandInStepInputs) { + return nil, false + } + return o.ExpandInStepInputs, true +} + +// HasExpandInStepInputs returns a boolean if a field has been set. +func (o *V0AppSecretUpsertParams) HasExpandInStepInputs() bool { + if o != nil && !IsNil(o.ExpandInStepInputs) { + return true + } + + return false +} + +// SetExpandInStepInputs gets a reference to the given bool and assigns it to the ExpandInStepInputs field. +func (o *V0AppSecretUpsertParams) SetExpandInStepInputs(v bool) { + o.ExpandInStepInputs = &v +} + +// GetIsExposedForPullRequests returns the IsExposedForPullRequests field value if set, zero value otherwise. +func (o *V0AppSecretUpsertParams) GetIsExposedForPullRequests() bool { + if o == nil || IsNil(o.IsExposedForPullRequests) { + var ret bool + return ret + } + return *o.IsExposedForPullRequests +} + +// GetIsExposedForPullRequestsOk returns a tuple with the IsExposedForPullRequests field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppSecretUpsertParams) GetIsExposedForPullRequestsOk() (*bool, bool) { + if o == nil || IsNil(o.IsExposedForPullRequests) { + return nil, false + } + return o.IsExposedForPullRequests, true +} + +// HasIsExposedForPullRequests returns a boolean if a field has been set. +func (o *V0AppSecretUpsertParams) HasIsExposedForPullRequests() bool { + if o != nil && !IsNil(o.IsExposedForPullRequests) { + return true + } + + return false +} + +// SetIsExposedForPullRequests gets a reference to the given bool and assigns it to the IsExposedForPullRequests field. +func (o *V0AppSecretUpsertParams) SetIsExposedForPullRequests(v bool) { + o.IsExposedForPullRequests = &v +} + +// GetIsProtected returns the IsProtected field value if set, zero value otherwise. +func (o *V0AppSecretUpsertParams) GetIsProtected() bool { + if o == nil || IsNil(o.IsProtected) { + var ret bool + return ret + } + return *o.IsProtected +} + +// GetIsProtectedOk returns a tuple with the IsProtected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppSecretUpsertParams) GetIsProtectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsProtected) { + return nil, false + } + return o.IsProtected, true +} + +// HasIsProtected returns a boolean if a field has been set. +func (o *V0AppSecretUpsertParams) HasIsProtected() bool { + if o != nil && !IsNil(o.IsProtected) { + return true + } + + return false +} + +// SetIsProtected gets a reference to the given bool and assigns it to the IsProtected field. +func (o *V0AppSecretUpsertParams) SetIsProtected(v bool) { + o.IsProtected = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *V0AppSecretUpsertParams) 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 *V0AppSecretUpsertParams) 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 *V0AppSecretUpsertParams) 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 *V0AppSecretUpsertParams) SetValue(v string) { + o.Value = &v +} + +func (o V0AppSecretUpsertParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppSecretUpsertParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ExpandInStepInputs) { + toSerialize["expand_in_step_inputs"] = o.ExpandInStepInputs + } + if !IsNil(o.IsExposedForPullRequests) { + toSerialize["is_exposed_for_pull_requests"] = o.IsExposedForPullRequests + } + if !IsNil(o.IsProtected) { + toSerialize["is_protected"] = o.IsProtected + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableV0AppSecretUpsertParams struct { + value *V0AppSecretUpsertParams + isSet bool +} + +func (v NullableV0AppSecretUpsertParams) Get() *V0AppSecretUpsertParams { + return v.value +} + +func (v *NullableV0AppSecretUpsertParams) Set(val *V0AppSecretUpsertParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppSecretUpsertParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppSecretUpsertParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppSecretUpsertParams(val *V0AppSecretUpsertParams) *NullableV0AppSecretUpsertParams { + return &NullableV0AppSecretUpsertParams{value: val, isSet: true} +} + +func (v NullableV0AppSecretUpsertParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppSecretUpsertParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_show_response_model.go b/go2/model_v0_app_show_response_model.go new file mode 100644 index 0000000..8c66f18 --- /dev/null +++ b/go2/model_v0_app_show_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppShowResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppShowResponseModel{} + +// V0AppShowResponseModel struct for V0AppShowResponseModel +type V0AppShowResponseModel struct { + Data *V0AppResponseItemModel `json:"data,omitempty"` +} + +// NewV0AppShowResponseModel instantiates a new V0AppShowResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppShowResponseModel() *V0AppShowResponseModel { + this := V0AppShowResponseModel{} + return &this +} + +// NewV0AppShowResponseModelWithDefaults instantiates a new V0AppShowResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppShowResponseModelWithDefaults() *V0AppShowResponseModel { + this := V0AppShowResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0AppShowResponseModel) GetData() V0AppResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret V0AppResponseItemModel + 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 *V0AppShowResponseModel) GetDataOk() (*V0AppResponseItemModel, 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 *V0AppShowResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0AppResponseItemModel and assigns it to the Data field. +func (o *V0AppShowResponseModel) SetData(v V0AppResponseItemModel) { + o.Data = &v +} + +func (o V0AppShowResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppShowResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0AppShowResponseModel struct { + value *V0AppShowResponseModel + isSet bool +} + +func (v NullableV0AppShowResponseModel) Get() *V0AppShowResponseModel { + return v.value +} + +func (v *NullableV0AppShowResponseModel) Set(val *V0AppShowResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppShowResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppShowResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppShowResponseModel(val *V0AppShowResponseModel) *NullableV0AppShowResponseModel { + return &NullableV0AppShowResponseModel{value: val, isSet: true} +} + +func (v NullableV0AppShowResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppShowResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_update_params.go b/go2/model_v0_app_update_params.go new file mode 100644 index 0000000..2ede5e8 --- /dev/null +++ b/go2/model_v0_app_update_params.go @@ -0,0 +1,350 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppUpdateParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppUpdateParams{} + +// V0AppUpdateParams struct for V0AppUpdateParams +type V0AppUpdateParams struct { + // The new apple credential user ID (recommendation: use the UI to set this) + AppleCredentialUserId *int32 `json:"apple_credential_user_id,omitempty"` + // The new apple credential user slug (recommendation: use the UI to set this) + AppleCredentialUserSlug *string `json:"apple_credential_user_slug,omitempty"` + // The new default branch for the application. + DefaultBranch *string `json:"default_branch,omitempty"` + // The new value of whether an application should be publicly visible + IsPublic *bool `json:"is_public,omitempty"` + // The new repository URL for the application. + RepositoryUrl *string `json:"repository_url,omitempty"` + // The new service credential user ID (recommendation: use the UI to set this) + ServicesCredentialUserId *int32 `json:"services_credential_user_id,omitempty"` + // The new title of the application. + Title *string `json:"title,omitempty"` +} + +// NewV0AppUpdateParams instantiates a new V0AppUpdateParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppUpdateParams() *V0AppUpdateParams { + this := V0AppUpdateParams{} + return &this +} + +// NewV0AppUpdateParamsWithDefaults instantiates a new V0AppUpdateParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppUpdateParamsWithDefaults() *V0AppUpdateParams { + this := V0AppUpdateParams{} + return &this +} + +// GetAppleCredentialUserId returns the AppleCredentialUserId field value if set, zero value otherwise. +func (o *V0AppUpdateParams) GetAppleCredentialUserId() int32 { + if o == nil || IsNil(o.AppleCredentialUserId) { + var ret int32 + return ret + } + return *o.AppleCredentialUserId +} + +// GetAppleCredentialUserIdOk returns a tuple with the AppleCredentialUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUpdateParams) GetAppleCredentialUserIdOk() (*int32, bool) { + if o == nil || IsNil(o.AppleCredentialUserId) { + return nil, false + } + return o.AppleCredentialUserId, true +} + +// HasAppleCredentialUserId returns a boolean if a field has been set. +func (o *V0AppUpdateParams) HasAppleCredentialUserId() bool { + if o != nil && !IsNil(o.AppleCredentialUserId) { + return true + } + + return false +} + +// SetAppleCredentialUserId gets a reference to the given int32 and assigns it to the AppleCredentialUserId field. +func (o *V0AppUpdateParams) SetAppleCredentialUserId(v int32) { + o.AppleCredentialUserId = &v +} + +// GetAppleCredentialUserSlug returns the AppleCredentialUserSlug field value if set, zero value otherwise. +func (o *V0AppUpdateParams) GetAppleCredentialUserSlug() string { + if o == nil || IsNil(o.AppleCredentialUserSlug) { + var ret string + return ret + } + return *o.AppleCredentialUserSlug +} + +// GetAppleCredentialUserSlugOk returns a tuple with the AppleCredentialUserSlug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUpdateParams) GetAppleCredentialUserSlugOk() (*string, bool) { + if o == nil || IsNil(o.AppleCredentialUserSlug) { + return nil, false + } + return o.AppleCredentialUserSlug, true +} + +// HasAppleCredentialUserSlug returns a boolean if a field has been set. +func (o *V0AppUpdateParams) HasAppleCredentialUserSlug() bool { + if o != nil && !IsNil(o.AppleCredentialUserSlug) { + return true + } + + return false +} + +// SetAppleCredentialUserSlug gets a reference to the given string and assigns it to the AppleCredentialUserSlug field. +func (o *V0AppUpdateParams) SetAppleCredentialUserSlug(v string) { + o.AppleCredentialUserSlug = &v +} + +// GetDefaultBranch returns the DefaultBranch field value if set, zero value otherwise. +func (o *V0AppUpdateParams) GetDefaultBranch() string { + if o == nil || IsNil(o.DefaultBranch) { + var ret string + return ret + } + return *o.DefaultBranch +} + +// GetDefaultBranchOk returns a tuple with the DefaultBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUpdateParams) GetDefaultBranchOk() (*string, bool) { + if o == nil || IsNil(o.DefaultBranch) { + return nil, false + } + return o.DefaultBranch, true +} + +// HasDefaultBranch returns a boolean if a field has been set. +func (o *V0AppUpdateParams) HasDefaultBranch() bool { + if o != nil && !IsNil(o.DefaultBranch) { + return true + } + + return false +} + +// SetDefaultBranch gets a reference to the given string and assigns it to the DefaultBranch field. +func (o *V0AppUpdateParams) SetDefaultBranch(v string) { + o.DefaultBranch = &v +} + +// GetIsPublic returns the IsPublic field value if set, zero value otherwise. +func (o *V0AppUpdateParams) GetIsPublic() bool { + if o == nil || IsNil(o.IsPublic) { + var ret bool + return ret + } + return *o.IsPublic +} + +// GetIsPublicOk returns a tuple with the IsPublic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUpdateParams) GetIsPublicOk() (*bool, bool) { + if o == nil || IsNil(o.IsPublic) { + return nil, false + } + return o.IsPublic, true +} + +// HasIsPublic returns a boolean if a field has been set. +func (o *V0AppUpdateParams) HasIsPublic() bool { + if o != nil && !IsNil(o.IsPublic) { + return true + } + + return false +} + +// SetIsPublic gets a reference to the given bool and assigns it to the IsPublic field. +func (o *V0AppUpdateParams) SetIsPublic(v bool) { + o.IsPublic = &v +} + +// GetRepositoryUrl returns the RepositoryUrl field value if set, zero value otherwise. +func (o *V0AppUpdateParams) GetRepositoryUrl() string { + if o == nil || IsNil(o.RepositoryUrl) { + var ret string + return ret + } + return *o.RepositoryUrl +} + +// GetRepositoryUrlOk returns a tuple with the RepositoryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUpdateParams) GetRepositoryUrlOk() (*string, bool) { + if o == nil || IsNil(o.RepositoryUrl) { + return nil, false + } + return o.RepositoryUrl, true +} + +// HasRepositoryUrl returns a boolean if a field has been set. +func (o *V0AppUpdateParams) HasRepositoryUrl() bool { + if o != nil && !IsNil(o.RepositoryUrl) { + return true + } + + return false +} + +// SetRepositoryUrl gets a reference to the given string and assigns it to the RepositoryUrl field. +func (o *V0AppUpdateParams) SetRepositoryUrl(v string) { + o.RepositoryUrl = &v +} + +// GetServicesCredentialUserId returns the ServicesCredentialUserId field value if set, zero value otherwise. +func (o *V0AppUpdateParams) GetServicesCredentialUserId() int32 { + if o == nil || IsNil(o.ServicesCredentialUserId) { + var ret int32 + return ret + } + return *o.ServicesCredentialUserId +} + +// GetServicesCredentialUserIdOk returns a tuple with the ServicesCredentialUserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUpdateParams) GetServicesCredentialUserIdOk() (*int32, bool) { + if o == nil || IsNil(o.ServicesCredentialUserId) { + return nil, false + } + return o.ServicesCredentialUserId, true +} + +// HasServicesCredentialUserId returns a boolean if a field has been set. +func (o *V0AppUpdateParams) HasServicesCredentialUserId() bool { + if o != nil && !IsNil(o.ServicesCredentialUserId) { + return true + } + + return false +} + +// SetServicesCredentialUserId gets a reference to the given int32 and assigns it to the ServicesCredentialUserId field. +func (o *V0AppUpdateParams) SetServicesCredentialUserId(v int32) { + o.ServicesCredentialUserId = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *V0AppUpdateParams) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUpdateParams) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *V0AppUpdateParams) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *V0AppUpdateParams) SetTitle(v string) { + o.Title = &v +} + +func (o V0AppUpdateParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppUpdateParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AppleCredentialUserId) { + toSerialize["apple_credential_user_id"] = o.AppleCredentialUserId + } + if !IsNil(o.AppleCredentialUserSlug) { + toSerialize["apple_credential_user_slug"] = o.AppleCredentialUserSlug + } + if !IsNil(o.DefaultBranch) { + toSerialize["default_branch"] = o.DefaultBranch + } + if !IsNil(o.IsPublic) { + toSerialize["is_public"] = o.IsPublic + } + if !IsNil(o.RepositoryUrl) { + toSerialize["repository_url"] = o.RepositoryUrl + } + if !IsNil(o.ServicesCredentialUserId) { + toSerialize["services_credential_user_id"] = o.ServicesCredentialUserId + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + return toSerialize, nil +} + +type NullableV0AppUpdateParams struct { + value *V0AppUpdateParams + isSet bool +} + +func (v NullableV0AppUpdateParams) Get() *V0AppUpdateParams { + return v.value +} + +func (v *NullableV0AppUpdateParams) Set(val *V0AppUpdateParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppUpdateParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppUpdateParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppUpdateParams(val *V0AppUpdateParams) *NullableV0AppUpdateParams { + return &NullableV0AppUpdateParams{value: val, isSet: true} +} + +func (v NullableV0AppUpdateParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppUpdateParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_update_resp_model.go b/go2/model_v0_app_update_resp_model.go new file mode 100644 index 0000000..f864271 --- /dev/null +++ b/go2/model_v0_app_update_resp_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppUpdateRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppUpdateRespModel{} + +// V0AppUpdateRespModel struct for V0AppUpdateRespModel +type V0AppUpdateRespModel struct { + Status *string `json:"status,omitempty"` +} + +// NewV0AppUpdateRespModel instantiates a new V0AppUpdateRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppUpdateRespModel() *V0AppUpdateRespModel { + this := V0AppUpdateRespModel{} + return &this +} + +// NewV0AppUpdateRespModelWithDefaults instantiates a new V0AppUpdateRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppUpdateRespModelWithDefaults() *V0AppUpdateRespModel { + this := V0AppUpdateRespModel{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0AppUpdateRespModel) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUpdateRespModel) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0AppUpdateRespModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V0AppUpdateRespModel) SetStatus(v string) { + o.Status = &v +} + +func (o V0AppUpdateRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppUpdateRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableV0AppUpdateRespModel struct { + value *V0AppUpdateRespModel + isSet bool +} + +func (v NullableV0AppUpdateRespModel) Get() *V0AppUpdateRespModel { + return v.value +} + +func (v *NullableV0AppUpdateRespModel) Set(val *V0AppUpdateRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppUpdateRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppUpdateRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppUpdateRespModel(val *V0AppUpdateRespModel) *NullableV0AppUpdateRespModel { + return &NullableV0AppUpdateRespModel{value: val, isSet: true} +} + +func (v NullableV0AppUpdateRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppUpdateRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_upload_params.go b/go2/model_v0_app_upload_params.go new file mode 100644 index 0000000..b15b437 --- /dev/null +++ b/go2/model_v0_app_upload_params.go @@ -0,0 +1,482 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0AppUploadParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppUploadParams{} + +// V0AppUploadParams struct for V0AppUploadParams +type V0AppUploadParams struct { + // The default branch of the repository. If it's not specified, it will be `master`. + DefaultBranchName *string `json:"default_branch_name,omitempty"` + // [Deprecated] You no longer need to provide this field. + GitOwner *string `json:"git_owner,omitempty"` + // [Deprecated] You no longer need to provide this field. + GitRepoSlug *string `json:"git_repo_slug,omitempty"` + // If `true` then the repository visibility setting will be public, in case of `false` it will be private + IsPublic bool `json:"is_public"` + // Toggles whether manual approval should be enabled for the app's builds. If it's not specified, it will be `true`. + ManualApprovalEnabled *bool `json:"manual_approval_enabled,omitempty"` + // The slug of the organization, who will be the owner of the application. If it's not specified, then the authenticated user will be the owner. + OrganizationSlug *string `json:"organization_slug,omitempty"` + // The git provider you are using, it can be `github`, `bitbucket`, `gitlab`, `gitlab-self-hosted` or `custom` + Provider *string `json:"provider,omitempty"` + // The URL of your repository + RepoUrl string `json:"repo_url"` + // The title of the application. If it's not specified, it will be the git repository's name. + Title *string `json:"title,omitempty"` + // [Deprecated] You no longer need to provide this field. + Type *string `json:"type,omitempty"` +} + +type _V0AppUploadParams V0AppUploadParams + +// NewV0AppUploadParams instantiates a new V0AppUploadParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppUploadParams(isPublic bool, repoUrl string) *V0AppUploadParams { + this := V0AppUploadParams{} + this.IsPublic = isPublic + this.RepoUrl = repoUrl + return &this +} + +// NewV0AppUploadParamsWithDefaults instantiates a new V0AppUploadParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppUploadParamsWithDefaults() *V0AppUploadParams { + this := V0AppUploadParams{} + return &this +} + +// GetDefaultBranchName returns the DefaultBranchName field value if set, zero value otherwise. +func (o *V0AppUploadParams) GetDefaultBranchName() string { + if o == nil || IsNil(o.DefaultBranchName) { + var ret string + return ret + } + return *o.DefaultBranchName +} + +// GetDefaultBranchNameOk returns a tuple with the DefaultBranchName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUploadParams) GetDefaultBranchNameOk() (*string, bool) { + if o == nil || IsNil(o.DefaultBranchName) { + return nil, false + } + return o.DefaultBranchName, true +} + +// HasDefaultBranchName returns a boolean if a field has been set. +func (o *V0AppUploadParams) HasDefaultBranchName() bool { + if o != nil && !IsNil(o.DefaultBranchName) { + return true + } + + return false +} + +// SetDefaultBranchName gets a reference to the given string and assigns it to the DefaultBranchName field. +func (o *V0AppUploadParams) SetDefaultBranchName(v string) { + o.DefaultBranchName = &v +} + +// GetGitOwner returns the GitOwner field value if set, zero value otherwise. +func (o *V0AppUploadParams) GetGitOwner() string { + if o == nil || IsNil(o.GitOwner) { + var ret string + return ret + } + return *o.GitOwner +} + +// GetGitOwnerOk returns a tuple with the GitOwner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUploadParams) GetGitOwnerOk() (*string, bool) { + if o == nil || IsNil(o.GitOwner) { + return nil, false + } + return o.GitOwner, true +} + +// HasGitOwner returns a boolean if a field has been set. +func (o *V0AppUploadParams) HasGitOwner() bool { + if o != nil && !IsNil(o.GitOwner) { + return true + } + + return false +} + +// SetGitOwner gets a reference to the given string and assigns it to the GitOwner field. +func (o *V0AppUploadParams) SetGitOwner(v string) { + o.GitOwner = &v +} + +// GetGitRepoSlug returns the GitRepoSlug field value if set, zero value otherwise. +func (o *V0AppUploadParams) GetGitRepoSlug() string { + if o == nil || IsNil(o.GitRepoSlug) { + var ret string + return ret + } + return *o.GitRepoSlug +} + +// GetGitRepoSlugOk returns a tuple with the GitRepoSlug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUploadParams) GetGitRepoSlugOk() (*string, bool) { + if o == nil || IsNil(o.GitRepoSlug) { + return nil, false + } + return o.GitRepoSlug, true +} + +// HasGitRepoSlug returns a boolean if a field has been set. +func (o *V0AppUploadParams) HasGitRepoSlug() bool { + if o != nil && !IsNil(o.GitRepoSlug) { + return true + } + + return false +} + +// SetGitRepoSlug gets a reference to the given string and assigns it to the GitRepoSlug field. +func (o *V0AppUploadParams) SetGitRepoSlug(v string) { + o.GitRepoSlug = &v +} + +// GetIsPublic returns the IsPublic field value +func (o *V0AppUploadParams) GetIsPublic() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPublic +} + +// GetIsPublicOk returns a tuple with the IsPublic field value +// and a boolean to check if the value has been set. +func (o *V0AppUploadParams) GetIsPublicOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPublic, true +} + +// SetIsPublic sets field value +func (o *V0AppUploadParams) SetIsPublic(v bool) { + o.IsPublic = v +} + +// GetManualApprovalEnabled returns the ManualApprovalEnabled field value if set, zero value otherwise. +func (o *V0AppUploadParams) GetManualApprovalEnabled() bool { + if o == nil || IsNil(o.ManualApprovalEnabled) { + var ret bool + return ret + } + return *o.ManualApprovalEnabled +} + +// GetManualApprovalEnabledOk returns a tuple with the ManualApprovalEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUploadParams) GetManualApprovalEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.ManualApprovalEnabled) { + return nil, false + } + return o.ManualApprovalEnabled, true +} + +// HasManualApprovalEnabled returns a boolean if a field has been set. +func (o *V0AppUploadParams) HasManualApprovalEnabled() bool { + if o != nil && !IsNil(o.ManualApprovalEnabled) { + return true + } + + return false +} + +// SetManualApprovalEnabled gets a reference to the given bool and assigns it to the ManualApprovalEnabled field. +func (o *V0AppUploadParams) SetManualApprovalEnabled(v bool) { + o.ManualApprovalEnabled = &v +} + +// GetOrganizationSlug returns the OrganizationSlug field value if set, zero value otherwise. +func (o *V0AppUploadParams) GetOrganizationSlug() string { + if o == nil || IsNil(o.OrganizationSlug) { + var ret string + return ret + } + return *o.OrganizationSlug +} + +// GetOrganizationSlugOk returns a tuple with the OrganizationSlug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUploadParams) GetOrganizationSlugOk() (*string, bool) { + if o == nil || IsNil(o.OrganizationSlug) { + return nil, false + } + return o.OrganizationSlug, true +} + +// HasOrganizationSlug returns a boolean if a field has been set. +func (o *V0AppUploadParams) HasOrganizationSlug() bool { + if o != nil && !IsNil(o.OrganizationSlug) { + return true + } + + return false +} + +// SetOrganizationSlug gets a reference to the given string and assigns it to the OrganizationSlug field. +func (o *V0AppUploadParams) SetOrganizationSlug(v string) { + o.OrganizationSlug = &v +} + +// GetProvider returns the Provider field value if set, zero value otherwise. +func (o *V0AppUploadParams) GetProvider() string { + if o == nil || IsNil(o.Provider) { + var ret string + return ret + } + return *o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUploadParams) GetProviderOk() (*string, bool) { + if o == nil || IsNil(o.Provider) { + return nil, false + } + return o.Provider, true +} + +// HasProvider returns a boolean if a field has been set. +func (o *V0AppUploadParams) HasProvider() bool { + if o != nil && !IsNil(o.Provider) { + return true + } + + return false +} + +// SetProvider gets a reference to the given string and assigns it to the Provider field. +func (o *V0AppUploadParams) SetProvider(v string) { + o.Provider = &v +} + +// GetRepoUrl returns the RepoUrl field value +func (o *V0AppUploadParams) GetRepoUrl() string { + if o == nil { + var ret string + return ret + } + + return o.RepoUrl +} + +// GetRepoUrlOk returns a tuple with the RepoUrl field value +// and a boolean to check if the value has been set. +func (o *V0AppUploadParams) GetRepoUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.RepoUrl, true +} + +// SetRepoUrl sets field value +func (o *V0AppUploadParams) SetRepoUrl(v string) { + o.RepoUrl = v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *V0AppUploadParams) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppUploadParams) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *V0AppUploadParams) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *V0AppUploadParams) SetTitle(v string) { + o.Title = &v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *V0AppUploadParams) 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 *V0AppUploadParams) 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 *V0AppUploadParams) 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 *V0AppUploadParams) SetType(v string) { + o.Type = &v +} + +func (o V0AppUploadParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppUploadParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DefaultBranchName) { + toSerialize["default_branch_name"] = o.DefaultBranchName + } + if !IsNil(o.GitOwner) { + toSerialize["git_owner"] = o.GitOwner + } + if !IsNil(o.GitRepoSlug) { + toSerialize["git_repo_slug"] = o.GitRepoSlug + } + toSerialize["is_public"] = o.IsPublic + if !IsNil(o.ManualApprovalEnabled) { + toSerialize["manual_approval_enabled"] = o.ManualApprovalEnabled + } + if !IsNil(o.OrganizationSlug) { + toSerialize["organization_slug"] = o.OrganizationSlug + } + if !IsNil(o.Provider) { + toSerialize["provider"] = o.Provider + } + toSerialize["repo_url"] = o.RepoUrl + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +func (o *V0AppUploadParams) UnmarshalJSON(bytes []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{ + "is_public", + "repo_url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0AppUploadParams := _V0AppUploadParams{} + + err = json.Unmarshal(bytes, &varV0AppUploadParams) + + if err != nil { + return err + } + + *o = V0AppUploadParams(varV0AppUploadParams) + + return err +} + +type NullableV0AppUploadParams struct { + value *V0AppUploadParams + isSet bool +} + +func (v NullableV0AppUploadParams) Get() *V0AppUploadParams { + return v.value +} + +func (v *NullableV0AppUploadParams) Set(val *V0AppUploadParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppUploadParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppUploadParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppUploadParams(val *V0AppUploadParams) *NullableV0AppUploadParams { + return &NullableV0AppUploadParams{value: val, isSet: true} +} + +func (v NullableV0AppUploadParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppUploadParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_webhook_create_params.go b/go2/model_v0_app_webhook_create_params.go new file mode 100644 index 0000000..b55c7ca --- /dev/null +++ b/go2/model_v0_app_webhook_create_params.go @@ -0,0 +1,248 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0AppWebhookCreateParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppWebhookCreateParams{} + +// V0AppWebhookCreateParams struct for V0AppWebhookCreateParams +type V0AppWebhookCreateParams struct { + Events []string `json:"events"` + Headers []int32 `json:"headers,omitempty"` + Secret string `json:"secret"` + Url string `json:"url"` +} + +type _V0AppWebhookCreateParams V0AppWebhookCreateParams + +// NewV0AppWebhookCreateParams instantiates a new V0AppWebhookCreateParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppWebhookCreateParams(events []string, secret string, url string) *V0AppWebhookCreateParams { + this := V0AppWebhookCreateParams{} + this.Events = events + this.Secret = secret + this.Url = url + return &this +} + +// NewV0AppWebhookCreateParamsWithDefaults instantiates a new V0AppWebhookCreateParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppWebhookCreateParamsWithDefaults() *V0AppWebhookCreateParams { + this := V0AppWebhookCreateParams{} + return &this +} + +// GetEvents returns the Events field value +func (o *V0AppWebhookCreateParams) GetEvents() []string { + if o == nil { + var ret []string + return ret + } + + return o.Events +} + +// GetEventsOk returns a tuple with the Events field value +// and a boolean to check if the value has been set. +func (o *V0AppWebhookCreateParams) GetEventsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Events, true +} + +// SetEvents sets field value +func (o *V0AppWebhookCreateParams) SetEvents(v []string) { + o.Events = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *V0AppWebhookCreateParams) GetHeaders() []int32 { + if o == nil || IsNil(o.Headers) { + var ret []int32 + return ret + } + return o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppWebhookCreateParams) GetHeadersOk() ([]int32, bool) { + if o == nil || IsNil(o.Headers) { + return nil, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *V0AppWebhookCreateParams) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given []int32 and assigns it to the Headers field. +func (o *V0AppWebhookCreateParams) SetHeaders(v []int32) { + o.Headers = v +} + +// GetSecret returns the Secret field value +func (o *V0AppWebhookCreateParams) GetSecret() string { + if o == nil { + var ret string + return ret + } + + return o.Secret +} + +// GetSecretOk returns a tuple with the Secret field value +// and a boolean to check if the value has been set. +func (o *V0AppWebhookCreateParams) GetSecretOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Secret, true +} + +// SetSecret sets field value +func (o *V0AppWebhookCreateParams) SetSecret(v string) { + o.Secret = v +} + +// GetUrl returns the Url field value +func (o *V0AppWebhookCreateParams) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *V0AppWebhookCreateParams) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *V0AppWebhookCreateParams) SetUrl(v string) { + o.Url = v +} + +func (o V0AppWebhookCreateParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppWebhookCreateParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["events"] = o.Events + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + toSerialize["secret"] = o.Secret + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *V0AppWebhookCreateParams) UnmarshalJSON(bytes []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{ + "events", + "secret", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0AppWebhookCreateParams := _V0AppWebhookCreateParams{} + + err = json.Unmarshal(bytes, &varV0AppWebhookCreateParams) + + if err != nil { + return err + } + + *o = V0AppWebhookCreateParams(varV0AppWebhookCreateParams) + + return err +} + +type NullableV0AppWebhookCreateParams struct { + value *V0AppWebhookCreateParams + isSet bool +} + +func (v NullableV0AppWebhookCreateParams) Get() *V0AppWebhookCreateParams { + return v.value +} + +func (v *NullableV0AppWebhookCreateParams) Set(val *V0AppWebhookCreateParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppWebhookCreateParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppWebhookCreateParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppWebhookCreateParams(val *V0AppWebhookCreateParams) *NullableV0AppWebhookCreateParams { + return &NullableV0AppWebhookCreateParams{value: val, isSet: true} +} + +func (v NullableV0AppWebhookCreateParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppWebhookCreateParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_webhook_created_response_model.go b/go2/model_v0_app_webhook_created_response_model.go new file mode 100644 index 0000000..ea01ce9 --- /dev/null +++ b/go2/model_v0_app_webhook_created_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppWebhookCreatedResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppWebhookCreatedResponseModel{} + +// V0AppWebhookCreatedResponseModel struct for V0AppWebhookCreatedResponseModel +type V0AppWebhookCreatedResponseModel struct { + Data *V0AppWebhookResponseItemModel `json:"data,omitempty"` +} + +// NewV0AppWebhookCreatedResponseModel instantiates a new V0AppWebhookCreatedResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppWebhookCreatedResponseModel() *V0AppWebhookCreatedResponseModel { + this := V0AppWebhookCreatedResponseModel{} + return &this +} + +// NewV0AppWebhookCreatedResponseModelWithDefaults instantiates a new V0AppWebhookCreatedResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppWebhookCreatedResponseModelWithDefaults() *V0AppWebhookCreatedResponseModel { + this := V0AppWebhookCreatedResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0AppWebhookCreatedResponseModel) GetData() V0AppWebhookResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret V0AppWebhookResponseItemModel + 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 *V0AppWebhookCreatedResponseModel) GetDataOk() (*V0AppWebhookResponseItemModel, 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 *V0AppWebhookCreatedResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0AppWebhookResponseItemModel and assigns it to the Data field. +func (o *V0AppWebhookCreatedResponseModel) SetData(v V0AppWebhookResponseItemModel) { + o.Data = &v +} + +func (o V0AppWebhookCreatedResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppWebhookCreatedResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0AppWebhookCreatedResponseModel struct { + value *V0AppWebhookCreatedResponseModel + isSet bool +} + +func (v NullableV0AppWebhookCreatedResponseModel) Get() *V0AppWebhookCreatedResponseModel { + return v.value +} + +func (v *NullableV0AppWebhookCreatedResponseModel) Set(val *V0AppWebhookCreatedResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppWebhookCreatedResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppWebhookCreatedResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppWebhookCreatedResponseModel(val *V0AppWebhookCreatedResponseModel) *NullableV0AppWebhookCreatedResponseModel { + return &NullableV0AppWebhookCreatedResponseModel{value: val, isSet: true} +} + +func (v NullableV0AppWebhookCreatedResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppWebhookCreatedResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_webhook_deleted_response_model.go b/go2/model_v0_app_webhook_deleted_response_model.go new file mode 100644 index 0000000..2e1370d --- /dev/null +++ b/go2/model_v0_app_webhook_deleted_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppWebhookDeletedResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppWebhookDeletedResponseModel{} + +// V0AppWebhookDeletedResponseModel struct for V0AppWebhookDeletedResponseModel +type V0AppWebhookDeletedResponseModel struct { + Data *V0AppWebhookResponseItemModel `json:"data,omitempty"` +} + +// NewV0AppWebhookDeletedResponseModel instantiates a new V0AppWebhookDeletedResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppWebhookDeletedResponseModel() *V0AppWebhookDeletedResponseModel { + this := V0AppWebhookDeletedResponseModel{} + return &this +} + +// NewV0AppWebhookDeletedResponseModelWithDefaults instantiates a new V0AppWebhookDeletedResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppWebhookDeletedResponseModelWithDefaults() *V0AppWebhookDeletedResponseModel { + this := V0AppWebhookDeletedResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0AppWebhookDeletedResponseModel) GetData() V0AppWebhookResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret V0AppWebhookResponseItemModel + 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 *V0AppWebhookDeletedResponseModel) GetDataOk() (*V0AppWebhookResponseItemModel, 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 *V0AppWebhookDeletedResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0AppWebhookResponseItemModel and assigns it to the Data field. +func (o *V0AppWebhookDeletedResponseModel) SetData(v V0AppWebhookResponseItemModel) { + o.Data = &v +} + +func (o V0AppWebhookDeletedResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppWebhookDeletedResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0AppWebhookDeletedResponseModel struct { + value *V0AppWebhookDeletedResponseModel + isSet bool +} + +func (v NullableV0AppWebhookDeletedResponseModel) Get() *V0AppWebhookDeletedResponseModel { + return v.value +} + +func (v *NullableV0AppWebhookDeletedResponseModel) Set(val *V0AppWebhookDeletedResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppWebhookDeletedResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppWebhookDeletedResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppWebhookDeletedResponseModel(val *V0AppWebhookDeletedResponseModel) *NullableV0AppWebhookDeletedResponseModel { + return &NullableV0AppWebhookDeletedResponseModel{value: val, isSet: true} +} + +func (v NullableV0AppWebhookDeletedResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppWebhookDeletedResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_webhook_list_response_model.go b/go2/model_v0_app_webhook_list_response_model.go new file mode 100644 index 0000000..004595e --- /dev/null +++ b/go2/model_v0_app_webhook_list_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppWebhookListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppWebhookListResponseModel{} + +// V0AppWebhookListResponseModel struct for V0AppWebhookListResponseModel +type V0AppWebhookListResponseModel struct { + Data []V0AppWebhookResponseItemModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0AppWebhookListResponseModel instantiates a new V0AppWebhookListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppWebhookListResponseModel() *V0AppWebhookListResponseModel { + this := V0AppWebhookListResponseModel{} + return &this +} + +// NewV0AppWebhookListResponseModelWithDefaults instantiates a new V0AppWebhookListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppWebhookListResponseModelWithDefaults() *V0AppWebhookListResponseModel { + this := V0AppWebhookListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0AppWebhookListResponseModel) GetData() []V0AppWebhookResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0AppWebhookResponseItemModel + 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 *V0AppWebhookListResponseModel) GetDataOk() ([]V0AppWebhookResponseItemModel, 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 *V0AppWebhookListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0AppWebhookResponseItemModel and assigns it to the Data field. +func (o *V0AppWebhookListResponseModel) SetData(v []V0AppWebhookResponseItemModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0AppWebhookListResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppWebhookListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0AppWebhookListResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0AppWebhookListResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0AppWebhookListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppWebhookListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0AppWebhookListResponseModel struct { + value *V0AppWebhookListResponseModel + isSet bool +} + +func (v NullableV0AppWebhookListResponseModel) Get() *V0AppWebhookListResponseModel { + return v.value +} + +func (v *NullableV0AppWebhookListResponseModel) Set(val *V0AppWebhookListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppWebhookListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppWebhookListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppWebhookListResponseModel(val *V0AppWebhookListResponseModel) *NullableV0AppWebhookListResponseModel { + return &NullableV0AppWebhookListResponseModel{value: val, isSet: true} +} + +func (v NullableV0AppWebhookListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppWebhookListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_webhook_response_item_model.go b/go2/model_v0_app_webhook_response_item_model.go new file mode 100644 index 0000000..538977a --- /dev/null +++ b/go2/model_v0_app_webhook_response_item_model.go @@ -0,0 +1,343 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppWebhookResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppWebhookResponseItemModel{} + +// V0AppWebhookResponseItemModel struct for V0AppWebhookResponseItemModel +type V0AppWebhookResponseItemModel struct { + CreatedAt *string `json:"created_at,omitempty"` + Events []string `json:"events,omitempty"` + Headers []int32 `json:"headers,omitempty"` + RegisteredByAddon *bool `json:"registered_by_addon,omitempty"` + Slug *string `json:"slug,omitempty"` + UpdatedAt *string `json:"updated_at,omitempty"` + Url *string `json:"url,omitempty"` +} + +// NewV0AppWebhookResponseItemModel instantiates a new V0AppWebhookResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppWebhookResponseItemModel() *V0AppWebhookResponseItemModel { + this := V0AppWebhookResponseItemModel{} + return &this +} + +// NewV0AppWebhookResponseItemModelWithDefaults instantiates a new V0AppWebhookResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppWebhookResponseItemModelWithDefaults() *V0AppWebhookResponseItemModel { + this := V0AppWebhookResponseItemModel{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *V0AppWebhookResponseItemModel) GetCreatedAt() string { + if o == nil || IsNil(o.CreatedAt) { + var ret string + 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 *V0AppWebhookResponseItemModel) GetCreatedAtOk() (*string, 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 *V0AppWebhookResponseItemModel) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. +func (o *V0AppWebhookResponseItemModel) SetCreatedAt(v string) { + o.CreatedAt = &v +} + +// GetEvents returns the Events field value if set, zero value otherwise. +func (o *V0AppWebhookResponseItemModel) GetEvents() []string { + if o == nil || IsNil(o.Events) { + var ret []string + return ret + } + return o.Events +} + +// GetEventsOk returns a tuple with the Events field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppWebhookResponseItemModel) GetEventsOk() ([]string, bool) { + if o == nil || IsNil(o.Events) { + return nil, false + } + return o.Events, true +} + +// HasEvents returns a boolean if a field has been set. +func (o *V0AppWebhookResponseItemModel) HasEvents() bool { + if o != nil && !IsNil(o.Events) { + return true + } + + return false +} + +// SetEvents gets a reference to the given []string and assigns it to the Events field. +func (o *V0AppWebhookResponseItemModel) SetEvents(v []string) { + o.Events = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *V0AppWebhookResponseItemModel) GetHeaders() []int32 { + if o == nil || IsNil(o.Headers) { + var ret []int32 + return ret + } + return o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppWebhookResponseItemModel) GetHeadersOk() ([]int32, bool) { + if o == nil || IsNil(o.Headers) { + return nil, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *V0AppWebhookResponseItemModel) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given []int32 and assigns it to the Headers field. +func (o *V0AppWebhookResponseItemModel) SetHeaders(v []int32) { + o.Headers = v +} + +// GetRegisteredByAddon returns the RegisteredByAddon field value if set, zero value otherwise. +func (o *V0AppWebhookResponseItemModel) GetRegisteredByAddon() bool { + if o == nil || IsNil(o.RegisteredByAddon) { + var ret bool + return ret + } + return *o.RegisteredByAddon +} + +// GetRegisteredByAddonOk returns a tuple with the RegisteredByAddon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppWebhookResponseItemModel) GetRegisteredByAddonOk() (*bool, bool) { + if o == nil || IsNil(o.RegisteredByAddon) { + return nil, false + } + return o.RegisteredByAddon, true +} + +// HasRegisteredByAddon returns a boolean if a field has been set. +func (o *V0AppWebhookResponseItemModel) HasRegisteredByAddon() bool { + if o != nil && !IsNil(o.RegisteredByAddon) { + return true + } + + return false +} + +// SetRegisteredByAddon gets a reference to the given bool and assigns it to the RegisteredByAddon field. +func (o *V0AppWebhookResponseItemModel) SetRegisteredByAddon(v bool) { + o.RegisteredByAddon = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0AppWebhookResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppWebhookResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0AppWebhookResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0AppWebhookResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *V0AppWebhookResponseItemModel) GetUpdatedAt() string { + if o == nil || IsNil(o.UpdatedAt) { + var ret string + 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 *V0AppWebhookResponseItemModel) GetUpdatedAtOk() (*string, 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 *V0AppWebhookResponseItemModel) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. +func (o *V0AppWebhookResponseItemModel) SetUpdatedAt(v string) { + o.UpdatedAt = &v +} + +// GetUrl returns the Url field value if set, zero value otherwise. +func (o *V0AppWebhookResponseItemModel) 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 *V0AppWebhookResponseItemModel) 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 *V0AppWebhookResponseItemModel) 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 *V0AppWebhookResponseItemModel) SetUrl(v string) { + o.Url = &v +} + +func (o V0AppWebhookResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppWebhookResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.Events) { + toSerialize["events"] = o.Events + } + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + if !IsNil(o.RegisteredByAddon) { + toSerialize["registered_by_addon"] = o.RegisteredByAddon + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + if !IsNil(o.Url) { + toSerialize["url"] = o.Url + } + return toSerialize, nil +} + +type NullableV0AppWebhookResponseItemModel struct { + value *V0AppWebhookResponseItemModel + isSet bool +} + +func (v NullableV0AppWebhookResponseItemModel) Get() *V0AppWebhookResponseItemModel { + return v.value +} + +func (v *NullableV0AppWebhookResponseItemModel) Set(val *V0AppWebhookResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppWebhookResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppWebhookResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppWebhookResponseItemModel(val *V0AppWebhookResponseItemModel) *NullableV0AppWebhookResponseItemModel { + return &NullableV0AppWebhookResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0AppWebhookResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppWebhookResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_webhook_response_model.go b/go2/model_v0_app_webhook_response_model.go new file mode 100644 index 0000000..1792cca --- /dev/null +++ b/go2/model_v0_app_webhook_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppWebhookResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppWebhookResponseModel{} + +// V0AppWebhookResponseModel struct for V0AppWebhookResponseModel +type V0AppWebhookResponseModel struct { + Data *V0AppWebhookResponseItemModel `json:"data,omitempty"` +} + +// NewV0AppWebhookResponseModel instantiates a new V0AppWebhookResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppWebhookResponseModel() *V0AppWebhookResponseModel { + this := V0AppWebhookResponseModel{} + return &this +} + +// NewV0AppWebhookResponseModelWithDefaults instantiates a new V0AppWebhookResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppWebhookResponseModelWithDefaults() *V0AppWebhookResponseModel { + this := V0AppWebhookResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0AppWebhookResponseModel) GetData() V0AppWebhookResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret V0AppWebhookResponseItemModel + 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 *V0AppWebhookResponseModel) GetDataOk() (*V0AppWebhookResponseItemModel, 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 *V0AppWebhookResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0AppWebhookResponseItemModel and assigns it to the Data field. +func (o *V0AppWebhookResponseModel) SetData(v V0AppWebhookResponseItemModel) { + o.Data = &v +} + +func (o V0AppWebhookResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppWebhookResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0AppWebhookResponseModel struct { + value *V0AppWebhookResponseModel + isSet bool +} + +func (v NullableV0AppWebhookResponseModel) Get() *V0AppWebhookResponseModel { + return v.value +} + +func (v *NullableV0AppWebhookResponseModel) Set(val *V0AppWebhookResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppWebhookResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppWebhookResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppWebhookResponseModel(val *V0AppWebhookResponseModel) *NullableV0AppWebhookResponseModel { + return &NullableV0AppWebhookResponseModel{value: val, isSet: true} +} + +func (v NullableV0AppWebhookResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppWebhookResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_app_webhook_update_params.go b/go2/model_v0_app_webhook_update_params.go new file mode 100644 index 0000000..f7486db --- /dev/null +++ b/go2/model_v0_app_webhook_update_params.go @@ -0,0 +1,220 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0AppWebhookUpdateParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppWebhookUpdateParams{} + +// V0AppWebhookUpdateParams struct for V0AppWebhookUpdateParams +type V0AppWebhookUpdateParams struct { + Events []string `json:"events"` + Headers []int32 `json:"headers,omitempty"` + Url string `json:"url"` +} + +type _V0AppWebhookUpdateParams V0AppWebhookUpdateParams + +// NewV0AppWebhookUpdateParams instantiates a new V0AppWebhookUpdateParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppWebhookUpdateParams(events []string, url string) *V0AppWebhookUpdateParams { + this := V0AppWebhookUpdateParams{} + this.Events = events + this.Url = url + return &this +} + +// NewV0AppWebhookUpdateParamsWithDefaults instantiates a new V0AppWebhookUpdateParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppWebhookUpdateParamsWithDefaults() *V0AppWebhookUpdateParams { + this := V0AppWebhookUpdateParams{} + return &this +} + +// GetEvents returns the Events field value +func (o *V0AppWebhookUpdateParams) GetEvents() []string { + if o == nil { + var ret []string + return ret + } + + return o.Events +} + +// GetEventsOk returns a tuple with the Events field value +// and a boolean to check if the value has been set. +func (o *V0AppWebhookUpdateParams) GetEventsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Events, true +} + +// SetEvents sets field value +func (o *V0AppWebhookUpdateParams) SetEvents(v []string) { + o.Events = v +} + +// GetHeaders returns the Headers field value if set, zero value otherwise. +func (o *V0AppWebhookUpdateParams) GetHeaders() []int32 { + if o == nil || IsNil(o.Headers) { + var ret []int32 + return ret + } + return o.Headers +} + +// GetHeadersOk returns a tuple with the Headers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppWebhookUpdateParams) GetHeadersOk() ([]int32, bool) { + if o == nil || IsNil(o.Headers) { + return nil, false + } + return o.Headers, true +} + +// HasHeaders returns a boolean if a field has been set. +func (o *V0AppWebhookUpdateParams) HasHeaders() bool { + if o != nil && !IsNil(o.Headers) { + return true + } + + return false +} + +// SetHeaders gets a reference to the given []int32 and assigns it to the Headers field. +func (o *V0AppWebhookUpdateParams) SetHeaders(v []int32) { + o.Headers = v +} + +// GetUrl returns the Url field value +func (o *V0AppWebhookUpdateParams) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *V0AppWebhookUpdateParams) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *V0AppWebhookUpdateParams) SetUrl(v string) { + o.Url = v +} + +func (o V0AppWebhookUpdateParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppWebhookUpdateParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["events"] = o.Events + if !IsNil(o.Headers) { + toSerialize["headers"] = o.Headers + } + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *V0AppWebhookUpdateParams) UnmarshalJSON(bytes []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{ + "events", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0AppWebhookUpdateParams := _V0AppWebhookUpdateParams{} + + err = json.Unmarshal(bytes, &varV0AppWebhookUpdateParams) + + if err != nil { + return err + } + + *o = V0AppWebhookUpdateParams(varV0AppWebhookUpdateParams) + + return err +} + +type NullableV0AppWebhookUpdateParams struct { + value *V0AppWebhookUpdateParams + isSet bool +} + +func (v NullableV0AppWebhookUpdateParams) Get() *V0AppWebhookUpdateParams { + return v.value +} + +func (v *NullableV0AppWebhookUpdateParams) Set(val *V0AppWebhookUpdateParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppWebhookUpdateParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppWebhookUpdateParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppWebhookUpdateParams(val *V0AppWebhookUpdateParams) *NullableV0AppWebhookUpdateParams { + return &NullableV0AppWebhookUpdateParams{value: val, isSet: true} +} + +func (v NullableV0AppWebhookUpdateParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppWebhookUpdateParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_apple_api_credential_response_item.go b/go2/model_v0_apple_api_credential_response_item.go new file mode 100644 index 0000000..ead2b38 --- /dev/null +++ b/go2/model_v0_apple_api_credential_response_item.go @@ -0,0 +1,307 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppleAPICredentialResponseItem type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppleAPICredentialResponseItem{} + +// V0AppleAPICredentialResponseItem struct for V0AppleAPICredentialResponseItem +type V0AppleAPICredentialResponseItem struct { + CreatedAt *string `json:"created_at,omitempty"` + IssuerId *string `json:"issuer_id,omitempty"` + KeyId *string `json:"key_id,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + UpdatedAt *string `json:"updated_at,omitempty"` +} + +// NewV0AppleAPICredentialResponseItem instantiates a new V0AppleAPICredentialResponseItem object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppleAPICredentialResponseItem() *V0AppleAPICredentialResponseItem { + this := V0AppleAPICredentialResponseItem{} + return &this +} + +// NewV0AppleAPICredentialResponseItemWithDefaults instantiates a new V0AppleAPICredentialResponseItem object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppleAPICredentialResponseItemWithDefaults() *V0AppleAPICredentialResponseItem { + this := V0AppleAPICredentialResponseItem{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *V0AppleAPICredentialResponseItem) GetCreatedAt() string { + if o == nil || IsNil(o.CreatedAt) { + var ret string + 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 *V0AppleAPICredentialResponseItem) GetCreatedAtOk() (*string, 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 *V0AppleAPICredentialResponseItem) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. +func (o *V0AppleAPICredentialResponseItem) SetCreatedAt(v string) { + o.CreatedAt = &v +} + +// GetIssuerId returns the IssuerId field value if set, zero value otherwise. +func (o *V0AppleAPICredentialResponseItem) GetIssuerId() string { + if o == nil || IsNil(o.IssuerId) { + var ret string + return ret + } + return *o.IssuerId +} + +// GetIssuerIdOk returns a tuple with the IssuerId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppleAPICredentialResponseItem) GetIssuerIdOk() (*string, bool) { + if o == nil || IsNil(o.IssuerId) { + return nil, false + } + return o.IssuerId, true +} + +// HasIssuerId returns a boolean if a field has been set. +func (o *V0AppleAPICredentialResponseItem) HasIssuerId() bool { + if o != nil && !IsNil(o.IssuerId) { + return true + } + + return false +} + +// SetIssuerId gets a reference to the given string and assigns it to the IssuerId field. +func (o *V0AppleAPICredentialResponseItem) SetIssuerId(v string) { + o.IssuerId = &v +} + +// GetKeyId returns the KeyId field value if set, zero value otherwise. +func (o *V0AppleAPICredentialResponseItem) GetKeyId() string { + if o == nil || IsNil(o.KeyId) { + var ret string + return ret + } + return *o.KeyId +} + +// GetKeyIdOk returns a tuple with the KeyId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppleAPICredentialResponseItem) GetKeyIdOk() (*string, bool) { + if o == nil || IsNil(o.KeyId) { + return nil, false + } + return o.KeyId, true +} + +// HasKeyId returns a boolean if a field has been set. +func (o *V0AppleAPICredentialResponseItem) HasKeyId() bool { + if o != nil && !IsNil(o.KeyId) { + return true + } + + return false +} + +// SetKeyId gets a reference to the given string and assigns it to the KeyId field. +func (o *V0AppleAPICredentialResponseItem) SetKeyId(v string) { + o.KeyId = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V0AppleAPICredentialResponseItem) 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 *V0AppleAPICredentialResponseItem) 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 *V0AppleAPICredentialResponseItem) 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 *V0AppleAPICredentialResponseItem) SetName(v string) { + o.Name = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0AppleAPICredentialResponseItem) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0AppleAPICredentialResponseItem) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0AppleAPICredentialResponseItem) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0AppleAPICredentialResponseItem) SetSlug(v string) { + o.Slug = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *V0AppleAPICredentialResponseItem) GetUpdatedAt() string { + if o == nil || IsNil(o.UpdatedAt) { + var ret string + 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 *V0AppleAPICredentialResponseItem) GetUpdatedAtOk() (*string, 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 *V0AppleAPICredentialResponseItem) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. +func (o *V0AppleAPICredentialResponseItem) SetUpdatedAt(v string) { + o.UpdatedAt = &v +} + +func (o V0AppleAPICredentialResponseItem) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppleAPICredentialResponseItem) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.IssuerId) { + toSerialize["issuer_id"] = o.IssuerId + } + if !IsNil(o.KeyId) { + toSerialize["key_id"] = o.KeyId + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableV0AppleAPICredentialResponseItem struct { + value *V0AppleAPICredentialResponseItem + isSet bool +} + +func (v NullableV0AppleAPICredentialResponseItem) Get() *V0AppleAPICredentialResponseItem { + return v.value +} + +func (v *NullableV0AppleAPICredentialResponseItem) Set(val *V0AppleAPICredentialResponseItem) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppleAPICredentialResponseItem) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppleAPICredentialResponseItem) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppleAPICredentialResponseItem(val *V0AppleAPICredentialResponseItem) *NullableV0AppleAPICredentialResponseItem { + return &NullableV0AppleAPICredentialResponseItem{value: val, isSet: true} +} + +func (v NullableV0AppleAPICredentialResponseItem) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppleAPICredentialResponseItem) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_apple_api_credentials_list_response.go b/go2/model_v0_apple_api_credentials_list_response.go new file mode 100644 index 0000000..3c1c640 --- /dev/null +++ b/go2/model_v0_apple_api_credentials_list_response.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0AppleAPICredentialsListResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0AppleAPICredentialsListResponse{} + +// V0AppleAPICredentialsListResponse struct for V0AppleAPICredentialsListResponse +type V0AppleAPICredentialsListResponse struct { + Data []V0AppleAPICredentialResponseItem `json:"data,omitempty"` +} + +// NewV0AppleAPICredentialsListResponse instantiates a new V0AppleAPICredentialsListResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0AppleAPICredentialsListResponse() *V0AppleAPICredentialsListResponse { + this := V0AppleAPICredentialsListResponse{} + return &this +} + +// NewV0AppleAPICredentialsListResponseWithDefaults instantiates a new V0AppleAPICredentialsListResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0AppleAPICredentialsListResponseWithDefaults() *V0AppleAPICredentialsListResponse { + this := V0AppleAPICredentialsListResponse{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0AppleAPICredentialsListResponse) GetData() []V0AppleAPICredentialResponseItem { + if o == nil || IsNil(o.Data) { + var ret []V0AppleAPICredentialResponseItem + 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 *V0AppleAPICredentialsListResponse) GetDataOk() ([]V0AppleAPICredentialResponseItem, 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 *V0AppleAPICredentialsListResponse) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0AppleAPICredentialResponseItem and assigns it to the Data field. +func (o *V0AppleAPICredentialsListResponse) SetData(v []V0AppleAPICredentialResponseItem) { + o.Data = v +} + +func (o V0AppleAPICredentialsListResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0AppleAPICredentialsListResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0AppleAPICredentialsListResponse struct { + value *V0AppleAPICredentialsListResponse + isSet bool +} + +func (v NullableV0AppleAPICredentialsListResponse) Get() *V0AppleAPICredentialsListResponse { + return v.value +} + +func (v *NullableV0AppleAPICredentialsListResponse) Set(val *V0AppleAPICredentialsListResponse) { + v.value = val + v.isSet = true +} + +func (v NullableV0AppleAPICredentialsListResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableV0AppleAPICredentialsListResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0AppleAPICredentialsListResponse(val *V0AppleAPICredentialsListResponse) *NullableV0AppleAPICredentialsListResponse { + return &NullableV0AppleAPICredentialsListResponse{value: val, isSet: true} +} + +func (v NullableV0AppleAPICredentialsListResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0AppleAPICredentialsListResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_archived_build_artifact.go b/go2/model_v0_archived_build_artifact.go new file mode 100644 index 0000000..eef255b --- /dev/null +++ b/go2/model_v0_archived_build_artifact.go @@ -0,0 +1,379 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ArchivedBuildArtifact type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ArchivedBuildArtifact{} + +// V0ArchivedBuildArtifact struct for V0ArchivedBuildArtifact +type V0ArchivedBuildArtifact struct { + ArtifactMeta map[string]interface{} `json:"artifact_meta,omitempty"` + ArtifactType *string `json:"artifact_type,omitempty"` + CreatedAt *string `json:"created_at,omitempty"` + FileSizeBytes *int32 `json:"file_size_bytes,omitempty"` + Id *string `json:"id,omitempty"` + IsPublicPageEnabled *bool `json:"is_public_page_enabled,omitempty"` + PublicPageToken *string `json:"public_page_token,omitempty"` + Title *string `json:"title,omitempty"` +} + +// NewV0ArchivedBuildArtifact instantiates a new V0ArchivedBuildArtifact object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ArchivedBuildArtifact() *V0ArchivedBuildArtifact { + this := V0ArchivedBuildArtifact{} + return &this +} + +// NewV0ArchivedBuildArtifactWithDefaults instantiates a new V0ArchivedBuildArtifact object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ArchivedBuildArtifactWithDefaults() *V0ArchivedBuildArtifact { + this := V0ArchivedBuildArtifact{} + return &this +} + +// GetArtifactMeta returns the ArtifactMeta field value if set, zero value otherwise. +func (o *V0ArchivedBuildArtifact) GetArtifactMeta() map[string]interface{} { + if o == nil || IsNil(o.ArtifactMeta) { + var ret map[string]interface{} + return ret + } + return o.ArtifactMeta +} + +// GetArtifactMetaOk returns a tuple with the ArtifactMeta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildArtifact) GetArtifactMetaOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.ArtifactMeta) { + return map[string]interface{}{}, false + } + return o.ArtifactMeta, true +} + +// HasArtifactMeta returns a boolean if a field has been set. +func (o *V0ArchivedBuildArtifact) HasArtifactMeta() bool { + if o != nil && !IsNil(o.ArtifactMeta) { + return true + } + + return false +} + +// SetArtifactMeta gets a reference to the given map[string]interface{} and assigns it to the ArtifactMeta field. +func (o *V0ArchivedBuildArtifact) SetArtifactMeta(v map[string]interface{}) { + o.ArtifactMeta = v +} + +// GetArtifactType returns the ArtifactType field value if set, zero value otherwise. +func (o *V0ArchivedBuildArtifact) GetArtifactType() string { + if o == nil || IsNil(o.ArtifactType) { + var ret string + return ret + } + return *o.ArtifactType +} + +// GetArtifactTypeOk returns a tuple with the ArtifactType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildArtifact) GetArtifactTypeOk() (*string, bool) { + if o == nil || IsNil(o.ArtifactType) { + return nil, false + } + return o.ArtifactType, true +} + +// HasArtifactType returns a boolean if a field has been set. +func (o *V0ArchivedBuildArtifact) HasArtifactType() bool { + if o != nil && !IsNil(o.ArtifactType) { + return true + } + + return false +} + +// SetArtifactType gets a reference to the given string and assigns it to the ArtifactType field. +func (o *V0ArchivedBuildArtifact) SetArtifactType(v string) { + o.ArtifactType = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *V0ArchivedBuildArtifact) GetCreatedAt() string { + if o == nil || IsNil(o.CreatedAt) { + var ret string + 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 *V0ArchivedBuildArtifact) GetCreatedAtOk() (*string, 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 *V0ArchivedBuildArtifact) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. +func (o *V0ArchivedBuildArtifact) SetCreatedAt(v string) { + o.CreatedAt = &v +} + +// GetFileSizeBytes returns the FileSizeBytes field value if set, zero value otherwise. +func (o *V0ArchivedBuildArtifact) GetFileSizeBytes() int32 { + if o == nil || IsNil(o.FileSizeBytes) { + var ret int32 + return ret + } + return *o.FileSizeBytes +} + +// GetFileSizeBytesOk returns a tuple with the FileSizeBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildArtifact) GetFileSizeBytesOk() (*int32, bool) { + if o == nil || IsNil(o.FileSizeBytes) { + return nil, false + } + return o.FileSizeBytes, true +} + +// HasFileSizeBytes returns a boolean if a field has been set. +func (o *V0ArchivedBuildArtifact) HasFileSizeBytes() bool { + if o != nil && !IsNil(o.FileSizeBytes) { + return true + } + + return false +} + +// SetFileSizeBytes gets a reference to the given int32 and assigns it to the FileSizeBytes field. +func (o *V0ArchivedBuildArtifact) SetFileSizeBytes(v int32) { + o.FileSizeBytes = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *V0ArchivedBuildArtifact) 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 *V0ArchivedBuildArtifact) 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 *V0ArchivedBuildArtifact) 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 *V0ArchivedBuildArtifact) SetId(v string) { + o.Id = &v +} + +// GetIsPublicPageEnabled returns the IsPublicPageEnabled field value if set, zero value otherwise. +func (o *V0ArchivedBuildArtifact) GetIsPublicPageEnabled() bool { + if o == nil || IsNil(o.IsPublicPageEnabled) { + var ret bool + return ret + } + return *o.IsPublicPageEnabled +} + +// GetIsPublicPageEnabledOk returns a tuple with the IsPublicPageEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildArtifact) GetIsPublicPageEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.IsPublicPageEnabled) { + return nil, false + } + return o.IsPublicPageEnabled, true +} + +// HasIsPublicPageEnabled returns a boolean if a field has been set. +func (o *V0ArchivedBuildArtifact) HasIsPublicPageEnabled() bool { + if o != nil && !IsNil(o.IsPublicPageEnabled) { + return true + } + + return false +} + +// SetIsPublicPageEnabled gets a reference to the given bool and assigns it to the IsPublicPageEnabled field. +func (o *V0ArchivedBuildArtifact) SetIsPublicPageEnabled(v bool) { + o.IsPublicPageEnabled = &v +} + +// GetPublicPageToken returns the PublicPageToken field value if set, zero value otherwise. +func (o *V0ArchivedBuildArtifact) GetPublicPageToken() string { + if o == nil || IsNil(o.PublicPageToken) { + var ret string + return ret + } + return *o.PublicPageToken +} + +// GetPublicPageTokenOk returns a tuple with the PublicPageToken field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildArtifact) GetPublicPageTokenOk() (*string, bool) { + if o == nil || IsNil(o.PublicPageToken) { + return nil, false + } + return o.PublicPageToken, true +} + +// HasPublicPageToken returns a boolean if a field has been set. +func (o *V0ArchivedBuildArtifact) HasPublicPageToken() bool { + if o != nil && !IsNil(o.PublicPageToken) { + return true + } + + return false +} + +// SetPublicPageToken gets a reference to the given string and assigns it to the PublicPageToken field. +func (o *V0ArchivedBuildArtifact) SetPublicPageToken(v string) { + o.PublicPageToken = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *V0ArchivedBuildArtifact) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildArtifact) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *V0ArchivedBuildArtifact) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *V0ArchivedBuildArtifact) SetTitle(v string) { + o.Title = &v +} + +func (o V0ArchivedBuildArtifact) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ArchivedBuildArtifact) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ArtifactMeta) { + toSerialize["artifact_meta"] = o.ArtifactMeta + } + if !IsNil(o.ArtifactType) { + toSerialize["artifact_type"] = o.ArtifactType + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.FileSizeBytes) { + toSerialize["file_size_bytes"] = o.FileSizeBytes + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.IsPublicPageEnabled) { + toSerialize["is_public_page_enabled"] = o.IsPublicPageEnabled + } + if !IsNil(o.PublicPageToken) { + toSerialize["public_page_token"] = o.PublicPageToken + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + return toSerialize, nil +} + +type NullableV0ArchivedBuildArtifact struct { + value *V0ArchivedBuildArtifact + isSet bool +} + +func (v NullableV0ArchivedBuildArtifact) Get() *V0ArchivedBuildArtifact { + return v.value +} + +func (v *NullableV0ArchivedBuildArtifact) Set(val *V0ArchivedBuildArtifact) { + v.value = val + v.isSet = true +} + +func (v NullableV0ArchivedBuildArtifact) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ArchivedBuildArtifact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ArchivedBuildArtifact(val *V0ArchivedBuildArtifact) *NullableV0ArchivedBuildArtifact { + return &NullableV0ArchivedBuildArtifact{value: val, isSet: true} +} + +func (v NullableV0ArchivedBuildArtifact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ArchivedBuildArtifact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_archived_build_list_response_model.go b/go2/model_v0_archived_build_list_response_model.go new file mode 100644 index 0000000..e7401b1 --- /dev/null +++ b/go2/model_v0_archived_build_list_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ArchivedBuildListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ArchivedBuildListResponseModel{} + +// V0ArchivedBuildListResponseModel struct for V0ArchivedBuildListResponseModel +type V0ArchivedBuildListResponseModel struct { + Data []V0ArchivedBuildResponseItemModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0ArchivedBuildListResponseModel instantiates a new V0ArchivedBuildListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ArchivedBuildListResponseModel() *V0ArchivedBuildListResponseModel { + this := V0ArchivedBuildListResponseModel{} + return &this +} + +// NewV0ArchivedBuildListResponseModelWithDefaults instantiates a new V0ArchivedBuildListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ArchivedBuildListResponseModelWithDefaults() *V0ArchivedBuildListResponseModel { + this := V0ArchivedBuildListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0ArchivedBuildListResponseModel) GetData() []V0ArchivedBuildResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0ArchivedBuildResponseItemModel + 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 *V0ArchivedBuildListResponseModel) GetDataOk() ([]V0ArchivedBuildResponseItemModel, 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 *V0ArchivedBuildListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0ArchivedBuildResponseItemModel and assigns it to the Data field. +func (o *V0ArchivedBuildListResponseModel) SetData(v []V0ArchivedBuildResponseItemModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0ArchivedBuildListResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0ArchivedBuildListResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0ArchivedBuildListResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0ArchivedBuildListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ArchivedBuildListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0ArchivedBuildListResponseModel struct { + value *V0ArchivedBuildListResponseModel + isSet bool +} + +func (v NullableV0ArchivedBuildListResponseModel) Get() *V0ArchivedBuildListResponseModel { + return v.value +} + +func (v *NullableV0ArchivedBuildListResponseModel) Set(val *V0ArchivedBuildListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ArchivedBuildListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ArchivedBuildListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ArchivedBuildListResponseModel(val *V0ArchivedBuildListResponseModel) *NullableV0ArchivedBuildListResponseModel { + return &NullableV0ArchivedBuildListResponseModel{value: val, isSet: true} +} + +func (v NullableV0ArchivedBuildListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ArchivedBuildListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_archived_build_response_item_model.go b/go2/model_v0_archived_build_response_item_model.go new file mode 100644 index 0000000..9d5f5a1 --- /dev/null +++ b/go2/model_v0_archived_build_response_item_model.go @@ -0,0 +1,883 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ArchivedBuildResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ArchivedBuildResponseItemModel{} + +// V0ArchivedBuildResponseItemModel struct for V0ArchivedBuildResponseItemModel +type V0ArchivedBuildResponseItemModel struct { + AbortReason *string `json:"abort_reason,omitempty"` + Branch *string `json:"branch,omitempty"` + BuildArtifacts []V0ArchivedBuildArtifact `json:"build_artifacts,omitempty"` + BuildNumber *int32 `json:"build_number,omitempty"` + CommitHash *string `json:"commit_hash,omitempty"` + CommitMessage *string `json:"commit_message,omitempty"` + CreditCost *int32 `json:"credit_cost,omitempty"` + FinishedAt *string `json:"finished_at,omitempty"` + MachineTypeId *string `json:"machine_type_id,omitempty"` + OriginalBuildParams []int32 `json:"original_build_params,omitempty"` + PipelineWorkflowId *string `json:"pipeline_workflow_id,omitempty"` + PullRequestId *int32 `json:"pull_request_id,omitempty"` + PullRequestTargetBranch *string `json:"pull_request_target_branch,omitempty"` + PullRequestViewUrl *string `json:"pull_request_view_url,omitempty"` + Slug *string `json:"slug,omitempty"` + StackIdentifier *string `json:"stack_identifier,omitempty"` + StartedOnWorkerAt *string `json:"started_on_worker_at,omitempty"` + Status *int32 `json:"status,omitempty"` + StatusText *string `json:"status_text,omitempty"` + Tag *string `json:"tag,omitempty"` + TriggeredBy *string `json:"triggered_by,omitempty"` + TriggeredWorkflow *string `json:"triggered_workflow,omitempty"` +} + +// NewV0ArchivedBuildResponseItemModel instantiates a new V0ArchivedBuildResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ArchivedBuildResponseItemModel() *V0ArchivedBuildResponseItemModel { + this := V0ArchivedBuildResponseItemModel{} + return &this +} + +// NewV0ArchivedBuildResponseItemModelWithDefaults instantiates a new V0ArchivedBuildResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ArchivedBuildResponseItemModelWithDefaults() *V0ArchivedBuildResponseItemModel { + this := V0ArchivedBuildResponseItemModel{} + return &this +} + +// GetAbortReason returns the AbortReason field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetAbortReason() string { + if o == nil || IsNil(o.AbortReason) { + var ret string + return ret + } + return *o.AbortReason +} + +// GetAbortReasonOk returns a tuple with the AbortReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetAbortReasonOk() (*string, bool) { + if o == nil || IsNil(o.AbortReason) { + return nil, false + } + return o.AbortReason, true +} + +// HasAbortReason returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasAbortReason() bool { + if o != nil && !IsNil(o.AbortReason) { + return true + } + + return false +} + +// SetAbortReason gets a reference to the given string and assigns it to the AbortReason field. +func (o *V0ArchivedBuildResponseItemModel) SetAbortReason(v string) { + o.AbortReason = &v +} + +// GetBranch returns the Branch field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetBranch() string { + if o == nil || IsNil(o.Branch) { + var ret string + return ret + } + return *o.Branch +} + +// GetBranchOk returns a tuple with the Branch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetBranchOk() (*string, bool) { + if o == nil || IsNil(o.Branch) { + return nil, false + } + return o.Branch, true +} + +// HasBranch returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasBranch() bool { + if o != nil && !IsNil(o.Branch) { + return true + } + + return false +} + +// SetBranch gets a reference to the given string and assigns it to the Branch field. +func (o *V0ArchivedBuildResponseItemModel) SetBranch(v string) { + o.Branch = &v +} + +// GetBuildArtifacts returns the BuildArtifacts field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetBuildArtifacts() []V0ArchivedBuildArtifact { + if o == nil || IsNil(o.BuildArtifacts) { + var ret []V0ArchivedBuildArtifact + return ret + } + return o.BuildArtifacts +} + +// GetBuildArtifactsOk returns a tuple with the BuildArtifacts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetBuildArtifactsOk() ([]V0ArchivedBuildArtifact, bool) { + if o == nil || IsNil(o.BuildArtifacts) { + return nil, false + } + return o.BuildArtifacts, true +} + +// HasBuildArtifacts returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasBuildArtifacts() bool { + if o != nil && !IsNil(o.BuildArtifacts) { + return true + } + + return false +} + +// SetBuildArtifacts gets a reference to the given []V0ArchivedBuildArtifact and assigns it to the BuildArtifacts field. +func (o *V0ArchivedBuildResponseItemModel) SetBuildArtifacts(v []V0ArchivedBuildArtifact) { + o.BuildArtifacts = v +} + +// GetBuildNumber returns the BuildNumber field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetBuildNumber() int32 { + if o == nil || IsNil(o.BuildNumber) { + var ret int32 + return ret + } + return *o.BuildNumber +} + +// GetBuildNumberOk returns a tuple with the BuildNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetBuildNumberOk() (*int32, bool) { + if o == nil || IsNil(o.BuildNumber) { + return nil, false + } + return o.BuildNumber, true +} + +// HasBuildNumber returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasBuildNumber() bool { + if o != nil && !IsNil(o.BuildNumber) { + return true + } + + return false +} + +// SetBuildNumber gets a reference to the given int32 and assigns it to the BuildNumber field. +func (o *V0ArchivedBuildResponseItemModel) SetBuildNumber(v int32) { + o.BuildNumber = &v +} + +// GetCommitHash returns the CommitHash field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetCommitHash() string { + if o == nil || IsNil(o.CommitHash) { + var ret string + return ret + } + return *o.CommitHash +} + +// GetCommitHashOk returns a tuple with the CommitHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetCommitHashOk() (*string, bool) { + if o == nil || IsNil(o.CommitHash) { + return nil, false + } + return o.CommitHash, true +} + +// HasCommitHash returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasCommitHash() bool { + if o != nil && !IsNil(o.CommitHash) { + return true + } + + return false +} + +// SetCommitHash gets a reference to the given string and assigns it to the CommitHash field. +func (o *V0ArchivedBuildResponseItemModel) SetCommitHash(v string) { + o.CommitHash = &v +} + +// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetCommitMessage() string { + if o == nil || IsNil(o.CommitMessage) { + var ret string + return ret + } + return *o.CommitMessage +} + +// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetCommitMessageOk() (*string, bool) { + if o == nil || IsNil(o.CommitMessage) { + return nil, false + } + return o.CommitMessage, true +} + +// HasCommitMessage returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasCommitMessage() bool { + if o != nil && !IsNil(o.CommitMessage) { + return true + } + + return false +} + +// SetCommitMessage gets a reference to the given string and assigns it to the CommitMessage field. +func (o *V0ArchivedBuildResponseItemModel) SetCommitMessage(v string) { + o.CommitMessage = &v +} + +// GetCreditCost returns the CreditCost field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetCreditCost() int32 { + if o == nil || IsNil(o.CreditCost) { + var ret int32 + return ret + } + return *o.CreditCost +} + +// GetCreditCostOk returns a tuple with the CreditCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetCreditCostOk() (*int32, bool) { + if o == nil || IsNil(o.CreditCost) { + return nil, false + } + return o.CreditCost, true +} + +// HasCreditCost returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasCreditCost() bool { + if o != nil && !IsNil(o.CreditCost) { + return true + } + + return false +} + +// SetCreditCost gets a reference to the given int32 and assigns it to the CreditCost field. +func (o *V0ArchivedBuildResponseItemModel) SetCreditCost(v int32) { + o.CreditCost = &v +} + +// GetFinishedAt returns the FinishedAt field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetFinishedAt() string { + if o == nil || IsNil(o.FinishedAt) { + var ret string + return ret + } + return *o.FinishedAt +} + +// GetFinishedAtOk returns a tuple with the FinishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetFinishedAtOk() (*string, bool) { + if o == nil || IsNil(o.FinishedAt) { + return nil, false + } + return o.FinishedAt, true +} + +// HasFinishedAt returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasFinishedAt() bool { + if o != nil && !IsNil(o.FinishedAt) { + return true + } + + return false +} + +// SetFinishedAt gets a reference to the given string and assigns it to the FinishedAt field. +func (o *V0ArchivedBuildResponseItemModel) SetFinishedAt(v string) { + o.FinishedAt = &v +} + +// GetMachineTypeId returns the MachineTypeId field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetMachineTypeId() string { + if o == nil || IsNil(o.MachineTypeId) { + var ret string + return ret + } + return *o.MachineTypeId +} + +// GetMachineTypeIdOk returns a tuple with the MachineTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetMachineTypeIdOk() (*string, bool) { + if o == nil || IsNil(o.MachineTypeId) { + return nil, false + } + return o.MachineTypeId, true +} + +// HasMachineTypeId returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasMachineTypeId() bool { + if o != nil && !IsNil(o.MachineTypeId) { + return true + } + + return false +} + +// SetMachineTypeId gets a reference to the given string and assigns it to the MachineTypeId field. +func (o *V0ArchivedBuildResponseItemModel) SetMachineTypeId(v string) { + o.MachineTypeId = &v +} + +// GetOriginalBuildParams returns the OriginalBuildParams field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetOriginalBuildParams() []int32 { + if o == nil || IsNil(o.OriginalBuildParams) { + var ret []int32 + return ret + } + return o.OriginalBuildParams +} + +// GetOriginalBuildParamsOk returns a tuple with the OriginalBuildParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetOriginalBuildParamsOk() ([]int32, bool) { + if o == nil || IsNil(o.OriginalBuildParams) { + return nil, false + } + return o.OriginalBuildParams, true +} + +// HasOriginalBuildParams returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasOriginalBuildParams() bool { + if o != nil && !IsNil(o.OriginalBuildParams) { + return true + } + + return false +} + +// SetOriginalBuildParams gets a reference to the given []int32 and assigns it to the OriginalBuildParams field. +func (o *V0ArchivedBuildResponseItemModel) SetOriginalBuildParams(v []int32) { + o.OriginalBuildParams = v +} + +// GetPipelineWorkflowId returns the PipelineWorkflowId field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetPipelineWorkflowId() string { + if o == nil || IsNil(o.PipelineWorkflowId) { + var ret string + return ret + } + return *o.PipelineWorkflowId +} + +// GetPipelineWorkflowIdOk returns a tuple with the PipelineWorkflowId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetPipelineWorkflowIdOk() (*string, bool) { + if o == nil || IsNil(o.PipelineWorkflowId) { + return nil, false + } + return o.PipelineWorkflowId, true +} + +// HasPipelineWorkflowId returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasPipelineWorkflowId() bool { + if o != nil && !IsNil(o.PipelineWorkflowId) { + return true + } + + return false +} + +// SetPipelineWorkflowId gets a reference to the given string and assigns it to the PipelineWorkflowId field. +func (o *V0ArchivedBuildResponseItemModel) SetPipelineWorkflowId(v string) { + o.PipelineWorkflowId = &v +} + +// GetPullRequestId returns the PullRequestId field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetPullRequestId() int32 { + if o == nil || IsNil(o.PullRequestId) { + var ret int32 + return ret + } + return *o.PullRequestId +} + +// GetPullRequestIdOk returns a tuple with the PullRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetPullRequestIdOk() (*int32, bool) { + if o == nil || IsNil(o.PullRequestId) { + return nil, false + } + return o.PullRequestId, true +} + +// HasPullRequestId returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasPullRequestId() bool { + if o != nil && !IsNil(o.PullRequestId) { + return true + } + + return false +} + +// SetPullRequestId gets a reference to the given int32 and assigns it to the PullRequestId field. +func (o *V0ArchivedBuildResponseItemModel) SetPullRequestId(v int32) { + o.PullRequestId = &v +} + +// GetPullRequestTargetBranch returns the PullRequestTargetBranch field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetPullRequestTargetBranch() string { + if o == nil || IsNil(o.PullRequestTargetBranch) { + var ret string + return ret + } + return *o.PullRequestTargetBranch +} + +// GetPullRequestTargetBranchOk returns a tuple with the PullRequestTargetBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetPullRequestTargetBranchOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestTargetBranch) { + return nil, false + } + return o.PullRequestTargetBranch, true +} + +// HasPullRequestTargetBranch returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasPullRequestTargetBranch() bool { + if o != nil && !IsNil(o.PullRequestTargetBranch) { + return true + } + + return false +} + +// SetPullRequestTargetBranch gets a reference to the given string and assigns it to the PullRequestTargetBranch field. +func (o *V0ArchivedBuildResponseItemModel) SetPullRequestTargetBranch(v string) { + o.PullRequestTargetBranch = &v +} + +// GetPullRequestViewUrl returns the PullRequestViewUrl field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetPullRequestViewUrl() string { + if o == nil || IsNil(o.PullRequestViewUrl) { + var ret string + return ret + } + return *o.PullRequestViewUrl +} + +// GetPullRequestViewUrlOk returns a tuple with the PullRequestViewUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetPullRequestViewUrlOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestViewUrl) { + return nil, false + } + return o.PullRequestViewUrl, true +} + +// HasPullRequestViewUrl returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasPullRequestViewUrl() bool { + if o != nil && !IsNil(o.PullRequestViewUrl) { + return true + } + + return false +} + +// SetPullRequestViewUrl gets a reference to the given string and assigns it to the PullRequestViewUrl field. +func (o *V0ArchivedBuildResponseItemModel) SetPullRequestViewUrl(v string) { + o.PullRequestViewUrl = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0ArchivedBuildResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetStackIdentifier returns the StackIdentifier field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetStackIdentifier() string { + if o == nil || IsNil(o.StackIdentifier) { + var ret string + return ret + } + return *o.StackIdentifier +} + +// GetStackIdentifierOk returns a tuple with the StackIdentifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetStackIdentifierOk() (*string, bool) { + if o == nil || IsNil(o.StackIdentifier) { + return nil, false + } + return o.StackIdentifier, true +} + +// HasStackIdentifier returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasStackIdentifier() bool { + if o != nil && !IsNil(o.StackIdentifier) { + return true + } + + return false +} + +// SetStackIdentifier gets a reference to the given string and assigns it to the StackIdentifier field. +func (o *V0ArchivedBuildResponseItemModel) SetStackIdentifier(v string) { + o.StackIdentifier = &v +} + +// GetStartedOnWorkerAt returns the StartedOnWorkerAt field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetStartedOnWorkerAt() string { + if o == nil || IsNil(o.StartedOnWorkerAt) { + var ret string + return ret + } + return *o.StartedOnWorkerAt +} + +// GetStartedOnWorkerAtOk returns a tuple with the StartedOnWorkerAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetStartedOnWorkerAtOk() (*string, bool) { + if o == nil || IsNil(o.StartedOnWorkerAt) { + return nil, false + } + return o.StartedOnWorkerAt, true +} + +// HasStartedOnWorkerAt returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasStartedOnWorkerAt() bool { + if o != nil && !IsNil(o.StartedOnWorkerAt) { + return true + } + + return false +} + +// SetStartedOnWorkerAt gets a reference to the given string and assigns it to the StartedOnWorkerAt field. +func (o *V0ArchivedBuildResponseItemModel) SetStartedOnWorkerAt(v string) { + o.StartedOnWorkerAt = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetStatusOk() (*int32, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *V0ArchivedBuildResponseItemModel) SetStatus(v int32) { + o.Status = &v +} + +// GetStatusText returns the StatusText field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetStatusText() string { + if o == nil || IsNil(o.StatusText) { + var ret string + return ret + } + return *o.StatusText +} + +// GetStatusTextOk returns a tuple with the StatusText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetStatusTextOk() (*string, bool) { + if o == nil || IsNil(o.StatusText) { + return nil, false + } + return o.StatusText, true +} + +// HasStatusText returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasStatusText() bool { + if o != nil && !IsNil(o.StatusText) { + return true + } + + return false +} + +// SetStatusText gets a reference to the given string and assigns it to the StatusText field. +func (o *V0ArchivedBuildResponseItemModel) SetStatusText(v string) { + o.StatusText = &v +} + +// GetTag returns the Tag field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetTag() string { + if o == nil || IsNil(o.Tag) { + var ret string + return ret + } + return *o.Tag +} + +// GetTagOk returns a tuple with the Tag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetTagOk() (*string, bool) { + if o == nil || IsNil(o.Tag) { + return nil, false + } + return o.Tag, true +} + +// HasTag returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasTag() bool { + if o != nil && !IsNil(o.Tag) { + return true + } + + return false +} + +// SetTag gets a reference to the given string and assigns it to the Tag field. +func (o *V0ArchivedBuildResponseItemModel) SetTag(v string) { + o.Tag = &v +} + +// GetTriggeredBy returns the TriggeredBy field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetTriggeredBy() string { + if o == nil || IsNil(o.TriggeredBy) { + var ret string + return ret + } + return *o.TriggeredBy +} + +// GetTriggeredByOk returns a tuple with the TriggeredBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetTriggeredByOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredBy) { + return nil, false + } + return o.TriggeredBy, true +} + +// HasTriggeredBy returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasTriggeredBy() bool { + if o != nil && !IsNil(o.TriggeredBy) { + return true + } + + return false +} + +// SetTriggeredBy gets a reference to the given string and assigns it to the TriggeredBy field. +func (o *V0ArchivedBuildResponseItemModel) SetTriggeredBy(v string) { + o.TriggeredBy = &v +} + +// GetTriggeredWorkflow returns the TriggeredWorkflow field value if set, zero value otherwise. +func (o *V0ArchivedBuildResponseItemModel) GetTriggeredWorkflow() string { + if o == nil || IsNil(o.TriggeredWorkflow) { + var ret string + return ret + } + return *o.TriggeredWorkflow +} + +// GetTriggeredWorkflowOk returns a tuple with the TriggeredWorkflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArchivedBuildResponseItemModel) GetTriggeredWorkflowOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredWorkflow) { + return nil, false + } + return o.TriggeredWorkflow, true +} + +// HasTriggeredWorkflow returns a boolean if a field has been set. +func (o *V0ArchivedBuildResponseItemModel) HasTriggeredWorkflow() bool { + if o != nil && !IsNil(o.TriggeredWorkflow) { + return true + } + + return false +} + +// SetTriggeredWorkflow gets a reference to the given string and assigns it to the TriggeredWorkflow field. +func (o *V0ArchivedBuildResponseItemModel) SetTriggeredWorkflow(v string) { + o.TriggeredWorkflow = &v +} + +func (o V0ArchivedBuildResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ArchivedBuildResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AbortReason) { + toSerialize["abort_reason"] = o.AbortReason + } + if !IsNil(o.Branch) { + toSerialize["branch"] = o.Branch + } + if !IsNil(o.BuildArtifacts) { + toSerialize["build_artifacts"] = o.BuildArtifacts + } + if !IsNil(o.BuildNumber) { + toSerialize["build_number"] = o.BuildNumber + } + if !IsNil(o.CommitHash) { + toSerialize["commit_hash"] = o.CommitHash + } + if !IsNil(o.CommitMessage) { + toSerialize["commit_message"] = o.CommitMessage + } + if !IsNil(o.CreditCost) { + toSerialize["credit_cost"] = o.CreditCost + } + if !IsNil(o.FinishedAt) { + toSerialize["finished_at"] = o.FinishedAt + } + if !IsNil(o.MachineTypeId) { + toSerialize["machine_type_id"] = o.MachineTypeId + } + if !IsNil(o.OriginalBuildParams) { + toSerialize["original_build_params"] = o.OriginalBuildParams + } + if !IsNil(o.PipelineWorkflowId) { + toSerialize["pipeline_workflow_id"] = o.PipelineWorkflowId + } + if !IsNil(o.PullRequestId) { + toSerialize["pull_request_id"] = o.PullRequestId + } + if !IsNil(o.PullRequestTargetBranch) { + toSerialize["pull_request_target_branch"] = o.PullRequestTargetBranch + } + if !IsNil(o.PullRequestViewUrl) { + toSerialize["pull_request_view_url"] = o.PullRequestViewUrl + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.StackIdentifier) { + toSerialize["stack_identifier"] = o.StackIdentifier + } + if !IsNil(o.StartedOnWorkerAt) { + toSerialize["started_on_worker_at"] = o.StartedOnWorkerAt + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.StatusText) { + toSerialize["status_text"] = o.StatusText + } + if !IsNil(o.Tag) { + toSerialize["tag"] = o.Tag + } + if !IsNil(o.TriggeredBy) { + toSerialize["triggered_by"] = o.TriggeredBy + } + if !IsNil(o.TriggeredWorkflow) { + toSerialize["triggered_workflow"] = o.TriggeredWorkflow + } + return toSerialize, nil +} + +type NullableV0ArchivedBuildResponseItemModel struct { + value *V0ArchivedBuildResponseItemModel + isSet bool +} + +func (v NullableV0ArchivedBuildResponseItemModel) Get() *V0ArchivedBuildResponseItemModel { + return v.value +} + +func (v *NullableV0ArchivedBuildResponseItemModel) Set(val *V0ArchivedBuildResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ArchivedBuildResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ArchivedBuildResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ArchivedBuildResponseItemModel(val *V0ArchivedBuildResponseItemModel) *NullableV0ArchivedBuildResponseItemModel { + return &NullableV0ArchivedBuildResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0ArchivedBuildResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ArchivedBuildResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_artifact_delete_response_model.go b/go2/model_v0_artifact_delete_response_model.go new file mode 100644 index 0000000..fa3f9c2 --- /dev/null +++ b/go2/model_v0_artifact_delete_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ArtifactDeleteResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ArtifactDeleteResponseModel{} + +// V0ArtifactDeleteResponseModel struct for V0ArtifactDeleteResponseModel +type V0ArtifactDeleteResponseModel struct { + Data *V0ArtifactResponseItemModel `json:"data,omitempty"` +} + +// NewV0ArtifactDeleteResponseModel instantiates a new V0ArtifactDeleteResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ArtifactDeleteResponseModel() *V0ArtifactDeleteResponseModel { + this := V0ArtifactDeleteResponseModel{} + return &this +} + +// NewV0ArtifactDeleteResponseModelWithDefaults instantiates a new V0ArtifactDeleteResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ArtifactDeleteResponseModelWithDefaults() *V0ArtifactDeleteResponseModel { + this := V0ArtifactDeleteResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0ArtifactDeleteResponseModel) GetData() V0ArtifactResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret V0ArtifactResponseItemModel + 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 *V0ArtifactDeleteResponseModel) GetDataOk() (*V0ArtifactResponseItemModel, 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 *V0ArtifactDeleteResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0ArtifactResponseItemModel and assigns it to the Data field. +func (o *V0ArtifactDeleteResponseModel) SetData(v V0ArtifactResponseItemModel) { + o.Data = &v +} + +func (o V0ArtifactDeleteResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ArtifactDeleteResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0ArtifactDeleteResponseModel struct { + value *V0ArtifactDeleteResponseModel + isSet bool +} + +func (v NullableV0ArtifactDeleteResponseModel) Get() *V0ArtifactDeleteResponseModel { + return v.value +} + +func (v *NullableV0ArtifactDeleteResponseModel) Set(val *V0ArtifactDeleteResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ArtifactDeleteResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ArtifactDeleteResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ArtifactDeleteResponseModel(val *V0ArtifactDeleteResponseModel) *NullableV0ArtifactDeleteResponseModel { + return &NullableV0ArtifactDeleteResponseModel{value: val, isSet: true} +} + +func (v NullableV0ArtifactDeleteResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ArtifactDeleteResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_artifact_list_element_response_model.go b/go2/model_v0_artifact_list_element_response_model.go new file mode 100644 index 0000000..7c4f967 --- /dev/null +++ b/go2/model_v0_artifact_list_element_response_model.go @@ -0,0 +1,343 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ArtifactListElementResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ArtifactListElementResponseModel{} + +// V0ArtifactListElementResponseModel struct for V0ArtifactListElementResponseModel +type V0ArtifactListElementResponseModel struct { + ArtifactMeta []int32 `json:"artifact_meta,omitempty"` + ArtifactType *NullsString `json:"artifact_type,omitempty"` + FileSizeBytes *int32 `json:"file_size_bytes,omitempty"` + IntermediateFileInfo []int32 `json:"intermediate_file_info,omitempty"` + IsPublicPageEnabled *bool `json:"is_public_page_enabled,omitempty"` + Slug *string `json:"slug,omitempty"` + Title *NullsString `json:"title,omitempty"` +} + +// NewV0ArtifactListElementResponseModel instantiates a new V0ArtifactListElementResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ArtifactListElementResponseModel() *V0ArtifactListElementResponseModel { + this := V0ArtifactListElementResponseModel{} + return &this +} + +// NewV0ArtifactListElementResponseModelWithDefaults instantiates a new V0ArtifactListElementResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ArtifactListElementResponseModelWithDefaults() *V0ArtifactListElementResponseModel { + this := V0ArtifactListElementResponseModel{} + return &this +} + +// GetArtifactMeta returns the ArtifactMeta field value if set, zero value otherwise. +func (o *V0ArtifactListElementResponseModel) GetArtifactMeta() []int32 { + if o == nil || IsNil(o.ArtifactMeta) { + var ret []int32 + return ret + } + return o.ArtifactMeta +} + +// GetArtifactMetaOk returns a tuple with the ArtifactMeta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactListElementResponseModel) GetArtifactMetaOk() ([]int32, bool) { + if o == nil || IsNil(o.ArtifactMeta) { + return nil, false + } + return o.ArtifactMeta, true +} + +// HasArtifactMeta returns a boolean if a field has been set. +func (o *V0ArtifactListElementResponseModel) HasArtifactMeta() bool { + if o != nil && !IsNil(o.ArtifactMeta) { + return true + } + + return false +} + +// SetArtifactMeta gets a reference to the given []int32 and assigns it to the ArtifactMeta field. +func (o *V0ArtifactListElementResponseModel) SetArtifactMeta(v []int32) { + o.ArtifactMeta = v +} + +// GetArtifactType returns the ArtifactType field value if set, zero value otherwise. +func (o *V0ArtifactListElementResponseModel) GetArtifactType() NullsString { + if o == nil || IsNil(o.ArtifactType) { + var ret NullsString + return ret + } + return *o.ArtifactType +} + +// GetArtifactTypeOk returns a tuple with the ArtifactType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactListElementResponseModel) GetArtifactTypeOk() (*NullsString, bool) { + if o == nil || IsNil(o.ArtifactType) { + return nil, false + } + return o.ArtifactType, true +} + +// HasArtifactType returns a boolean if a field has been set. +func (o *V0ArtifactListElementResponseModel) HasArtifactType() bool { + if o != nil && !IsNil(o.ArtifactType) { + return true + } + + return false +} + +// SetArtifactType gets a reference to the given NullsString and assigns it to the ArtifactType field. +func (o *V0ArtifactListElementResponseModel) SetArtifactType(v NullsString) { + o.ArtifactType = &v +} + +// GetFileSizeBytes returns the FileSizeBytes field value if set, zero value otherwise. +func (o *V0ArtifactListElementResponseModel) GetFileSizeBytes() int32 { + if o == nil || IsNil(o.FileSizeBytes) { + var ret int32 + return ret + } + return *o.FileSizeBytes +} + +// GetFileSizeBytesOk returns a tuple with the FileSizeBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactListElementResponseModel) GetFileSizeBytesOk() (*int32, bool) { + if o == nil || IsNil(o.FileSizeBytes) { + return nil, false + } + return o.FileSizeBytes, true +} + +// HasFileSizeBytes returns a boolean if a field has been set. +func (o *V0ArtifactListElementResponseModel) HasFileSizeBytes() bool { + if o != nil && !IsNil(o.FileSizeBytes) { + return true + } + + return false +} + +// SetFileSizeBytes gets a reference to the given int32 and assigns it to the FileSizeBytes field. +func (o *V0ArtifactListElementResponseModel) SetFileSizeBytes(v int32) { + o.FileSizeBytes = &v +} + +// GetIntermediateFileInfo returns the IntermediateFileInfo field value if set, zero value otherwise. +func (o *V0ArtifactListElementResponseModel) GetIntermediateFileInfo() []int32 { + if o == nil || IsNil(o.IntermediateFileInfo) { + var ret []int32 + return ret + } + return o.IntermediateFileInfo +} + +// GetIntermediateFileInfoOk returns a tuple with the IntermediateFileInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactListElementResponseModel) GetIntermediateFileInfoOk() ([]int32, bool) { + if o == nil || IsNil(o.IntermediateFileInfo) { + return nil, false + } + return o.IntermediateFileInfo, true +} + +// HasIntermediateFileInfo returns a boolean if a field has been set. +func (o *V0ArtifactListElementResponseModel) HasIntermediateFileInfo() bool { + if o != nil && !IsNil(o.IntermediateFileInfo) { + return true + } + + return false +} + +// SetIntermediateFileInfo gets a reference to the given []int32 and assigns it to the IntermediateFileInfo field. +func (o *V0ArtifactListElementResponseModel) SetIntermediateFileInfo(v []int32) { + o.IntermediateFileInfo = v +} + +// GetIsPublicPageEnabled returns the IsPublicPageEnabled field value if set, zero value otherwise. +func (o *V0ArtifactListElementResponseModel) GetIsPublicPageEnabled() bool { + if o == nil || IsNil(o.IsPublicPageEnabled) { + var ret bool + return ret + } + return *o.IsPublicPageEnabled +} + +// GetIsPublicPageEnabledOk returns a tuple with the IsPublicPageEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactListElementResponseModel) GetIsPublicPageEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.IsPublicPageEnabled) { + return nil, false + } + return o.IsPublicPageEnabled, true +} + +// HasIsPublicPageEnabled returns a boolean if a field has been set. +func (o *V0ArtifactListElementResponseModel) HasIsPublicPageEnabled() bool { + if o != nil && !IsNil(o.IsPublicPageEnabled) { + return true + } + + return false +} + +// SetIsPublicPageEnabled gets a reference to the given bool and assigns it to the IsPublicPageEnabled field. +func (o *V0ArtifactListElementResponseModel) SetIsPublicPageEnabled(v bool) { + o.IsPublicPageEnabled = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0ArtifactListElementResponseModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactListElementResponseModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0ArtifactListElementResponseModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0ArtifactListElementResponseModel) SetSlug(v string) { + o.Slug = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *V0ArtifactListElementResponseModel) GetTitle() NullsString { + if o == nil || IsNil(o.Title) { + var ret NullsString + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactListElementResponseModel) GetTitleOk() (*NullsString, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *V0ArtifactListElementResponseModel) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given NullsString and assigns it to the Title field. +func (o *V0ArtifactListElementResponseModel) SetTitle(v NullsString) { + o.Title = &v +} + +func (o V0ArtifactListElementResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ArtifactListElementResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ArtifactMeta) { + toSerialize["artifact_meta"] = o.ArtifactMeta + } + if !IsNil(o.ArtifactType) { + toSerialize["artifact_type"] = o.ArtifactType + } + if !IsNil(o.FileSizeBytes) { + toSerialize["file_size_bytes"] = o.FileSizeBytes + } + if !IsNil(o.IntermediateFileInfo) { + toSerialize["intermediate_file_info"] = o.IntermediateFileInfo + } + if !IsNil(o.IsPublicPageEnabled) { + toSerialize["is_public_page_enabled"] = o.IsPublicPageEnabled + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + return toSerialize, nil +} + +type NullableV0ArtifactListElementResponseModel struct { + value *V0ArtifactListElementResponseModel + isSet bool +} + +func (v NullableV0ArtifactListElementResponseModel) Get() *V0ArtifactListElementResponseModel { + return v.value +} + +func (v *NullableV0ArtifactListElementResponseModel) Set(val *V0ArtifactListElementResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ArtifactListElementResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ArtifactListElementResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ArtifactListElementResponseModel(val *V0ArtifactListElementResponseModel) *NullableV0ArtifactListElementResponseModel { + return &NullableV0ArtifactListElementResponseModel{value: val, isSet: true} +} + +func (v NullableV0ArtifactListElementResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ArtifactListElementResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_artifact_list_response_model.go b/go2/model_v0_artifact_list_response_model.go new file mode 100644 index 0000000..f3807ca --- /dev/null +++ b/go2/model_v0_artifact_list_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ArtifactListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ArtifactListResponseModel{} + +// V0ArtifactListResponseModel struct for V0ArtifactListResponseModel +type V0ArtifactListResponseModel struct { + Data []V0ArtifactListElementResponseModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0ArtifactListResponseModel instantiates a new V0ArtifactListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ArtifactListResponseModel() *V0ArtifactListResponseModel { + this := V0ArtifactListResponseModel{} + return &this +} + +// NewV0ArtifactListResponseModelWithDefaults instantiates a new V0ArtifactListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ArtifactListResponseModelWithDefaults() *V0ArtifactListResponseModel { + this := V0ArtifactListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0ArtifactListResponseModel) GetData() []V0ArtifactListElementResponseModel { + if o == nil || IsNil(o.Data) { + var ret []V0ArtifactListElementResponseModel + 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 *V0ArtifactListResponseModel) GetDataOk() ([]V0ArtifactListElementResponseModel, 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 *V0ArtifactListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0ArtifactListElementResponseModel and assigns it to the Data field. +func (o *V0ArtifactListResponseModel) SetData(v []V0ArtifactListElementResponseModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0ArtifactListResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0ArtifactListResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0ArtifactListResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0ArtifactListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ArtifactListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0ArtifactListResponseModel struct { + value *V0ArtifactListResponseModel + isSet bool +} + +func (v NullableV0ArtifactListResponseModel) Get() *V0ArtifactListResponseModel { + return v.value +} + +func (v *NullableV0ArtifactListResponseModel) Set(val *V0ArtifactListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ArtifactListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ArtifactListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ArtifactListResponseModel(val *V0ArtifactListResponseModel) *NullableV0ArtifactListResponseModel { + return &NullableV0ArtifactListResponseModel{value: val, isSet: true} +} + +func (v NullableV0ArtifactListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ArtifactListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_artifact_response_item_model.go b/go2/model_v0_artifact_response_item_model.go new file mode 100644 index 0000000..9addf92 --- /dev/null +++ b/go2/model_v0_artifact_response_item_model.go @@ -0,0 +1,415 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ArtifactResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ArtifactResponseItemModel{} + +// V0ArtifactResponseItemModel struct for V0ArtifactResponseItemModel +type V0ArtifactResponseItemModel struct { + ArtifactMeta []int32 `json:"artifact_meta,omitempty"` + ArtifactType *NullsString `json:"artifact_type,omitempty"` + ExpiringDownloadUrl *string `json:"expiring_download_url,omitempty"` + FileSizeBytes *int32 `json:"file_size_bytes,omitempty"` + IntermediateFileInfo []int32 `json:"intermediate_file_info,omitempty"` + IsPublicPageEnabled *bool `json:"is_public_page_enabled,omitempty"` + PublicInstallPageUrl *string `json:"public_install_page_url,omitempty"` + Slug *string `json:"slug,omitempty"` + Title *NullsString `json:"title,omitempty"` +} + +// NewV0ArtifactResponseItemModel instantiates a new V0ArtifactResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ArtifactResponseItemModel() *V0ArtifactResponseItemModel { + this := V0ArtifactResponseItemModel{} + return &this +} + +// NewV0ArtifactResponseItemModelWithDefaults instantiates a new V0ArtifactResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ArtifactResponseItemModelWithDefaults() *V0ArtifactResponseItemModel { + this := V0ArtifactResponseItemModel{} + return &this +} + +// GetArtifactMeta returns the ArtifactMeta field value if set, zero value otherwise. +func (o *V0ArtifactResponseItemModel) GetArtifactMeta() []int32 { + if o == nil || IsNil(o.ArtifactMeta) { + var ret []int32 + return ret + } + return o.ArtifactMeta +} + +// GetArtifactMetaOk returns a tuple with the ArtifactMeta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactResponseItemModel) GetArtifactMetaOk() ([]int32, bool) { + if o == nil || IsNil(o.ArtifactMeta) { + return nil, false + } + return o.ArtifactMeta, true +} + +// HasArtifactMeta returns a boolean if a field has been set. +func (o *V0ArtifactResponseItemModel) HasArtifactMeta() bool { + if o != nil && !IsNil(o.ArtifactMeta) { + return true + } + + return false +} + +// SetArtifactMeta gets a reference to the given []int32 and assigns it to the ArtifactMeta field. +func (o *V0ArtifactResponseItemModel) SetArtifactMeta(v []int32) { + o.ArtifactMeta = v +} + +// GetArtifactType returns the ArtifactType field value if set, zero value otherwise. +func (o *V0ArtifactResponseItemModel) GetArtifactType() NullsString { + if o == nil || IsNil(o.ArtifactType) { + var ret NullsString + return ret + } + return *o.ArtifactType +} + +// GetArtifactTypeOk returns a tuple with the ArtifactType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactResponseItemModel) GetArtifactTypeOk() (*NullsString, bool) { + if o == nil || IsNil(o.ArtifactType) { + return nil, false + } + return o.ArtifactType, true +} + +// HasArtifactType returns a boolean if a field has been set. +func (o *V0ArtifactResponseItemModel) HasArtifactType() bool { + if o != nil && !IsNil(o.ArtifactType) { + return true + } + + return false +} + +// SetArtifactType gets a reference to the given NullsString and assigns it to the ArtifactType field. +func (o *V0ArtifactResponseItemModel) SetArtifactType(v NullsString) { + o.ArtifactType = &v +} + +// GetExpiringDownloadUrl returns the ExpiringDownloadUrl field value if set, zero value otherwise. +func (o *V0ArtifactResponseItemModel) GetExpiringDownloadUrl() string { + if o == nil || IsNil(o.ExpiringDownloadUrl) { + var ret string + return ret + } + return *o.ExpiringDownloadUrl +} + +// GetExpiringDownloadUrlOk returns a tuple with the ExpiringDownloadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactResponseItemModel) GetExpiringDownloadUrlOk() (*string, bool) { + if o == nil || IsNil(o.ExpiringDownloadUrl) { + return nil, false + } + return o.ExpiringDownloadUrl, true +} + +// HasExpiringDownloadUrl returns a boolean if a field has been set. +func (o *V0ArtifactResponseItemModel) HasExpiringDownloadUrl() bool { + if o != nil && !IsNil(o.ExpiringDownloadUrl) { + return true + } + + return false +} + +// SetExpiringDownloadUrl gets a reference to the given string and assigns it to the ExpiringDownloadUrl field. +func (o *V0ArtifactResponseItemModel) SetExpiringDownloadUrl(v string) { + o.ExpiringDownloadUrl = &v +} + +// GetFileSizeBytes returns the FileSizeBytes field value if set, zero value otherwise. +func (o *V0ArtifactResponseItemModel) GetFileSizeBytes() int32 { + if o == nil || IsNil(o.FileSizeBytes) { + var ret int32 + return ret + } + return *o.FileSizeBytes +} + +// GetFileSizeBytesOk returns a tuple with the FileSizeBytes field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactResponseItemModel) GetFileSizeBytesOk() (*int32, bool) { + if o == nil || IsNil(o.FileSizeBytes) { + return nil, false + } + return o.FileSizeBytes, true +} + +// HasFileSizeBytes returns a boolean if a field has been set. +func (o *V0ArtifactResponseItemModel) HasFileSizeBytes() bool { + if o != nil && !IsNil(o.FileSizeBytes) { + return true + } + + return false +} + +// SetFileSizeBytes gets a reference to the given int32 and assigns it to the FileSizeBytes field. +func (o *V0ArtifactResponseItemModel) SetFileSizeBytes(v int32) { + o.FileSizeBytes = &v +} + +// GetIntermediateFileInfo returns the IntermediateFileInfo field value if set, zero value otherwise. +func (o *V0ArtifactResponseItemModel) GetIntermediateFileInfo() []int32 { + if o == nil || IsNil(o.IntermediateFileInfo) { + var ret []int32 + return ret + } + return o.IntermediateFileInfo +} + +// GetIntermediateFileInfoOk returns a tuple with the IntermediateFileInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactResponseItemModel) GetIntermediateFileInfoOk() ([]int32, bool) { + if o == nil || IsNil(o.IntermediateFileInfo) { + return nil, false + } + return o.IntermediateFileInfo, true +} + +// HasIntermediateFileInfo returns a boolean if a field has been set. +func (o *V0ArtifactResponseItemModel) HasIntermediateFileInfo() bool { + if o != nil && !IsNil(o.IntermediateFileInfo) { + return true + } + + return false +} + +// SetIntermediateFileInfo gets a reference to the given []int32 and assigns it to the IntermediateFileInfo field. +func (o *V0ArtifactResponseItemModel) SetIntermediateFileInfo(v []int32) { + o.IntermediateFileInfo = v +} + +// GetIsPublicPageEnabled returns the IsPublicPageEnabled field value if set, zero value otherwise. +func (o *V0ArtifactResponseItemModel) GetIsPublicPageEnabled() bool { + if o == nil || IsNil(o.IsPublicPageEnabled) { + var ret bool + return ret + } + return *o.IsPublicPageEnabled +} + +// GetIsPublicPageEnabledOk returns a tuple with the IsPublicPageEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactResponseItemModel) GetIsPublicPageEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.IsPublicPageEnabled) { + return nil, false + } + return o.IsPublicPageEnabled, true +} + +// HasIsPublicPageEnabled returns a boolean if a field has been set. +func (o *V0ArtifactResponseItemModel) HasIsPublicPageEnabled() bool { + if o != nil && !IsNil(o.IsPublicPageEnabled) { + return true + } + + return false +} + +// SetIsPublicPageEnabled gets a reference to the given bool and assigns it to the IsPublicPageEnabled field. +func (o *V0ArtifactResponseItemModel) SetIsPublicPageEnabled(v bool) { + o.IsPublicPageEnabled = &v +} + +// GetPublicInstallPageUrl returns the PublicInstallPageUrl field value if set, zero value otherwise. +func (o *V0ArtifactResponseItemModel) GetPublicInstallPageUrl() string { + if o == nil || IsNil(o.PublicInstallPageUrl) { + var ret string + return ret + } + return *o.PublicInstallPageUrl +} + +// GetPublicInstallPageUrlOk returns a tuple with the PublicInstallPageUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactResponseItemModel) GetPublicInstallPageUrlOk() (*string, bool) { + if o == nil || IsNil(o.PublicInstallPageUrl) { + return nil, false + } + return o.PublicInstallPageUrl, true +} + +// HasPublicInstallPageUrl returns a boolean if a field has been set. +func (o *V0ArtifactResponseItemModel) HasPublicInstallPageUrl() bool { + if o != nil && !IsNil(o.PublicInstallPageUrl) { + return true + } + + return false +} + +// SetPublicInstallPageUrl gets a reference to the given string and assigns it to the PublicInstallPageUrl field. +func (o *V0ArtifactResponseItemModel) SetPublicInstallPageUrl(v string) { + o.PublicInstallPageUrl = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0ArtifactResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0ArtifactResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0ArtifactResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *V0ArtifactResponseItemModel) GetTitle() NullsString { + if o == nil || IsNil(o.Title) { + var ret NullsString + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ArtifactResponseItemModel) GetTitleOk() (*NullsString, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *V0ArtifactResponseItemModel) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given NullsString and assigns it to the Title field. +func (o *V0ArtifactResponseItemModel) SetTitle(v NullsString) { + o.Title = &v +} + +func (o V0ArtifactResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ArtifactResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ArtifactMeta) { + toSerialize["artifact_meta"] = o.ArtifactMeta + } + if !IsNil(o.ArtifactType) { + toSerialize["artifact_type"] = o.ArtifactType + } + if !IsNil(o.ExpiringDownloadUrl) { + toSerialize["expiring_download_url"] = o.ExpiringDownloadUrl + } + if !IsNil(o.FileSizeBytes) { + toSerialize["file_size_bytes"] = o.FileSizeBytes + } + if !IsNil(o.IntermediateFileInfo) { + toSerialize["intermediate_file_info"] = o.IntermediateFileInfo + } + if !IsNil(o.IsPublicPageEnabled) { + toSerialize["is_public_page_enabled"] = o.IsPublicPageEnabled + } + if !IsNil(o.PublicInstallPageUrl) { + toSerialize["public_install_page_url"] = o.PublicInstallPageUrl + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + return toSerialize, nil +} + +type NullableV0ArtifactResponseItemModel struct { + value *V0ArtifactResponseItemModel + isSet bool +} + +func (v NullableV0ArtifactResponseItemModel) Get() *V0ArtifactResponseItemModel { + return v.value +} + +func (v *NullableV0ArtifactResponseItemModel) Set(val *V0ArtifactResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ArtifactResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ArtifactResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ArtifactResponseItemModel(val *V0ArtifactResponseItemModel) *NullableV0ArtifactResponseItemModel { + return &NullableV0ArtifactResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0ArtifactResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ArtifactResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_artifact_show_response_model.go b/go2/model_v0_artifact_show_response_model.go new file mode 100644 index 0000000..839be05 --- /dev/null +++ b/go2/model_v0_artifact_show_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ArtifactShowResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ArtifactShowResponseModel{} + +// V0ArtifactShowResponseModel struct for V0ArtifactShowResponseModel +type V0ArtifactShowResponseModel struct { + Data *V0ArtifactResponseItemModel `json:"data,omitempty"` +} + +// NewV0ArtifactShowResponseModel instantiates a new V0ArtifactShowResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ArtifactShowResponseModel() *V0ArtifactShowResponseModel { + this := V0ArtifactShowResponseModel{} + return &this +} + +// NewV0ArtifactShowResponseModelWithDefaults instantiates a new V0ArtifactShowResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ArtifactShowResponseModelWithDefaults() *V0ArtifactShowResponseModel { + this := V0ArtifactShowResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0ArtifactShowResponseModel) GetData() V0ArtifactResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret V0ArtifactResponseItemModel + 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 *V0ArtifactShowResponseModel) GetDataOk() (*V0ArtifactResponseItemModel, 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 *V0ArtifactShowResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0ArtifactResponseItemModel and assigns it to the Data field. +func (o *V0ArtifactShowResponseModel) SetData(v V0ArtifactResponseItemModel) { + o.Data = &v +} + +func (o V0ArtifactShowResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ArtifactShowResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0ArtifactShowResponseModel struct { + value *V0ArtifactShowResponseModel + isSet bool +} + +func (v NullableV0ArtifactShowResponseModel) Get() *V0ArtifactShowResponseModel { + return v.value +} + +func (v *NullableV0ArtifactShowResponseModel) Set(val *V0ArtifactShowResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ArtifactShowResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ArtifactShowResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ArtifactShowResponseModel(val *V0ArtifactShowResponseModel) *NullableV0ArtifactShowResponseModel { + return &NullableV0ArtifactShowResponseModel{value: val, isSet: true} +} + +func (v NullableV0ArtifactShowResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ArtifactShowResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_artifact_update_params.go b/go2/model_v0_artifact_update_params.go new file mode 100644 index 0000000..dfe985c --- /dev/null +++ b/go2/model_v0_artifact_update_params.go @@ -0,0 +1,156 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0ArtifactUpdateParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ArtifactUpdateParams{} + +// V0ArtifactUpdateParams struct for V0ArtifactUpdateParams +type V0ArtifactUpdateParams struct { + IsPublicPageEnabled bool `json:"is_public_page_enabled"` +} + +type _V0ArtifactUpdateParams V0ArtifactUpdateParams + +// NewV0ArtifactUpdateParams instantiates a new V0ArtifactUpdateParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ArtifactUpdateParams(isPublicPageEnabled bool) *V0ArtifactUpdateParams { + this := V0ArtifactUpdateParams{} + this.IsPublicPageEnabled = isPublicPageEnabled + return &this +} + +// NewV0ArtifactUpdateParamsWithDefaults instantiates a new V0ArtifactUpdateParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ArtifactUpdateParamsWithDefaults() *V0ArtifactUpdateParams { + this := V0ArtifactUpdateParams{} + return &this +} + +// GetIsPublicPageEnabled returns the IsPublicPageEnabled field value +func (o *V0ArtifactUpdateParams) GetIsPublicPageEnabled() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsPublicPageEnabled +} + +// GetIsPublicPageEnabledOk returns a tuple with the IsPublicPageEnabled field value +// and a boolean to check if the value has been set. +func (o *V0ArtifactUpdateParams) GetIsPublicPageEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsPublicPageEnabled, true +} + +// SetIsPublicPageEnabled sets field value +func (o *V0ArtifactUpdateParams) SetIsPublicPageEnabled(v bool) { + o.IsPublicPageEnabled = v +} + +func (o V0ArtifactUpdateParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ArtifactUpdateParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["is_public_page_enabled"] = o.IsPublicPageEnabled + return toSerialize, nil +} + +func (o *V0ArtifactUpdateParams) UnmarshalJSON(bytes []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{ + "is_public_page_enabled", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0ArtifactUpdateParams := _V0ArtifactUpdateParams{} + + err = json.Unmarshal(bytes, &varV0ArtifactUpdateParams) + + if err != nil { + return err + } + + *o = V0ArtifactUpdateParams(varV0ArtifactUpdateParams) + + return err +} + +type NullableV0ArtifactUpdateParams struct { + value *V0ArtifactUpdateParams + isSet bool +} + +func (v NullableV0ArtifactUpdateParams) Get() *V0ArtifactUpdateParams { + return v.value +} + +func (v *NullableV0ArtifactUpdateParams) Set(val *V0ArtifactUpdateParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0ArtifactUpdateParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ArtifactUpdateParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ArtifactUpdateParams(val *V0ArtifactUpdateParams) *NullableV0ArtifactUpdateParams { + return &NullableV0ArtifactUpdateParams{value: val, isSet: true} +} + +func (v NullableV0ArtifactUpdateParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ArtifactUpdateParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_bitrise_yml_config_get_response.go b/go2/model_v0_bitrise_yml_config_get_response.go new file mode 100644 index 0000000..9b4a831 --- /dev/null +++ b/go2/model_v0_bitrise_yml_config_get_response.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BitriseYMLConfigGetResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BitriseYMLConfigGetResponse{} + +// V0BitriseYMLConfigGetResponse struct for V0BitriseYMLConfigGetResponse +type V0BitriseYMLConfigGetResponse struct { + Location *WebsiteBitriseYMLLocation `json:"location,omitempty"` +} + +// NewV0BitriseYMLConfigGetResponse instantiates a new V0BitriseYMLConfigGetResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BitriseYMLConfigGetResponse() *V0BitriseYMLConfigGetResponse { + this := V0BitriseYMLConfigGetResponse{} + return &this +} + +// NewV0BitriseYMLConfigGetResponseWithDefaults instantiates a new V0BitriseYMLConfigGetResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BitriseYMLConfigGetResponseWithDefaults() *V0BitriseYMLConfigGetResponse { + this := V0BitriseYMLConfigGetResponse{} + return &this +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *V0BitriseYMLConfigGetResponse) GetLocation() WebsiteBitriseYMLLocation { + if o == nil || IsNil(o.Location) { + var ret WebsiteBitriseYMLLocation + 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 *V0BitriseYMLConfigGetResponse) GetLocationOk() (*WebsiteBitriseYMLLocation, 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 *V0BitriseYMLConfigGetResponse) HasLocation() bool { + if o != nil && !IsNil(o.Location) { + return true + } + + return false +} + +// SetLocation gets a reference to the given WebsiteBitriseYMLLocation and assigns it to the Location field. +func (o *V0BitriseYMLConfigGetResponse) SetLocation(v WebsiteBitriseYMLLocation) { + o.Location = &v +} + +func (o V0BitriseYMLConfigGetResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BitriseYMLConfigGetResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Location) { + toSerialize["location"] = o.Location + } + return toSerialize, nil +} + +type NullableV0BitriseYMLConfigGetResponse struct { + value *V0BitriseYMLConfigGetResponse + isSet bool +} + +func (v NullableV0BitriseYMLConfigGetResponse) Get() *V0BitriseYMLConfigGetResponse { + return v.value +} + +func (v *NullableV0BitriseYMLConfigGetResponse) Set(val *V0BitriseYMLConfigGetResponse) { + v.value = val + v.isSet = true +} + +func (v NullableV0BitriseYMLConfigGetResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BitriseYMLConfigGetResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BitriseYMLConfigGetResponse(val *V0BitriseYMLConfigGetResponse) *NullableV0BitriseYMLConfigGetResponse { + return &NullableV0BitriseYMLConfigGetResponse{value: val, isSet: true} +} + +func (v NullableV0BitriseYMLConfigGetResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BitriseYMLConfigGetResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_bitrise_yml_config_update_params.go b/go2/model_v0_bitrise_yml_config_update_params.go new file mode 100644 index 0000000..38ece06 --- /dev/null +++ b/go2/model_v0_bitrise_yml_config_update_params.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BitriseYMLConfigUpdateParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BitriseYMLConfigUpdateParams{} + +// V0BitriseYMLConfigUpdateParams struct for V0BitriseYMLConfigUpdateParams +type V0BitriseYMLConfigUpdateParams struct { + Location *WebsiteBitriseYMLLocation `json:"location,omitempty"` +} + +// NewV0BitriseYMLConfigUpdateParams instantiates a new V0BitriseYMLConfigUpdateParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BitriseYMLConfigUpdateParams() *V0BitriseYMLConfigUpdateParams { + this := V0BitriseYMLConfigUpdateParams{} + return &this +} + +// NewV0BitriseYMLConfigUpdateParamsWithDefaults instantiates a new V0BitriseYMLConfigUpdateParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BitriseYMLConfigUpdateParamsWithDefaults() *V0BitriseYMLConfigUpdateParams { + this := V0BitriseYMLConfigUpdateParams{} + return &this +} + +// GetLocation returns the Location field value if set, zero value otherwise. +func (o *V0BitriseYMLConfigUpdateParams) GetLocation() WebsiteBitriseYMLLocation { + if o == nil || IsNil(o.Location) { + var ret WebsiteBitriseYMLLocation + 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 *V0BitriseYMLConfigUpdateParams) GetLocationOk() (*WebsiteBitriseYMLLocation, 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 *V0BitriseYMLConfigUpdateParams) HasLocation() bool { + if o != nil && !IsNil(o.Location) { + return true + } + + return false +} + +// SetLocation gets a reference to the given WebsiteBitriseYMLLocation and assigns it to the Location field. +func (o *V0BitriseYMLConfigUpdateParams) SetLocation(v WebsiteBitriseYMLLocation) { + o.Location = &v +} + +func (o V0BitriseYMLConfigUpdateParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BitriseYMLConfigUpdateParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Location) { + toSerialize["location"] = o.Location + } + return toSerialize, nil +} + +type NullableV0BitriseYMLConfigUpdateParams struct { + value *V0BitriseYMLConfigUpdateParams + isSet bool +} + +func (v NullableV0BitriseYMLConfigUpdateParams) Get() *V0BitriseYMLConfigUpdateParams { + return v.value +} + +func (v *NullableV0BitriseYMLConfigUpdateParams) Set(val *V0BitriseYMLConfigUpdateParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0BitriseYMLConfigUpdateParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BitriseYMLConfigUpdateParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BitriseYMLConfigUpdateParams(val *V0BitriseYMLConfigUpdateParams) *NullableV0BitriseYMLConfigUpdateParams { + return &NullableV0BitriseYMLConfigUpdateParams{value: val, isSet: true} +} + +func (v NullableV0BitriseYMLConfigUpdateParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BitriseYMLConfigUpdateParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_branch_list_response_model.go b/go2/model_v0_branch_list_response_model.go new file mode 100644 index 0000000..ee534ac --- /dev/null +++ b/go2/model_v0_branch_list_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BranchListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BranchListResponseModel{} + +// V0BranchListResponseModel struct for V0BranchListResponseModel +type V0BranchListResponseModel struct { + Data []string `json:"data,omitempty"` +} + +// NewV0BranchListResponseModel instantiates a new V0BranchListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BranchListResponseModel() *V0BranchListResponseModel { + this := V0BranchListResponseModel{} + return &this +} + +// NewV0BranchListResponseModelWithDefaults instantiates a new V0BranchListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BranchListResponseModelWithDefaults() *V0BranchListResponseModel { + this := V0BranchListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0BranchListResponseModel) GetData() []string { + if o == nil || IsNil(o.Data) { + var ret []string + 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 *V0BranchListResponseModel) GetDataOk() ([]string, 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 *V0BranchListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []string and assigns it to the Data field. +func (o *V0BranchListResponseModel) SetData(v []string) { + o.Data = v +} + +func (o V0BranchListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BranchListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0BranchListResponseModel struct { + value *V0BranchListResponseModel + isSet bool +} + +func (v NullableV0BranchListResponseModel) Get() *V0BranchListResponseModel { + return v.value +} + +func (v *NullableV0BranchListResponseModel) Set(val *V0BranchListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BranchListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BranchListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BranchListResponseModel(val *V0BranchListResponseModel) *NullableV0BranchListResponseModel { + return &NullableV0BranchListResponseModel{value: val, isSet: true} +} + +func (v NullableV0BranchListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BranchListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_abort_params.go b/go2/model_v0_build_abort_params.go new file mode 100644 index 0000000..452896a --- /dev/null +++ b/go2/model_v0_build_abort_params.go @@ -0,0 +1,212 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0BuildAbortParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildAbortParams{} + +// V0BuildAbortParams struct for V0BuildAbortParams +type V0BuildAbortParams struct { + AbortReason string `json:"abort_reason"` + AbortWithSuccess bool `json:"abort_with_success"` + SkipNotifications bool `json:"skip_notifications"` +} + +type _V0BuildAbortParams V0BuildAbortParams + +// NewV0BuildAbortParams instantiates a new V0BuildAbortParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildAbortParams(abortReason string, abortWithSuccess bool, skipNotifications bool) *V0BuildAbortParams { + this := V0BuildAbortParams{} + this.AbortReason = abortReason + this.AbortWithSuccess = abortWithSuccess + this.SkipNotifications = skipNotifications + return &this +} + +// NewV0BuildAbortParamsWithDefaults instantiates a new V0BuildAbortParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildAbortParamsWithDefaults() *V0BuildAbortParams { + this := V0BuildAbortParams{} + return &this +} + +// GetAbortReason returns the AbortReason field value +func (o *V0BuildAbortParams) GetAbortReason() string { + if o == nil { + var ret string + return ret + } + + return o.AbortReason +} + +// GetAbortReasonOk returns a tuple with the AbortReason field value +// and a boolean to check if the value has been set. +func (o *V0BuildAbortParams) GetAbortReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AbortReason, true +} + +// SetAbortReason sets field value +func (o *V0BuildAbortParams) SetAbortReason(v string) { + o.AbortReason = v +} + +// GetAbortWithSuccess returns the AbortWithSuccess field value +func (o *V0BuildAbortParams) GetAbortWithSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.AbortWithSuccess +} + +// GetAbortWithSuccessOk returns a tuple with the AbortWithSuccess field value +// and a boolean to check if the value has been set. +func (o *V0BuildAbortParams) GetAbortWithSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AbortWithSuccess, true +} + +// SetAbortWithSuccess sets field value +func (o *V0BuildAbortParams) SetAbortWithSuccess(v bool) { + o.AbortWithSuccess = v +} + +// GetSkipNotifications returns the SkipNotifications field value +func (o *V0BuildAbortParams) GetSkipNotifications() bool { + if o == nil { + var ret bool + return ret + } + + return o.SkipNotifications +} + +// GetSkipNotificationsOk returns a tuple with the SkipNotifications field value +// and a boolean to check if the value has been set. +func (o *V0BuildAbortParams) GetSkipNotificationsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.SkipNotifications, true +} + +// SetSkipNotifications sets field value +func (o *V0BuildAbortParams) SetSkipNotifications(v bool) { + o.SkipNotifications = v +} + +func (o V0BuildAbortParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildAbortParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["abort_reason"] = o.AbortReason + toSerialize["abort_with_success"] = o.AbortWithSuccess + toSerialize["skip_notifications"] = o.SkipNotifications + return toSerialize, nil +} + +func (o *V0BuildAbortParams) UnmarshalJSON(bytes []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{ + "abort_reason", + "abort_with_success", + "skip_notifications", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0BuildAbortParams := _V0BuildAbortParams{} + + err = json.Unmarshal(bytes, &varV0BuildAbortParams) + + if err != nil { + return err + } + + *o = V0BuildAbortParams(varV0BuildAbortParams) + + return err +} + +type NullableV0BuildAbortParams struct { + value *V0BuildAbortParams + isSet bool +} + +func (v NullableV0BuildAbortParams) Get() *V0BuildAbortParams { + return v.value +} + +func (v *NullableV0BuildAbortParams) Set(val *V0BuildAbortParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildAbortParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildAbortParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildAbortParams(val *V0BuildAbortParams) *NullableV0BuildAbortParams { + return &NullableV0BuildAbortParams{value: val, isSet: true} +} + +func (v NullableV0BuildAbortParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildAbortParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_abort_response_model.go b/go2/model_v0_build_abort_response_model.go new file mode 100644 index 0000000..e2a8658 --- /dev/null +++ b/go2/model_v0_build_abort_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildAbortResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildAbortResponseModel{} + +// V0BuildAbortResponseModel struct for V0BuildAbortResponseModel +type V0BuildAbortResponseModel struct { + Status *string `json:"status,omitempty"` +} + +// NewV0BuildAbortResponseModel instantiates a new V0BuildAbortResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildAbortResponseModel() *V0BuildAbortResponseModel { + this := V0BuildAbortResponseModel{} + return &this +} + +// NewV0BuildAbortResponseModelWithDefaults instantiates a new V0BuildAbortResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildAbortResponseModelWithDefaults() *V0BuildAbortResponseModel { + this := V0BuildAbortResponseModel{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0BuildAbortResponseModel) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildAbortResponseModel) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0BuildAbortResponseModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V0BuildAbortResponseModel) SetStatus(v string) { + o.Status = &v +} + +func (o V0BuildAbortResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildAbortResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableV0BuildAbortResponseModel struct { + value *V0BuildAbortResponseModel + isSet bool +} + +func (v NullableV0BuildAbortResponseModel) Get() *V0BuildAbortResponseModel { + return v.value +} + +func (v *NullableV0BuildAbortResponseModel) Set(val *V0BuildAbortResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildAbortResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildAbortResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildAbortResponseModel(val *V0BuildAbortResponseModel) *NullableV0BuildAbortResponseModel { + return &NullableV0BuildAbortResponseModel{value: val, isSet: true} +} + +func (v NullableV0BuildAbortResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildAbortResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_certificate_list_response_model.go b/go2/model_v0_build_certificate_list_response_model.go new file mode 100644 index 0000000..328374c --- /dev/null +++ b/go2/model_v0_build_certificate_list_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildCertificateListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildCertificateListResponseModel{} + +// V0BuildCertificateListResponseModel struct for V0BuildCertificateListResponseModel +type V0BuildCertificateListResponseModel struct { + Data []V0BuildCertificateResponseItemModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0BuildCertificateListResponseModel instantiates a new V0BuildCertificateListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildCertificateListResponseModel() *V0BuildCertificateListResponseModel { + this := V0BuildCertificateListResponseModel{} + return &this +} + +// NewV0BuildCertificateListResponseModelWithDefaults instantiates a new V0BuildCertificateListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildCertificateListResponseModelWithDefaults() *V0BuildCertificateListResponseModel { + this := V0BuildCertificateListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0BuildCertificateListResponseModel) GetData() []V0BuildCertificateResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0BuildCertificateResponseItemModel + 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 *V0BuildCertificateListResponseModel) GetDataOk() ([]V0BuildCertificateResponseItemModel, 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 *V0BuildCertificateListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0BuildCertificateResponseItemModel and assigns it to the Data field. +func (o *V0BuildCertificateListResponseModel) SetData(v []V0BuildCertificateResponseItemModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0BuildCertificateListResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0BuildCertificateListResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0BuildCertificateListResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0BuildCertificateListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildCertificateListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0BuildCertificateListResponseModel struct { + value *V0BuildCertificateListResponseModel + isSet bool +} + +func (v NullableV0BuildCertificateListResponseModel) Get() *V0BuildCertificateListResponseModel { + return v.value +} + +func (v *NullableV0BuildCertificateListResponseModel) Set(val *V0BuildCertificateListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildCertificateListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildCertificateListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildCertificateListResponseModel(val *V0BuildCertificateListResponseModel) *NullableV0BuildCertificateListResponseModel { + return &NullableV0BuildCertificateListResponseModel{value: val, isSet: true} +} + +func (v NullableV0BuildCertificateListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildCertificateListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_certificate_response_item_model.go b/go2/model_v0_build_certificate_response_item_model.go new file mode 100644 index 0000000..13407d1 --- /dev/null +++ b/go2/model_v0_build_certificate_response_item_model.go @@ -0,0 +1,415 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildCertificateResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildCertificateResponseItemModel{} + +// V0BuildCertificateResponseItemModel struct for V0BuildCertificateResponseItemModel +type V0BuildCertificateResponseItemModel struct { + CertificatePassword *string `json:"certificate_password,omitempty"` + DownloadUrl *string `json:"download_url,omitempty"` + IsExpose *bool `json:"is_expose,omitempty"` + IsProtected *bool `json:"is_protected,omitempty"` + Processed *bool `json:"processed,omitempty"` + Slug *string `json:"slug,omitempty"` + UploadFileName *string `json:"upload_file_name,omitempty"` + UploadFileSize *int32 `json:"upload_file_size,omitempty"` + UploadUrl *string `json:"upload_url,omitempty"` +} + +// NewV0BuildCertificateResponseItemModel instantiates a new V0BuildCertificateResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildCertificateResponseItemModel() *V0BuildCertificateResponseItemModel { + this := V0BuildCertificateResponseItemModel{} + return &this +} + +// NewV0BuildCertificateResponseItemModelWithDefaults instantiates a new V0BuildCertificateResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildCertificateResponseItemModelWithDefaults() *V0BuildCertificateResponseItemModel { + this := V0BuildCertificateResponseItemModel{} + return &this +} + +// GetCertificatePassword returns the CertificatePassword field value if set, zero value otherwise. +func (o *V0BuildCertificateResponseItemModel) GetCertificatePassword() string { + if o == nil || IsNil(o.CertificatePassword) { + var ret string + return ret + } + return *o.CertificatePassword +} + +// GetCertificatePasswordOk returns a tuple with the CertificatePassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateResponseItemModel) GetCertificatePasswordOk() (*string, bool) { + if o == nil || IsNil(o.CertificatePassword) { + return nil, false + } + return o.CertificatePassword, true +} + +// HasCertificatePassword returns a boolean if a field has been set. +func (o *V0BuildCertificateResponseItemModel) HasCertificatePassword() bool { + if o != nil && !IsNil(o.CertificatePassword) { + return true + } + + return false +} + +// SetCertificatePassword gets a reference to the given string and assigns it to the CertificatePassword field. +func (o *V0BuildCertificateResponseItemModel) SetCertificatePassword(v string) { + o.CertificatePassword = &v +} + +// GetDownloadUrl returns the DownloadUrl field value if set, zero value otherwise. +func (o *V0BuildCertificateResponseItemModel) GetDownloadUrl() string { + if o == nil || IsNil(o.DownloadUrl) { + var ret string + return ret + } + return *o.DownloadUrl +} + +// GetDownloadUrlOk returns a tuple with the DownloadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateResponseItemModel) GetDownloadUrlOk() (*string, bool) { + if o == nil || IsNil(o.DownloadUrl) { + return nil, false + } + return o.DownloadUrl, true +} + +// HasDownloadUrl returns a boolean if a field has been set. +func (o *V0BuildCertificateResponseItemModel) HasDownloadUrl() bool { + if o != nil && !IsNil(o.DownloadUrl) { + return true + } + + return false +} + +// SetDownloadUrl gets a reference to the given string and assigns it to the DownloadUrl field. +func (o *V0BuildCertificateResponseItemModel) SetDownloadUrl(v string) { + o.DownloadUrl = &v +} + +// GetIsExpose returns the IsExpose field value if set, zero value otherwise. +func (o *V0BuildCertificateResponseItemModel) GetIsExpose() bool { + if o == nil || IsNil(o.IsExpose) { + var ret bool + return ret + } + return *o.IsExpose +} + +// GetIsExposeOk returns a tuple with the IsExpose field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateResponseItemModel) GetIsExposeOk() (*bool, bool) { + if o == nil || IsNil(o.IsExpose) { + return nil, false + } + return o.IsExpose, true +} + +// HasIsExpose returns a boolean if a field has been set. +func (o *V0BuildCertificateResponseItemModel) HasIsExpose() bool { + if o != nil && !IsNil(o.IsExpose) { + return true + } + + return false +} + +// SetIsExpose gets a reference to the given bool and assigns it to the IsExpose field. +func (o *V0BuildCertificateResponseItemModel) SetIsExpose(v bool) { + o.IsExpose = &v +} + +// GetIsProtected returns the IsProtected field value if set, zero value otherwise. +func (o *V0BuildCertificateResponseItemModel) GetIsProtected() bool { + if o == nil || IsNil(o.IsProtected) { + var ret bool + return ret + } + return *o.IsProtected +} + +// GetIsProtectedOk returns a tuple with the IsProtected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateResponseItemModel) GetIsProtectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsProtected) { + return nil, false + } + return o.IsProtected, true +} + +// HasIsProtected returns a boolean if a field has been set. +func (o *V0BuildCertificateResponseItemModel) HasIsProtected() bool { + if o != nil && !IsNil(o.IsProtected) { + return true + } + + return false +} + +// SetIsProtected gets a reference to the given bool and assigns it to the IsProtected field. +func (o *V0BuildCertificateResponseItemModel) SetIsProtected(v bool) { + o.IsProtected = &v +} + +// GetProcessed returns the Processed field value if set, zero value otherwise. +func (o *V0BuildCertificateResponseItemModel) GetProcessed() bool { + if o == nil || IsNil(o.Processed) { + var ret bool + return ret + } + return *o.Processed +} + +// GetProcessedOk returns a tuple with the Processed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateResponseItemModel) GetProcessedOk() (*bool, bool) { + if o == nil || IsNil(o.Processed) { + return nil, false + } + return o.Processed, true +} + +// HasProcessed returns a boolean if a field has been set. +func (o *V0BuildCertificateResponseItemModel) HasProcessed() bool { + if o != nil && !IsNil(o.Processed) { + return true + } + + return false +} + +// SetProcessed gets a reference to the given bool and assigns it to the Processed field. +func (o *V0BuildCertificateResponseItemModel) SetProcessed(v bool) { + o.Processed = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0BuildCertificateResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0BuildCertificateResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0BuildCertificateResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetUploadFileName returns the UploadFileName field value if set, zero value otherwise. +func (o *V0BuildCertificateResponseItemModel) GetUploadFileName() string { + if o == nil || IsNil(o.UploadFileName) { + var ret string + return ret + } + return *o.UploadFileName +} + +// GetUploadFileNameOk returns a tuple with the UploadFileName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateResponseItemModel) GetUploadFileNameOk() (*string, bool) { + if o == nil || IsNil(o.UploadFileName) { + return nil, false + } + return o.UploadFileName, true +} + +// HasUploadFileName returns a boolean if a field has been set. +func (o *V0BuildCertificateResponseItemModel) HasUploadFileName() bool { + if o != nil && !IsNil(o.UploadFileName) { + return true + } + + return false +} + +// SetUploadFileName gets a reference to the given string and assigns it to the UploadFileName field. +func (o *V0BuildCertificateResponseItemModel) SetUploadFileName(v string) { + o.UploadFileName = &v +} + +// GetUploadFileSize returns the UploadFileSize field value if set, zero value otherwise. +func (o *V0BuildCertificateResponseItemModel) GetUploadFileSize() int32 { + if o == nil || IsNil(o.UploadFileSize) { + var ret int32 + return ret + } + return *o.UploadFileSize +} + +// GetUploadFileSizeOk returns a tuple with the UploadFileSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateResponseItemModel) GetUploadFileSizeOk() (*int32, bool) { + if o == nil || IsNil(o.UploadFileSize) { + return nil, false + } + return o.UploadFileSize, true +} + +// HasUploadFileSize returns a boolean if a field has been set. +func (o *V0BuildCertificateResponseItemModel) HasUploadFileSize() bool { + if o != nil && !IsNil(o.UploadFileSize) { + return true + } + + return false +} + +// SetUploadFileSize gets a reference to the given int32 and assigns it to the UploadFileSize field. +func (o *V0BuildCertificateResponseItemModel) SetUploadFileSize(v int32) { + o.UploadFileSize = &v +} + +// GetUploadUrl returns the UploadUrl field value if set, zero value otherwise. +func (o *V0BuildCertificateResponseItemModel) GetUploadUrl() string { + if o == nil || IsNil(o.UploadUrl) { + var ret string + return ret + } + return *o.UploadUrl +} + +// GetUploadUrlOk returns a tuple with the UploadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateResponseItemModel) GetUploadUrlOk() (*string, bool) { + if o == nil || IsNil(o.UploadUrl) { + return nil, false + } + return o.UploadUrl, true +} + +// HasUploadUrl returns a boolean if a field has been set. +func (o *V0BuildCertificateResponseItemModel) HasUploadUrl() bool { + if o != nil && !IsNil(o.UploadUrl) { + return true + } + + return false +} + +// SetUploadUrl gets a reference to the given string and assigns it to the UploadUrl field. +func (o *V0BuildCertificateResponseItemModel) SetUploadUrl(v string) { + o.UploadUrl = &v +} + +func (o V0BuildCertificateResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildCertificateResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CertificatePassword) { + toSerialize["certificate_password"] = o.CertificatePassword + } + if !IsNil(o.DownloadUrl) { + toSerialize["download_url"] = o.DownloadUrl + } + if !IsNil(o.IsExpose) { + toSerialize["is_expose"] = o.IsExpose + } + if !IsNil(o.IsProtected) { + toSerialize["is_protected"] = o.IsProtected + } + if !IsNil(o.Processed) { + toSerialize["processed"] = o.Processed + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.UploadFileName) { + toSerialize["upload_file_name"] = o.UploadFileName + } + if !IsNil(o.UploadFileSize) { + toSerialize["upload_file_size"] = o.UploadFileSize + } + if !IsNil(o.UploadUrl) { + toSerialize["upload_url"] = o.UploadUrl + } + return toSerialize, nil +} + +type NullableV0BuildCertificateResponseItemModel struct { + value *V0BuildCertificateResponseItemModel + isSet bool +} + +func (v NullableV0BuildCertificateResponseItemModel) Get() *V0BuildCertificateResponseItemModel { + return v.value +} + +func (v *NullableV0BuildCertificateResponseItemModel) Set(val *V0BuildCertificateResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildCertificateResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildCertificateResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildCertificateResponseItemModel(val *V0BuildCertificateResponseItemModel) *NullableV0BuildCertificateResponseItemModel { + return &NullableV0BuildCertificateResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0BuildCertificateResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildCertificateResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_certificate_response_model.go b/go2/model_v0_build_certificate_response_model.go new file mode 100644 index 0000000..7ccec32 --- /dev/null +++ b/go2/model_v0_build_certificate_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildCertificateResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildCertificateResponseModel{} + +// V0BuildCertificateResponseModel struct for V0BuildCertificateResponseModel +type V0BuildCertificateResponseModel struct { + Data *V0BuildCertificateResponseItemModel `json:"data,omitempty"` +} + +// NewV0BuildCertificateResponseModel instantiates a new V0BuildCertificateResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildCertificateResponseModel() *V0BuildCertificateResponseModel { + this := V0BuildCertificateResponseModel{} + return &this +} + +// NewV0BuildCertificateResponseModelWithDefaults instantiates a new V0BuildCertificateResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildCertificateResponseModelWithDefaults() *V0BuildCertificateResponseModel { + this := V0BuildCertificateResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0BuildCertificateResponseModel) GetData() V0BuildCertificateResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret V0BuildCertificateResponseItemModel + 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 *V0BuildCertificateResponseModel) GetDataOk() (*V0BuildCertificateResponseItemModel, 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 *V0BuildCertificateResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0BuildCertificateResponseItemModel and assigns it to the Data field. +func (o *V0BuildCertificateResponseModel) SetData(v V0BuildCertificateResponseItemModel) { + o.Data = &v +} + +func (o V0BuildCertificateResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildCertificateResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0BuildCertificateResponseModel struct { + value *V0BuildCertificateResponseModel + isSet bool +} + +func (v NullableV0BuildCertificateResponseModel) Get() *V0BuildCertificateResponseModel { + return v.value +} + +func (v *NullableV0BuildCertificateResponseModel) Set(val *V0BuildCertificateResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildCertificateResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildCertificateResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildCertificateResponseModel(val *V0BuildCertificateResponseModel) *NullableV0BuildCertificateResponseModel { + return &NullableV0BuildCertificateResponseModel{value: val, isSet: true} +} + +func (v NullableV0BuildCertificateResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildCertificateResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_certificate_update_params.go b/go2/model_v0_build_certificate_update_params.go new file mode 100644 index 0000000..3721379 --- /dev/null +++ b/go2/model_v0_build_certificate_update_params.go @@ -0,0 +1,235 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildCertificateUpdateParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildCertificateUpdateParams{} + +// V0BuildCertificateUpdateParams struct for V0BuildCertificateUpdateParams +type V0BuildCertificateUpdateParams struct { + CertificatePassword *string `json:"certificate_password,omitempty"` + IsExpose *bool `json:"is_expose,omitempty"` + IsProtected *bool `json:"is_protected,omitempty"` + Processed *bool `json:"processed,omitempty"` +} + +// NewV0BuildCertificateUpdateParams instantiates a new V0BuildCertificateUpdateParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildCertificateUpdateParams() *V0BuildCertificateUpdateParams { + this := V0BuildCertificateUpdateParams{} + return &this +} + +// NewV0BuildCertificateUpdateParamsWithDefaults instantiates a new V0BuildCertificateUpdateParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildCertificateUpdateParamsWithDefaults() *V0BuildCertificateUpdateParams { + this := V0BuildCertificateUpdateParams{} + return &this +} + +// GetCertificatePassword returns the CertificatePassword field value if set, zero value otherwise. +func (o *V0BuildCertificateUpdateParams) GetCertificatePassword() string { + if o == nil || IsNil(o.CertificatePassword) { + var ret string + return ret + } + return *o.CertificatePassword +} + +// GetCertificatePasswordOk returns a tuple with the CertificatePassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateUpdateParams) GetCertificatePasswordOk() (*string, bool) { + if o == nil || IsNil(o.CertificatePassword) { + return nil, false + } + return o.CertificatePassword, true +} + +// HasCertificatePassword returns a boolean if a field has been set. +func (o *V0BuildCertificateUpdateParams) HasCertificatePassword() bool { + if o != nil && !IsNil(o.CertificatePassword) { + return true + } + + return false +} + +// SetCertificatePassword gets a reference to the given string and assigns it to the CertificatePassword field. +func (o *V0BuildCertificateUpdateParams) SetCertificatePassword(v string) { + o.CertificatePassword = &v +} + +// GetIsExpose returns the IsExpose field value if set, zero value otherwise. +func (o *V0BuildCertificateUpdateParams) GetIsExpose() bool { + if o == nil || IsNil(o.IsExpose) { + var ret bool + return ret + } + return *o.IsExpose +} + +// GetIsExposeOk returns a tuple with the IsExpose field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateUpdateParams) GetIsExposeOk() (*bool, bool) { + if o == nil || IsNil(o.IsExpose) { + return nil, false + } + return o.IsExpose, true +} + +// HasIsExpose returns a boolean if a field has been set. +func (o *V0BuildCertificateUpdateParams) HasIsExpose() bool { + if o != nil && !IsNil(o.IsExpose) { + return true + } + + return false +} + +// SetIsExpose gets a reference to the given bool and assigns it to the IsExpose field. +func (o *V0BuildCertificateUpdateParams) SetIsExpose(v bool) { + o.IsExpose = &v +} + +// GetIsProtected returns the IsProtected field value if set, zero value otherwise. +func (o *V0BuildCertificateUpdateParams) GetIsProtected() bool { + if o == nil || IsNil(o.IsProtected) { + var ret bool + return ret + } + return *o.IsProtected +} + +// GetIsProtectedOk returns a tuple with the IsProtected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateUpdateParams) GetIsProtectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsProtected) { + return nil, false + } + return o.IsProtected, true +} + +// HasIsProtected returns a boolean if a field has been set. +func (o *V0BuildCertificateUpdateParams) HasIsProtected() bool { + if o != nil && !IsNil(o.IsProtected) { + return true + } + + return false +} + +// SetIsProtected gets a reference to the given bool and assigns it to the IsProtected field. +func (o *V0BuildCertificateUpdateParams) SetIsProtected(v bool) { + o.IsProtected = &v +} + +// GetProcessed returns the Processed field value if set, zero value otherwise. +func (o *V0BuildCertificateUpdateParams) GetProcessed() bool { + if o == nil || IsNil(o.Processed) { + var ret bool + return ret + } + return *o.Processed +} + +// GetProcessedOk returns a tuple with the Processed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateUpdateParams) GetProcessedOk() (*bool, bool) { + if o == nil || IsNil(o.Processed) { + return nil, false + } + return o.Processed, true +} + +// HasProcessed returns a boolean if a field has been set. +func (o *V0BuildCertificateUpdateParams) HasProcessed() bool { + if o != nil && !IsNil(o.Processed) { + return true + } + + return false +} + +// SetProcessed gets a reference to the given bool and assigns it to the Processed field. +func (o *V0BuildCertificateUpdateParams) SetProcessed(v bool) { + o.Processed = &v +} + +func (o V0BuildCertificateUpdateParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildCertificateUpdateParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CertificatePassword) { + toSerialize["certificate_password"] = o.CertificatePassword + } + if !IsNil(o.IsExpose) { + toSerialize["is_expose"] = o.IsExpose + } + if !IsNil(o.IsProtected) { + toSerialize["is_protected"] = o.IsProtected + } + if !IsNil(o.Processed) { + toSerialize["processed"] = o.Processed + } + return toSerialize, nil +} + +type NullableV0BuildCertificateUpdateParams struct { + value *V0BuildCertificateUpdateParams + isSet bool +} + +func (v NullableV0BuildCertificateUpdateParams) Get() *V0BuildCertificateUpdateParams { + return v.value +} + +func (v *NullableV0BuildCertificateUpdateParams) Set(val *V0BuildCertificateUpdateParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildCertificateUpdateParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildCertificateUpdateParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildCertificateUpdateParams(val *V0BuildCertificateUpdateParams) *NullableV0BuildCertificateUpdateParams { + return &NullableV0BuildCertificateUpdateParams{value: val, isSet: true} +} + +func (v NullableV0BuildCertificateUpdateParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildCertificateUpdateParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_certificate_upload_params.go b/go2/model_v0_build_certificate_upload_params.go new file mode 100644 index 0000000..fb21813 --- /dev/null +++ b/go2/model_v0_build_certificate_upload_params.go @@ -0,0 +1,184 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0BuildCertificateUploadParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildCertificateUploadParams{} + +// V0BuildCertificateUploadParams struct for V0BuildCertificateUploadParams +type V0BuildCertificateUploadParams struct { + UploadFileName string `json:"upload_file_name"` + UploadFileSize int32 `json:"upload_file_size"` +} + +type _V0BuildCertificateUploadParams V0BuildCertificateUploadParams + +// NewV0BuildCertificateUploadParams instantiates a new V0BuildCertificateUploadParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildCertificateUploadParams(uploadFileName string, uploadFileSize int32) *V0BuildCertificateUploadParams { + this := V0BuildCertificateUploadParams{} + this.UploadFileName = uploadFileName + this.UploadFileSize = uploadFileSize + return &this +} + +// NewV0BuildCertificateUploadParamsWithDefaults instantiates a new V0BuildCertificateUploadParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildCertificateUploadParamsWithDefaults() *V0BuildCertificateUploadParams { + this := V0BuildCertificateUploadParams{} + return &this +} + +// GetUploadFileName returns the UploadFileName field value +func (o *V0BuildCertificateUploadParams) GetUploadFileName() string { + if o == nil { + var ret string + return ret + } + + return o.UploadFileName +} + +// GetUploadFileNameOk returns a tuple with the UploadFileName field value +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateUploadParams) GetUploadFileNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UploadFileName, true +} + +// SetUploadFileName sets field value +func (o *V0BuildCertificateUploadParams) SetUploadFileName(v string) { + o.UploadFileName = v +} + +// GetUploadFileSize returns the UploadFileSize field value +func (o *V0BuildCertificateUploadParams) GetUploadFileSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.UploadFileSize +} + +// GetUploadFileSizeOk returns a tuple with the UploadFileSize field value +// and a boolean to check if the value has been set. +func (o *V0BuildCertificateUploadParams) GetUploadFileSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.UploadFileSize, true +} + +// SetUploadFileSize sets field value +func (o *V0BuildCertificateUploadParams) SetUploadFileSize(v int32) { + o.UploadFileSize = v +} + +func (o V0BuildCertificateUploadParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildCertificateUploadParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["upload_file_name"] = o.UploadFileName + toSerialize["upload_file_size"] = o.UploadFileSize + return toSerialize, nil +} + +func (o *V0BuildCertificateUploadParams) UnmarshalJSON(bytes []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{ + "upload_file_name", + "upload_file_size", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0BuildCertificateUploadParams := _V0BuildCertificateUploadParams{} + + err = json.Unmarshal(bytes, &varV0BuildCertificateUploadParams) + + if err != nil { + return err + } + + *o = V0BuildCertificateUploadParams(varV0BuildCertificateUploadParams) + + return err +} + +type NullableV0BuildCertificateUploadParams struct { + value *V0BuildCertificateUploadParams + isSet bool +} + +func (v NullableV0BuildCertificateUploadParams) Get() *V0BuildCertificateUploadParams { + return v.value +} + +func (v *NullableV0BuildCertificateUploadParams) Set(val *V0BuildCertificateUploadParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildCertificateUploadParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildCertificateUploadParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildCertificateUploadParams(val *V0BuildCertificateUploadParams) *NullableV0BuildCertificateUploadParams { + return &NullableV0BuildCertificateUploadParams{value: val, isSet: true} +} + +func (v NullableV0BuildCertificateUploadParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildCertificateUploadParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_list_all_response_item_model.go b/go2/model_v0_build_list_all_response_item_model.go new file mode 100644 index 0000000..fb02420 --- /dev/null +++ b/go2/model_v0_build_list_all_response_item_model.go @@ -0,0 +1,1027 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildListAllResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildListAllResponseItemModel{} + +// V0BuildListAllResponseItemModel struct for V0BuildListAllResponseItemModel +type V0BuildListAllResponseItemModel struct { + AbortReason *NullsString `json:"abort_reason,omitempty"` + Branch *NullsString `json:"branch,omitempty"` + BuildNumber *int32 `json:"build_number,omitempty"` + CommitHash *NullsString `json:"commit_hash,omitempty"` + CommitMessage *NullsString `json:"commit_message,omitempty"` + CommitViewUrl *NullsString `json:"commit_view_url,omitempty"` + CreditCost *NullsInt64 `json:"credit_cost,omitempty"` + EnvironmentPrepareFinishedAt *string `json:"environment_prepare_finished_at,omitempty"` + FinishedAt *string `json:"finished_at,omitempty"` + IsOnHold *bool `json:"is_on_hold,omitempty"` + IsProcessed *bool `json:"is_processed,omitempty"` + MachineTypeId *NullsString `json:"machine_type_id,omitempty"` + OriginalBuildParams []int32 `json:"original_build_params,omitempty"` + PullRequestId *int32 `json:"pull_request_id,omitempty"` + PullRequestTargetBranch *NullsString `json:"pull_request_target_branch,omitempty"` + PullRequestViewUrl *NullsString `json:"pull_request_view_url,omitempty"` + Repository *V0AppResponseItemModel `json:"repository,omitempty"` + Slug *string `json:"slug,omitempty"` + StackIdentifier *NullsString `json:"stack_identifier,omitempty"` + StartedOnWorkerAt *string `json:"started_on_worker_at,omitempty"` + Status *int32 `json:"status,omitempty"` + StatusText *string `json:"status_text,omitempty"` + Tag *NullsString `json:"tag,omitempty"` + TriggeredAt *string `json:"triggered_at,omitempty"` + TriggeredBy *NullsString `json:"triggered_by,omitempty"` + TriggeredWorkflow *string `json:"triggered_workflow,omitempty"` +} + +// NewV0BuildListAllResponseItemModel instantiates a new V0BuildListAllResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildListAllResponseItemModel() *V0BuildListAllResponseItemModel { + this := V0BuildListAllResponseItemModel{} + return &this +} + +// NewV0BuildListAllResponseItemModelWithDefaults instantiates a new V0BuildListAllResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildListAllResponseItemModelWithDefaults() *V0BuildListAllResponseItemModel { + this := V0BuildListAllResponseItemModel{} + return &this +} + +// GetAbortReason returns the AbortReason field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetAbortReason() NullsString { + if o == nil || IsNil(o.AbortReason) { + var ret NullsString + return ret + } + return *o.AbortReason +} + +// GetAbortReasonOk returns a tuple with the AbortReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetAbortReasonOk() (*NullsString, bool) { + if o == nil || IsNil(o.AbortReason) { + return nil, false + } + return o.AbortReason, true +} + +// HasAbortReason returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasAbortReason() bool { + if o != nil && !IsNil(o.AbortReason) { + return true + } + + return false +} + +// SetAbortReason gets a reference to the given NullsString and assigns it to the AbortReason field. +func (o *V0BuildListAllResponseItemModel) SetAbortReason(v NullsString) { + o.AbortReason = &v +} + +// GetBranch returns the Branch field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetBranch() NullsString { + if o == nil || IsNil(o.Branch) { + var ret NullsString + return ret + } + return *o.Branch +} + +// GetBranchOk returns a tuple with the Branch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetBranchOk() (*NullsString, bool) { + if o == nil || IsNil(o.Branch) { + return nil, false + } + return o.Branch, true +} + +// HasBranch returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasBranch() bool { + if o != nil && !IsNil(o.Branch) { + return true + } + + return false +} + +// SetBranch gets a reference to the given NullsString and assigns it to the Branch field. +func (o *V0BuildListAllResponseItemModel) SetBranch(v NullsString) { + o.Branch = &v +} + +// GetBuildNumber returns the BuildNumber field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetBuildNumber() int32 { + if o == nil || IsNil(o.BuildNumber) { + var ret int32 + return ret + } + return *o.BuildNumber +} + +// GetBuildNumberOk returns a tuple with the BuildNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetBuildNumberOk() (*int32, bool) { + if o == nil || IsNil(o.BuildNumber) { + return nil, false + } + return o.BuildNumber, true +} + +// HasBuildNumber returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasBuildNumber() bool { + if o != nil && !IsNil(o.BuildNumber) { + return true + } + + return false +} + +// SetBuildNumber gets a reference to the given int32 and assigns it to the BuildNumber field. +func (o *V0BuildListAllResponseItemModel) SetBuildNumber(v int32) { + o.BuildNumber = &v +} + +// GetCommitHash returns the CommitHash field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetCommitHash() NullsString { + if o == nil || IsNil(o.CommitHash) { + var ret NullsString + return ret + } + return *o.CommitHash +} + +// GetCommitHashOk returns a tuple with the CommitHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetCommitHashOk() (*NullsString, bool) { + if o == nil || IsNil(o.CommitHash) { + return nil, false + } + return o.CommitHash, true +} + +// HasCommitHash returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasCommitHash() bool { + if o != nil && !IsNil(o.CommitHash) { + return true + } + + return false +} + +// SetCommitHash gets a reference to the given NullsString and assigns it to the CommitHash field. +func (o *V0BuildListAllResponseItemModel) SetCommitHash(v NullsString) { + o.CommitHash = &v +} + +// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetCommitMessage() NullsString { + if o == nil || IsNil(o.CommitMessage) { + var ret NullsString + return ret + } + return *o.CommitMessage +} + +// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetCommitMessageOk() (*NullsString, bool) { + if o == nil || IsNil(o.CommitMessage) { + return nil, false + } + return o.CommitMessage, true +} + +// HasCommitMessage returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasCommitMessage() bool { + if o != nil && !IsNil(o.CommitMessage) { + return true + } + + return false +} + +// SetCommitMessage gets a reference to the given NullsString and assigns it to the CommitMessage field. +func (o *V0BuildListAllResponseItemModel) SetCommitMessage(v NullsString) { + o.CommitMessage = &v +} + +// GetCommitViewUrl returns the CommitViewUrl field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetCommitViewUrl() NullsString { + if o == nil || IsNil(o.CommitViewUrl) { + var ret NullsString + return ret + } + return *o.CommitViewUrl +} + +// GetCommitViewUrlOk returns a tuple with the CommitViewUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetCommitViewUrlOk() (*NullsString, bool) { + if o == nil || IsNil(o.CommitViewUrl) { + return nil, false + } + return o.CommitViewUrl, true +} + +// HasCommitViewUrl returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasCommitViewUrl() bool { + if o != nil && !IsNil(o.CommitViewUrl) { + return true + } + + return false +} + +// SetCommitViewUrl gets a reference to the given NullsString and assigns it to the CommitViewUrl field. +func (o *V0BuildListAllResponseItemModel) SetCommitViewUrl(v NullsString) { + o.CommitViewUrl = &v +} + +// GetCreditCost returns the CreditCost field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetCreditCost() NullsInt64 { + if o == nil || IsNil(o.CreditCost) { + var ret NullsInt64 + return ret + } + return *o.CreditCost +} + +// GetCreditCostOk returns a tuple with the CreditCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetCreditCostOk() (*NullsInt64, bool) { + if o == nil || IsNil(o.CreditCost) { + return nil, false + } + return o.CreditCost, true +} + +// HasCreditCost returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasCreditCost() bool { + if o != nil && !IsNil(o.CreditCost) { + return true + } + + return false +} + +// SetCreditCost gets a reference to the given NullsInt64 and assigns it to the CreditCost field. +func (o *V0BuildListAllResponseItemModel) SetCreditCost(v NullsInt64) { + o.CreditCost = &v +} + +// GetEnvironmentPrepareFinishedAt returns the EnvironmentPrepareFinishedAt field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetEnvironmentPrepareFinishedAt() string { + if o == nil || IsNil(o.EnvironmentPrepareFinishedAt) { + var ret string + return ret + } + return *o.EnvironmentPrepareFinishedAt +} + +// GetEnvironmentPrepareFinishedAtOk returns a tuple with the EnvironmentPrepareFinishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetEnvironmentPrepareFinishedAtOk() (*string, bool) { + if o == nil || IsNil(o.EnvironmentPrepareFinishedAt) { + return nil, false + } + return o.EnvironmentPrepareFinishedAt, true +} + +// HasEnvironmentPrepareFinishedAt returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasEnvironmentPrepareFinishedAt() bool { + if o != nil && !IsNil(o.EnvironmentPrepareFinishedAt) { + return true + } + + return false +} + +// SetEnvironmentPrepareFinishedAt gets a reference to the given string and assigns it to the EnvironmentPrepareFinishedAt field. +func (o *V0BuildListAllResponseItemModel) SetEnvironmentPrepareFinishedAt(v string) { + o.EnvironmentPrepareFinishedAt = &v +} + +// GetFinishedAt returns the FinishedAt field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetFinishedAt() string { + if o == nil || IsNil(o.FinishedAt) { + var ret string + return ret + } + return *o.FinishedAt +} + +// GetFinishedAtOk returns a tuple with the FinishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetFinishedAtOk() (*string, bool) { + if o == nil || IsNil(o.FinishedAt) { + return nil, false + } + return o.FinishedAt, true +} + +// HasFinishedAt returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasFinishedAt() bool { + if o != nil && !IsNil(o.FinishedAt) { + return true + } + + return false +} + +// SetFinishedAt gets a reference to the given string and assigns it to the FinishedAt field. +func (o *V0BuildListAllResponseItemModel) SetFinishedAt(v string) { + o.FinishedAt = &v +} + +// GetIsOnHold returns the IsOnHold field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetIsOnHold() bool { + if o == nil || IsNil(o.IsOnHold) { + var ret bool + return ret + } + return *o.IsOnHold +} + +// GetIsOnHoldOk returns a tuple with the IsOnHold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetIsOnHoldOk() (*bool, bool) { + if o == nil || IsNil(o.IsOnHold) { + return nil, false + } + return o.IsOnHold, true +} + +// HasIsOnHold returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasIsOnHold() bool { + if o != nil && !IsNil(o.IsOnHold) { + return true + } + + return false +} + +// SetIsOnHold gets a reference to the given bool and assigns it to the IsOnHold field. +func (o *V0BuildListAllResponseItemModel) SetIsOnHold(v bool) { + o.IsOnHold = &v +} + +// GetIsProcessed returns the IsProcessed field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetIsProcessed() bool { + if o == nil || IsNil(o.IsProcessed) { + var ret bool + return ret + } + return *o.IsProcessed +} + +// GetIsProcessedOk returns a tuple with the IsProcessed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetIsProcessedOk() (*bool, bool) { + if o == nil || IsNil(o.IsProcessed) { + return nil, false + } + return o.IsProcessed, true +} + +// HasIsProcessed returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasIsProcessed() bool { + if o != nil && !IsNil(o.IsProcessed) { + return true + } + + return false +} + +// SetIsProcessed gets a reference to the given bool and assigns it to the IsProcessed field. +func (o *V0BuildListAllResponseItemModel) SetIsProcessed(v bool) { + o.IsProcessed = &v +} + +// GetMachineTypeId returns the MachineTypeId field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetMachineTypeId() NullsString { + if o == nil || IsNil(o.MachineTypeId) { + var ret NullsString + return ret + } + return *o.MachineTypeId +} + +// GetMachineTypeIdOk returns a tuple with the MachineTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetMachineTypeIdOk() (*NullsString, bool) { + if o == nil || IsNil(o.MachineTypeId) { + return nil, false + } + return o.MachineTypeId, true +} + +// HasMachineTypeId returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasMachineTypeId() bool { + if o != nil && !IsNil(o.MachineTypeId) { + return true + } + + return false +} + +// SetMachineTypeId gets a reference to the given NullsString and assigns it to the MachineTypeId field. +func (o *V0BuildListAllResponseItemModel) SetMachineTypeId(v NullsString) { + o.MachineTypeId = &v +} + +// GetOriginalBuildParams returns the OriginalBuildParams field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetOriginalBuildParams() []int32 { + if o == nil || IsNil(o.OriginalBuildParams) { + var ret []int32 + return ret + } + return o.OriginalBuildParams +} + +// GetOriginalBuildParamsOk returns a tuple with the OriginalBuildParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetOriginalBuildParamsOk() ([]int32, bool) { + if o == nil || IsNil(o.OriginalBuildParams) { + return nil, false + } + return o.OriginalBuildParams, true +} + +// HasOriginalBuildParams returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasOriginalBuildParams() bool { + if o != nil && !IsNil(o.OriginalBuildParams) { + return true + } + + return false +} + +// SetOriginalBuildParams gets a reference to the given []int32 and assigns it to the OriginalBuildParams field. +func (o *V0BuildListAllResponseItemModel) SetOriginalBuildParams(v []int32) { + o.OriginalBuildParams = v +} + +// GetPullRequestId returns the PullRequestId field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetPullRequestId() int32 { + if o == nil || IsNil(o.PullRequestId) { + var ret int32 + return ret + } + return *o.PullRequestId +} + +// GetPullRequestIdOk returns a tuple with the PullRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetPullRequestIdOk() (*int32, bool) { + if o == nil || IsNil(o.PullRequestId) { + return nil, false + } + return o.PullRequestId, true +} + +// HasPullRequestId returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasPullRequestId() bool { + if o != nil && !IsNil(o.PullRequestId) { + return true + } + + return false +} + +// SetPullRequestId gets a reference to the given int32 and assigns it to the PullRequestId field. +func (o *V0BuildListAllResponseItemModel) SetPullRequestId(v int32) { + o.PullRequestId = &v +} + +// GetPullRequestTargetBranch returns the PullRequestTargetBranch field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetPullRequestTargetBranch() NullsString { + if o == nil || IsNil(o.PullRequestTargetBranch) { + var ret NullsString + return ret + } + return *o.PullRequestTargetBranch +} + +// GetPullRequestTargetBranchOk returns a tuple with the PullRequestTargetBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetPullRequestTargetBranchOk() (*NullsString, bool) { + if o == nil || IsNil(o.PullRequestTargetBranch) { + return nil, false + } + return o.PullRequestTargetBranch, true +} + +// HasPullRequestTargetBranch returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasPullRequestTargetBranch() bool { + if o != nil && !IsNil(o.PullRequestTargetBranch) { + return true + } + + return false +} + +// SetPullRequestTargetBranch gets a reference to the given NullsString and assigns it to the PullRequestTargetBranch field. +func (o *V0BuildListAllResponseItemModel) SetPullRequestTargetBranch(v NullsString) { + o.PullRequestTargetBranch = &v +} + +// GetPullRequestViewUrl returns the PullRequestViewUrl field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetPullRequestViewUrl() NullsString { + if o == nil || IsNil(o.PullRequestViewUrl) { + var ret NullsString + return ret + } + return *o.PullRequestViewUrl +} + +// GetPullRequestViewUrlOk returns a tuple with the PullRequestViewUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetPullRequestViewUrlOk() (*NullsString, bool) { + if o == nil || IsNil(o.PullRequestViewUrl) { + return nil, false + } + return o.PullRequestViewUrl, true +} + +// HasPullRequestViewUrl returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasPullRequestViewUrl() bool { + if o != nil && !IsNil(o.PullRequestViewUrl) { + return true + } + + return false +} + +// SetPullRequestViewUrl gets a reference to the given NullsString and assigns it to the PullRequestViewUrl field. +func (o *V0BuildListAllResponseItemModel) SetPullRequestViewUrl(v NullsString) { + o.PullRequestViewUrl = &v +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetRepository() V0AppResponseItemModel { + if o == nil || IsNil(o.Repository) { + var ret V0AppResponseItemModel + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetRepositoryOk() (*V0AppResponseItemModel, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given V0AppResponseItemModel and assigns it to the Repository field. +func (o *V0BuildListAllResponseItemModel) SetRepository(v V0AppResponseItemModel) { + o.Repository = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0BuildListAllResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetStackIdentifier returns the StackIdentifier field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetStackIdentifier() NullsString { + if o == nil || IsNil(o.StackIdentifier) { + var ret NullsString + return ret + } + return *o.StackIdentifier +} + +// GetStackIdentifierOk returns a tuple with the StackIdentifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetStackIdentifierOk() (*NullsString, bool) { + if o == nil || IsNil(o.StackIdentifier) { + return nil, false + } + return o.StackIdentifier, true +} + +// HasStackIdentifier returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasStackIdentifier() bool { + if o != nil && !IsNil(o.StackIdentifier) { + return true + } + + return false +} + +// SetStackIdentifier gets a reference to the given NullsString and assigns it to the StackIdentifier field. +func (o *V0BuildListAllResponseItemModel) SetStackIdentifier(v NullsString) { + o.StackIdentifier = &v +} + +// GetStartedOnWorkerAt returns the StartedOnWorkerAt field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetStartedOnWorkerAt() string { + if o == nil || IsNil(o.StartedOnWorkerAt) { + var ret string + return ret + } + return *o.StartedOnWorkerAt +} + +// GetStartedOnWorkerAtOk returns a tuple with the StartedOnWorkerAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetStartedOnWorkerAtOk() (*string, bool) { + if o == nil || IsNil(o.StartedOnWorkerAt) { + return nil, false + } + return o.StartedOnWorkerAt, true +} + +// HasStartedOnWorkerAt returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasStartedOnWorkerAt() bool { + if o != nil && !IsNil(o.StartedOnWorkerAt) { + return true + } + + return false +} + +// SetStartedOnWorkerAt gets a reference to the given string and assigns it to the StartedOnWorkerAt field. +func (o *V0BuildListAllResponseItemModel) SetStartedOnWorkerAt(v string) { + o.StartedOnWorkerAt = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetStatusOk() (*int32, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *V0BuildListAllResponseItemModel) SetStatus(v int32) { + o.Status = &v +} + +// GetStatusText returns the StatusText field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetStatusText() string { + if o == nil || IsNil(o.StatusText) { + var ret string + return ret + } + return *o.StatusText +} + +// GetStatusTextOk returns a tuple with the StatusText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetStatusTextOk() (*string, bool) { + if o == nil || IsNil(o.StatusText) { + return nil, false + } + return o.StatusText, true +} + +// HasStatusText returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasStatusText() bool { + if o != nil && !IsNil(o.StatusText) { + return true + } + + return false +} + +// SetStatusText gets a reference to the given string and assigns it to the StatusText field. +func (o *V0BuildListAllResponseItemModel) SetStatusText(v string) { + o.StatusText = &v +} + +// GetTag returns the Tag field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetTag() NullsString { + if o == nil || IsNil(o.Tag) { + var ret NullsString + return ret + } + return *o.Tag +} + +// GetTagOk returns a tuple with the Tag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetTagOk() (*NullsString, bool) { + if o == nil || IsNil(o.Tag) { + return nil, false + } + return o.Tag, true +} + +// HasTag returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasTag() bool { + if o != nil && !IsNil(o.Tag) { + return true + } + + return false +} + +// SetTag gets a reference to the given NullsString and assigns it to the Tag field. +func (o *V0BuildListAllResponseItemModel) SetTag(v NullsString) { + o.Tag = &v +} + +// GetTriggeredAt returns the TriggeredAt field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetTriggeredAt() string { + if o == nil || IsNil(o.TriggeredAt) { + var ret string + return ret + } + return *o.TriggeredAt +} + +// GetTriggeredAtOk returns a tuple with the TriggeredAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetTriggeredAtOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredAt) { + return nil, false + } + return o.TriggeredAt, true +} + +// HasTriggeredAt returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasTriggeredAt() bool { + if o != nil && !IsNil(o.TriggeredAt) { + return true + } + + return false +} + +// SetTriggeredAt gets a reference to the given string and assigns it to the TriggeredAt field. +func (o *V0BuildListAllResponseItemModel) SetTriggeredAt(v string) { + o.TriggeredAt = &v +} + +// GetTriggeredBy returns the TriggeredBy field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetTriggeredBy() NullsString { + if o == nil || IsNil(o.TriggeredBy) { + var ret NullsString + return ret + } + return *o.TriggeredBy +} + +// GetTriggeredByOk returns a tuple with the TriggeredBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetTriggeredByOk() (*NullsString, bool) { + if o == nil || IsNil(o.TriggeredBy) { + return nil, false + } + return o.TriggeredBy, true +} + +// HasTriggeredBy returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasTriggeredBy() bool { + if o != nil && !IsNil(o.TriggeredBy) { + return true + } + + return false +} + +// SetTriggeredBy gets a reference to the given NullsString and assigns it to the TriggeredBy field. +func (o *V0BuildListAllResponseItemModel) SetTriggeredBy(v NullsString) { + o.TriggeredBy = &v +} + +// GetTriggeredWorkflow returns the TriggeredWorkflow field value if set, zero value otherwise. +func (o *V0BuildListAllResponseItemModel) GetTriggeredWorkflow() string { + if o == nil || IsNil(o.TriggeredWorkflow) { + var ret string + return ret + } + return *o.TriggeredWorkflow +} + +// GetTriggeredWorkflowOk returns a tuple with the TriggeredWorkflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseItemModel) GetTriggeredWorkflowOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredWorkflow) { + return nil, false + } + return o.TriggeredWorkflow, true +} + +// HasTriggeredWorkflow returns a boolean if a field has been set. +func (o *V0BuildListAllResponseItemModel) HasTriggeredWorkflow() bool { + if o != nil && !IsNil(o.TriggeredWorkflow) { + return true + } + + return false +} + +// SetTriggeredWorkflow gets a reference to the given string and assigns it to the TriggeredWorkflow field. +func (o *V0BuildListAllResponseItemModel) SetTriggeredWorkflow(v string) { + o.TriggeredWorkflow = &v +} + +func (o V0BuildListAllResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildListAllResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AbortReason) { + toSerialize["abort_reason"] = o.AbortReason + } + if !IsNil(o.Branch) { + toSerialize["branch"] = o.Branch + } + if !IsNil(o.BuildNumber) { + toSerialize["build_number"] = o.BuildNumber + } + if !IsNil(o.CommitHash) { + toSerialize["commit_hash"] = o.CommitHash + } + if !IsNil(o.CommitMessage) { + toSerialize["commit_message"] = o.CommitMessage + } + if !IsNil(o.CommitViewUrl) { + toSerialize["commit_view_url"] = o.CommitViewUrl + } + if !IsNil(o.CreditCost) { + toSerialize["credit_cost"] = o.CreditCost + } + if !IsNil(o.EnvironmentPrepareFinishedAt) { + toSerialize["environment_prepare_finished_at"] = o.EnvironmentPrepareFinishedAt + } + if !IsNil(o.FinishedAt) { + toSerialize["finished_at"] = o.FinishedAt + } + if !IsNil(o.IsOnHold) { + toSerialize["is_on_hold"] = o.IsOnHold + } + if !IsNil(o.IsProcessed) { + toSerialize["is_processed"] = o.IsProcessed + } + if !IsNil(o.MachineTypeId) { + toSerialize["machine_type_id"] = o.MachineTypeId + } + if !IsNil(o.OriginalBuildParams) { + toSerialize["original_build_params"] = o.OriginalBuildParams + } + if !IsNil(o.PullRequestId) { + toSerialize["pull_request_id"] = o.PullRequestId + } + if !IsNil(o.PullRequestTargetBranch) { + toSerialize["pull_request_target_branch"] = o.PullRequestTargetBranch + } + if !IsNil(o.PullRequestViewUrl) { + toSerialize["pull_request_view_url"] = o.PullRequestViewUrl + } + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.StackIdentifier) { + toSerialize["stack_identifier"] = o.StackIdentifier + } + if !IsNil(o.StartedOnWorkerAt) { + toSerialize["started_on_worker_at"] = o.StartedOnWorkerAt + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.StatusText) { + toSerialize["status_text"] = o.StatusText + } + if !IsNil(o.Tag) { + toSerialize["tag"] = o.Tag + } + if !IsNil(o.TriggeredAt) { + toSerialize["triggered_at"] = o.TriggeredAt + } + if !IsNil(o.TriggeredBy) { + toSerialize["triggered_by"] = o.TriggeredBy + } + if !IsNil(o.TriggeredWorkflow) { + toSerialize["triggered_workflow"] = o.TriggeredWorkflow + } + return toSerialize, nil +} + +type NullableV0BuildListAllResponseItemModel struct { + value *V0BuildListAllResponseItemModel + isSet bool +} + +func (v NullableV0BuildListAllResponseItemModel) Get() *V0BuildListAllResponseItemModel { + return v.value +} + +func (v *NullableV0BuildListAllResponseItemModel) Set(val *V0BuildListAllResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildListAllResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildListAllResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildListAllResponseItemModel(val *V0BuildListAllResponseItemModel) *NullableV0BuildListAllResponseItemModel { + return &NullableV0BuildListAllResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0BuildListAllResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildListAllResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_list_all_response_model.go b/go2/model_v0_build_list_all_response_model.go new file mode 100644 index 0000000..648afbd --- /dev/null +++ b/go2/model_v0_build_list_all_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildListAllResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildListAllResponseModel{} + +// V0BuildListAllResponseModel struct for V0BuildListAllResponseModel +type V0BuildListAllResponseModel struct { + Data []V0BuildListAllResponseItemModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0BuildListAllResponseModel instantiates a new V0BuildListAllResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildListAllResponseModel() *V0BuildListAllResponseModel { + this := V0BuildListAllResponseModel{} + return &this +} + +// NewV0BuildListAllResponseModelWithDefaults instantiates a new V0BuildListAllResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildListAllResponseModelWithDefaults() *V0BuildListAllResponseModel { + this := V0BuildListAllResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0BuildListAllResponseModel) GetData() []V0BuildListAllResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0BuildListAllResponseItemModel + 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 *V0BuildListAllResponseModel) GetDataOk() ([]V0BuildListAllResponseItemModel, 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 *V0BuildListAllResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0BuildListAllResponseItemModel and assigns it to the Data field. +func (o *V0BuildListAllResponseModel) SetData(v []V0BuildListAllResponseItemModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0BuildListAllResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListAllResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0BuildListAllResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0BuildListAllResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0BuildListAllResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildListAllResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0BuildListAllResponseModel struct { + value *V0BuildListAllResponseModel + isSet bool +} + +func (v NullableV0BuildListAllResponseModel) Get() *V0BuildListAllResponseModel { + return v.value +} + +func (v *NullableV0BuildListAllResponseModel) Set(val *V0BuildListAllResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildListAllResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildListAllResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildListAllResponseModel(val *V0BuildListAllResponseModel) *NullableV0BuildListAllResponseModel { + return &NullableV0BuildListAllResponseModel{value: val, isSet: true} +} + +func (v NullableV0BuildListAllResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildListAllResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_list_response_model.go b/go2/model_v0_build_list_response_model.go new file mode 100644 index 0000000..a2ddcb1 --- /dev/null +++ b/go2/model_v0_build_list_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildListResponseModel{} + +// V0BuildListResponseModel struct for V0BuildListResponseModel +type V0BuildListResponseModel struct { + Data []V0BuildResponseItemModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0BuildListResponseModel instantiates a new V0BuildListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildListResponseModel() *V0BuildListResponseModel { + this := V0BuildListResponseModel{} + return &this +} + +// NewV0BuildListResponseModelWithDefaults instantiates a new V0BuildListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildListResponseModelWithDefaults() *V0BuildListResponseModel { + this := V0BuildListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0BuildListResponseModel) GetData() []V0BuildResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0BuildResponseItemModel + 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 *V0BuildListResponseModel) GetDataOk() ([]V0BuildResponseItemModel, 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 *V0BuildListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0BuildResponseItemModel and assigns it to the Data field. +func (o *V0BuildListResponseModel) SetData(v []V0BuildResponseItemModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0BuildListResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0BuildListResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0BuildListResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0BuildListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0BuildListResponseModel struct { + value *V0BuildListResponseModel + isSet bool +} + +func (v NullableV0BuildListResponseModel) Get() *V0BuildListResponseModel { + return v.value +} + +func (v *NullableV0BuildListResponseModel) Set(val *V0BuildListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildListResponseModel(val *V0BuildListResponseModel) *NullableV0BuildListResponseModel { + return &NullableV0BuildListResponseModel{value: val, isSet: true} +} + +func (v NullableV0BuildListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_params_environment.go b/go2/model_v0_build_params_environment.go new file mode 100644 index 0000000..23c0793 --- /dev/null +++ b/go2/model_v0_build_params_environment.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildParamsEnvironment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildParamsEnvironment{} + +// V0BuildParamsEnvironment struct for V0BuildParamsEnvironment +type V0BuildParamsEnvironment struct { + IsExpand *bool `json:"is_expand,omitempty"` + MappedTo *string `json:"mapped_to,omitempty"` + Value *string `json:"value,omitempty"` +} + +// NewV0BuildParamsEnvironment instantiates a new V0BuildParamsEnvironment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildParamsEnvironment() *V0BuildParamsEnvironment { + this := V0BuildParamsEnvironment{} + return &this +} + +// NewV0BuildParamsEnvironmentWithDefaults instantiates a new V0BuildParamsEnvironment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildParamsEnvironmentWithDefaults() *V0BuildParamsEnvironment { + this := V0BuildParamsEnvironment{} + return &this +} + +// GetIsExpand returns the IsExpand field value if set, zero value otherwise. +func (o *V0BuildParamsEnvironment) GetIsExpand() bool { + if o == nil || IsNil(o.IsExpand) { + var ret bool + return ret + } + return *o.IsExpand +} + +// GetIsExpandOk returns a tuple with the IsExpand field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildParamsEnvironment) GetIsExpandOk() (*bool, bool) { + if o == nil || IsNil(o.IsExpand) { + return nil, false + } + return o.IsExpand, true +} + +// HasIsExpand returns a boolean if a field has been set. +func (o *V0BuildParamsEnvironment) HasIsExpand() bool { + if o != nil && !IsNil(o.IsExpand) { + return true + } + + return false +} + +// SetIsExpand gets a reference to the given bool and assigns it to the IsExpand field. +func (o *V0BuildParamsEnvironment) SetIsExpand(v bool) { + o.IsExpand = &v +} + +// GetMappedTo returns the MappedTo field value if set, zero value otherwise. +func (o *V0BuildParamsEnvironment) GetMappedTo() string { + if o == nil || IsNil(o.MappedTo) { + var ret string + return ret + } + return *o.MappedTo +} + +// GetMappedToOk returns a tuple with the MappedTo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildParamsEnvironment) GetMappedToOk() (*string, bool) { + if o == nil || IsNil(o.MappedTo) { + return nil, false + } + return o.MappedTo, true +} + +// HasMappedTo returns a boolean if a field has been set. +func (o *V0BuildParamsEnvironment) HasMappedTo() bool { + if o != nil && !IsNil(o.MappedTo) { + return true + } + + return false +} + +// SetMappedTo gets a reference to the given string and assigns it to the MappedTo field. +func (o *V0BuildParamsEnvironment) SetMappedTo(v string) { + o.MappedTo = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *V0BuildParamsEnvironment) 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 *V0BuildParamsEnvironment) 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 *V0BuildParamsEnvironment) 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 *V0BuildParamsEnvironment) SetValue(v string) { + o.Value = &v +} + +func (o V0BuildParamsEnvironment) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildParamsEnvironment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsExpand) { + toSerialize["is_expand"] = o.IsExpand + } + if !IsNil(o.MappedTo) { + toSerialize["mapped_to"] = o.MappedTo + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableV0BuildParamsEnvironment struct { + value *V0BuildParamsEnvironment + isSet bool +} + +func (v NullableV0BuildParamsEnvironment) Get() *V0BuildParamsEnvironment { + return v.value +} + +func (v *NullableV0BuildParamsEnvironment) Set(val *V0BuildParamsEnvironment) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildParamsEnvironment) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildParamsEnvironment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildParamsEnvironment(val *V0BuildParamsEnvironment) *NullableV0BuildParamsEnvironment { + return &NullableV0BuildParamsEnvironment{value: val, isSet: true} +} + +func (v NullableV0BuildParamsEnvironment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildParamsEnvironment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_request_list_response_model.go b/go2/model_v0_build_request_list_response_model.go new file mode 100644 index 0000000..90b0afb --- /dev/null +++ b/go2/model_v0_build_request_list_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildRequestListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildRequestListResponseModel{} + +// V0BuildRequestListResponseModel struct for V0BuildRequestListResponseModel +type V0BuildRequestListResponseModel struct { + Data []V0BuildRequestResponseItemModel `json:"data,omitempty"` +} + +// NewV0BuildRequestListResponseModel instantiates a new V0BuildRequestListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildRequestListResponseModel() *V0BuildRequestListResponseModel { + this := V0BuildRequestListResponseModel{} + return &this +} + +// NewV0BuildRequestListResponseModelWithDefaults instantiates a new V0BuildRequestListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildRequestListResponseModelWithDefaults() *V0BuildRequestListResponseModel { + this := V0BuildRequestListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0BuildRequestListResponseModel) GetData() []V0BuildRequestResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0BuildRequestResponseItemModel + 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 *V0BuildRequestListResponseModel) GetDataOk() ([]V0BuildRequestResponseItemModel, 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 *V0BuildRequestListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0BuildRequestResponseItemModel and assigns it to the Data field. +func (o *V0BuildRequestListResponseModel) SetData(v []V0BuildRequestResponseItemModel) { + o.Data = v +} + +func (o V0BuildRequestListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildRequestListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0BuildRequestListResponseModel struct { + value *V0BuildRequestListResponseModel + isSet bool +} + +func (v NullableV0BuildRequestListResponseModel) Get() *V0BuildRequestListResponseModel { + return v.value +} + +func (v *NullableV0BuildRequestListResponseModel) Set(val *V0BuildRequestListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildRequestListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildRequestListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildRequestListResponseModel(val *V0BuildRequestListResponseModel) *NullableV0BuildRequestListResponseModel { + return &NullableV0BuildRequestListResponseModel{value: val, isSet: true} +} + +func (v NullableV0BuildRequestListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildRequestListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_request_response_item_model.go b/go2/model_v0_build_request_response_item_model.go new file mode 100644 index 0000000..44cfc43 --- /dev/null +++ b/go2/model_v0_build_request_response_item_model.go @@ -0,0 +1,235 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildRequestResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildRequestResponseItemModel{} + +// V0BuildRequestResponseItemModel struct for V0BuildRequestResponseItemModel +type V0BuildRequestResponseItemModel struct { + BuildParams []int32 `json:"build_params,omitempty"` + CreatedAt *string `json:"created_at,omitempty"` + PullRequestUrl *string `json:"pull_request_url,omitempty"` + Slug *string `json:"slug,omitempty"` +} + +// NewV0BuildRequestResponseItemModel instantiates a new V0BuildRequestResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildRequestResponseItemModel() *V0BuildRequestResponseItemModel { + this := V0BuildRequestResponseItemModel{} + return &this +} + +// NewV0BuildRequestResponseItemModelWithDefaults instantiates a new V0BuildRequestResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildRequestResponseItemModelWithDefaults() *V0BuildRequestResponseItemModel { + this := V0BuildRequestResponseItemModel{} + return &this +} + +// GetBuildParams returns the BuildParams field value if set, zero value otherwise. +func (o *V0BuildRequestResponseItemModel) GetBuildParams() []int32 { + if o == nil || IsNil(o.BuildParams) { + var ret []int32 + return ret + } + return o.BuildParams +} + +// GetBuildParamsOk returns a tuple with the BuildParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildRequestResponseItemModel) GetBuildParamsOk() ([]int32, bool) { + if o == nil || IsNil(o.BuildParams) { + return nil, false + } + return o.BuildParams, true +} + +// HasBuildParams returns a boolean if a field has been set. +func (o *V0BuildRequestResponseItemModel) HasBuildParams() bool { + if o != nil && !IsNil(o.BuildParams) { + return true + } + + return false +} + +// SetBuildParams gets a reference to the given []int32 and assigns it to the BuildParams field. +func (o *V0BuildRequestResponseItemModel) SetBuildParams(v []int32) { + o.BuildParams = v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *V0BuildRequestResponseItemModel) GetCreatedAt() string { + if o == nil || IsNil(o.CreatedAt) { + var ret string + 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 *V0BuildRequestResponseItemModel) GetCreatedAtOk() (*string, 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 *V0BuildRequestResponseItemModel) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. +func (o *V0BuildRequestResponseItemModel) SetCreatedAt(v string) { + o.CreatedAt = &v +} + +// GetPullRequestUrl returns the PullRequestUrl field value if set, zero value otherwise. +func (o *V0BuildRequestResponseItemModel) GetPullRequestUrl() string { + if o == nil || IsNil(o.PullRequestUrl) { + var ret string + return ret + } + return *o.PullRequestUrl +} + +// GetPullRequestUrlOk returns a tuple with the PullRequestUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildRequestResponseItemModel) GetPullRequestUrlOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestUrl) { + return nil, false + } + return o.PullRequestUrl, true +} + +// HasPullRequestUrl returns a boolean if a field has been set. +func (o *V0BuildRequestResponseItemModel) HasPullRequestUrl() bool { + if o != nil && !IsNil(o.PullRequestUrl) { + return true + } + + return false +} + +// SetPullRequestUrl gets a reference to the given string and assigns it to the PullRequestUrl field. +func (o *V0BuildRequestResponseItemModel) SetPullRequestUrl(v string) { + o.PullRequestUrl = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0BuildRequestResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildRequestResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0BuildRequestResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0BuildRequestResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +func (o V0BuildRequestResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildRequestResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BuildParams) { + toSerialize["build_params"] = o.BuildParams + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.PullRequestUrl) { + toSerialize["pull_request_url"] = o.PullRequestUrl + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + return toSerialize, nil +} + +type NullableV0BuildRequestResponseItemModel struct { + value *V0BuildRequestResponseItemModel + isSet bool +} + +func (v NullableV0BuildRequestResponseItemModel) Get() *V0BuildRequestResponseItemModel { + return v.value +} + +func (v *NullableV0BuildRequestResponseItemModel) Set(val *V0BuildRequestResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildRequestResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildRequestResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildRequestResponseItemModel(val *V0BuildRequestResponseItemModel) *NullableV0BuildRequestResponseItemModel { + return &NullableV0BuildRequestResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0BuildRequestResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildRequestResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_request_update_params.go b/go2/model_v0_build_request_update_params.go new file mode 100644 index 0000000..ba890ba --- /dev/null +++ b/go2/model_v0_build_request_update_params.go @@ -0,0 +1,156 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0BuildRequestUpdateParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildRequestUpdateParams{} + +// V0BuildRequestUpdateParams struct for V0BuildRequestUpdateParams +type V0BuildRequestUpdateParams struct { + IsApproved bool `json:"is_approved"` +} + +type _V0BuildRequestUpdateParams V0BuildRequestUpdateParams + +// NewV0BuildRequestUpdateParams instantiates a new V0BuildRequestUpdateParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildRequestUpdateParams(isApproved bool) *V0BuildRequestUpdateParams { + this := V0BuildRequestUpdateParams{} + this.IsApproved = isApproved + return &this +} + +// NewV0BuildRequestUpdateParamsWithDefaults instantiates a new V0BuildRequestUpdateParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildRequestUpdateParamsWithDefaults() *V0BuildRequestUpdateParams { + this := V0BuildRequestUpdateParams{} + return &this +} + +// GetIsApproved returns the IsApproved field value +func (o *V0BuildRequestUpdateParams) GetIsApproved() bool { + if o == nil { + var ret bool + return ret + } + + return o.IsApproved +} + +// GetIsApprovedOk returns a tuple with the IsApproved field value +// and a boolean to check if the value has been set. +func (o *V0BuildRequestUpdateParams) GetIsApprovedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.IsApproved, true +} + +// SetIsApproved sets field value +func (o *V0BuildRequestUpdateParams) SetIsApproved(v bool) { + o.IsApproved = v +} + +func (o V0BuildRequestUpdateParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildRequestUpdateParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["is_approved"] = o.IsApproved + return toSerialize, nil +} + +func (o *V0BuildRequestUpdateParams) UnmarshalJSON(bytes []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{ + "is_approved", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0BuildRequestUpdateParams := _V0BuildRequestUpdateParams{} + + err = json.Unmarshal(bytes, &varV0BuildRequestUpdateParams) + + if err != nil { + return err + } + + *o = V0BuildRequestUpdateParams(varV0BuildRequestUpdateParams) + + return err +} + +type NullableV0BuildRequestUpdateParams struct { + value *V0BuildRequestUpdateParams + isSet bool +} + +func (v NullableV0BuildRequestUpdateParams) Get() *V0BuildRequestUpdateParams { + return v.value +} + +func (v *NullableV0BuildRequestUpdateParams) Set(val *V0BuildRequestUpdateParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildRequestUpdateParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildRequestUpdateParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildRequestUpdateParams(val *V0BuildRequestUpdateParams) *NullableV0BuildRequestUpdateParams { + return &NullableV0BuildRequestUpdateParams{value: val, isSet: true} +} + +func (v NullableV0BuildRequestUpdateParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildRequestUpdateParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_request_update_response_model.go b/go2/model_v0_build_request_update_response_model.go new file mode 100644 index 0000000..65708e2 --- /dev/null +++ b/go2/model_v0_build_request_update_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildRequestUpdateResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildRequestUpdateResponseModel{} + +// V0BuildRequestUpdateResponseModel struct for V0BuildRequestUpdateResponseModel +type V0BuildRequestUpdateResponseModel struct { + Data *V0BuildRequestResponseItemModel `json:"data,omitempty"` +} + +// NewV0BuildRequestUpdateResponseModel instantiates a new V0BuildRequestUpdateResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildRequestUpdateResponseModel() *V0BuildRequestUpdateResponseModel { + this := V0BuildRequestUpdateResponseModel{} + return &this +} + +// NewV0BuildRequestUpdateResponseModelWithDefaults instantiates a new V0BuildRequestUpdateResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildRequestUpdateResponseModelWithDefaults() *V0BuildRequestUpdateResponseModel { + this := V0BuildRequestUpdateResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0BuildRequestUpdateResponseModel) GetData() V0BuildRequestResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret V0BuildRequestResponseItemModel + 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 *V0BuildRequestUpdateResponseModel) GetDataOk() (*V0BuildRequestResponseItemModel, 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 *V0BuildRequestUpdateResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0BuildRequestResponseItemModel and assigns it to the Data field. +func (o *V0BuildRequestUpdateResponseModel) SetData(v V0BuildRequestResponseItemModel) { + o.Data = &v +} + +func (o V0BuildRequestUpdateResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildRequestUpdateResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0BuildRequestUpdateResponseModel struct { + value *V0BuildRequestUpdateResponseModel + isSet bool +} + +func (v NullableV0BuildRequestUpdateResponseModel) Get() *V0BuildRequestUpdateResponseModel { + return v.value +} + +func (v *NullableV0BuildRequestUpdateResponseModel) Set(val *V0BuildRequestUpdateResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildRequestUpdateResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildRequestUpdateResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildRequestUpdateResponseModel(val *V0BuildRequestUpdateResponseModel) *NullableV0BuildRequestUpdateResponseModel { + return &NullableV0BuildRequestUpdateResponseModel{value: val, isSet: true} +} + +func (v NullableV0BuildRequestUpdateResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildRequestUpdateResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_response_item_model.go b/go2/model_v0_build_response_item_model.go new file mode 100644 index 0000000..0c33547 --- /dev/null +++ b/go2/model_v0_build_response_item_model.go @@ -0,0 +1,1099 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildResponseItemModel{} + +// V0BuildResponseItemModel struct for V0BuildResponseItemModel +type V0BuildResponseItemModel struct { + AbortReason *NullsString `json:"abort_reason,omitempty"` + Branch *NullsString `json:"branch,omitempty"` + BuildNumber *int32 `json:"build_number,omitempty"` + CommitHash *NullsString `json:"commit_hash,omitempty"` + CommitMessage *NullsString `json:"commit_message,omitempty"` + CommitViewUrl *NullsString `json:"commit_view_url,omitempty"` + CreditCost *NullsInt64 `json:"credit_cost,omitempty"` + EnvironmentPrepareFinishedAt *string `json:"environment_prepare_finished_at,omitempty"` + FinishedAt *string `json:"finished_at,omitempty"` + IsOnHold *bool `json:"is_on_hold,omitempty"` + IsProcessed *bool `json:"is_processed,omitempty"` + IsStatusSent *bool `json:"is_status_sent,omitempty"` + LogFormat *string `json:"log_format,omitempty"` + MachineTypeId *NullsString `json:"machine_type_id,omitempty"` + OriginalBuildParams []int32 `json:"original_build_params,omitempty"` + PipelineWorkflowId *string `json:"pipeline_workflow_id,omitempty"` + PullRequestId *int32 `json:"pull_request_id,omitempty"` + PullRequestTargetBranch *NullsString `json:"pull_request_target_branch,omitempty"` + PullRequestViewUrl *NullsString `json:"pull_request_view_url,omitempty"` + Slug *string `json:"slug,omitempty"` + StackIdentifier *NullsString `json:"stack_identifier,omitempty"` + StartedOnWorkerAt *string `json:"started_on_worker_at,omitempty"` + Status *int32 `json:"status,omitempty"` + StatusText *string `json:"status_text,omitempty"` + Tag *NullsString `json:"tag,omitempty"` + TriggeredAt *string `json:"triggered_at,omitempty"` + TriggeredBy *NullsString `json:"triggered_by,omitempty"` + TriggeredWorkflow *string `json:"triggered_workflow,omitempty"` +} + +// NewV0BuildResponseItemModel instantiates a new V0BuildResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildResponseItemModel() *V0BuildResponseItemModel { + this := V0BuildResponseItemModel{} + return &this +} + +// NewV0BuildResponseItemModelWithDefaults instantiates a new V0BuildResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildResponseItemModelWithDefaults() *V0BuildResponseItemModel { + this := V0BuildResponseItemModel{} + return &this +} + +// GetAbortReason returns the AbortReason field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetAbortReason() NullsString { + if o == nil || IsNil(o.AbortReason) { + var ret NullsString + return ret + } + return *o.AbortReason +} + +// GetAbortReasonOk returns a tuple with the AbortReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetAbortReasonOk() (*NullsString, bool) { + if o == nil || IsNil(o.AbortReason) { + return nil, false + } + return o.AbortReason, true +} + +// HasAbortReason returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasAbortReason() bool { + if o != nil && !IsNil(o.AbortReason) { + return true + } + + return false +} + +// SetAbortReason gets a reference to the given NullsString and assigns it to the AbortReason field. +func (o *V0BuildResponseItemModel) SetAbortReason(v NullsString) { + o.AbortReason = &v +} + +// GetBranch returns the Branch field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetBranch() NullsString { + if o == nil || IsNil(o.Branch) { + var ret NullsString + return ret + } + return *o.Branch +} + +// GetBranchOk returns a tuple with the Branch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetBranchOk() (*NullsString, bool) { + if o == nil || IsNil(o.Branch) { + return nil, false + } + return o.Branch, true +} + +// HasBranch returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasBranch() bool { + if o != nil && !IsNil(o.Branch) { + return true + } + + return false +} + +// SetBranch gets a reference to the given NullsString and assigns it to the Branch field. +func (o *V0BuildResponseItemModel) SetBranch(v NullsString) { + o.Branch = &v +} + +// GetBuildNumber returns the BuildNumber field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetBuildNumber() int32 { + if o == nil || IsNil(o.BuildNumber) { + var ret int32 + return ret + } + return *o.BuildNumber +} + +// GetBuildNumberOk returns a tuple with the BuildNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetBuildNumberOk() (*int32, bool) { + if o == nil || IsNil(o.BuildNumber) { + return nil, false + } + return o.BuildNumber, true +} + +// HasBuildNumber returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasBuildNumber() bool { + if o != nil && !IsNil(o.BuildNumber) { + return true + } + + return false +} + +// SetBuildNumber gets a reference to the given int32 and assigns it to the BuildNumber field. +func (o *V0BuildResponseItemModel) SetBuildNumber(v int32) { + o.BuildNumber = &v +} + +// GetCommitHash returns the CommitHash field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetCommitHash() NullsString { + if o == nil || IsNil(o.CommitHash) { + var ret NullsString + return ret + } + return *o.CommitHash +} + +// GetCommitHashOk returns a tuple with the CommitHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetCommitHashOk() (*NullsString, bool) { + if o == nil || IsNil(o.CommitHash) { + return nil, false + } + return o.CommitHash, true +} + +// HasCommitHash returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasCommitHash() bool { + if o != nil && !IsNil(o.CommitHash) { + return true + } + + return false +} + +// SetCommitHash gets a reference to the given NullsString and assigns it to the CommitHash field. +func (o *V0BuildResponseItemModel) SetCommitHash(v NullsString) { + o.CommitHash = &v +} + +// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetCommitMessage() NullsString { + if o == nil || IsNil(o.CommitMessage) { + var ret NullsString + return ret + } + return *o.CommitMessage +} + +// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetCommitMessageOk() (*NullsString, bool) { + if o == nil || IsNil(o.CommitMessage) { + return nil, false + } + return o.CommitMessage, true +} + +// HasCommitMessage returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasCommitMessage() bool { + if o != nil && !IsNil(o.CommitMessage) { + return true + } + + return false +} + +// SetCommitMessage gets a reference to the given NullsString and assigns it to the CommitMessage field. +func (o *V0BuildResponseItemModel) SetCommitMessage(v NullsString) { + o.CommitMessage = &v +} + +// GetCommitViewUrl returns the CommitViewUrl field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetCommitViewUrl() NullsString { + if o == nil || IsNil(o.CommitViewUrl) { + var ret NullsString + return ret + } + return *o.CommitViewUrl +} + +// GetCommitViewUrlOk returns a tuple with the CommitViewUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetCommitViewUrlOk() (*NullsString, bool) { + if o == nil || IsNil(o.CommitViewUrl) { + return nil, false + } + return o.CommitViewUrl, true +} + +// HasCommitViewUrl returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasCommitViewUrl() bool { + if o != nil && !IsNil(o.CommitViewUrl) { + return true + } + + return false +} + +// SetCommitViewUrl gets a reference to the given NullsString and assigns it to the CommitViewUrl field. +func (o *V0BuildResponseItemModel) SetCommitViewUrl(v NullsString) { + o.CommitViewUrl = &v +} + +// GetCreditCost returns the CreditCost field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetCreditCost() NullsInt64 { + if o == nil || IsNil(o.CreditCost) { + var ret NullsInt64 + return ret + } + return *o.CreditCost +} + +// GetCreditCostOk returns a tuple with the CreditCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetCreditCostOk() (*NullsInt64, bool) { + if o == nil || IsNil(o.CreditCost) { + return nil, false + } + return o.CreditCost, true +} + +// HasCreditCost returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasCreditCost() bool { + if o != nil && !IsNil(o.CreditCost) { + return true + } + + return false +} + +// SetCreditCost gets a reference to the given NullsInt64 and assigns it to the CreditCost field. +func (o *V0BuildResponseItemModel) SetCreditCost(v NullsInt64) { + o.CreditCost = &v +} + +// GetEnvironmentPrepareFinishedAt returns the EnvironmentPrepareFinishedAt field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetEnvironmentPrepareFinishedAt() string { + if o == nil || IsNil(o.EnvironmentPrepareFinishedAt) { + var ret string + return ret + } + return *o.EnvironmentPrepareFinishedAt +} + +// GetEnvironmentPrepareFinishedAtOk returns a tuple with the EnvironmentPrepareFinishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetEnvironmentPrepareFinishedAtOk() (*string, bool) { + if o == nil || IsNil(o.EnvironmentPrepareFinishedAt) { + return nil, false + } + return o.EnvironmentPrepareFinishedAt, true +} + +// HasEnvironmentPrepareFinishedAt returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasEnvironmentPrepareFinishedAt() bool { + if o != nil && !IsNil(o.EnvironmentPrepareFinishedAt) { + return true + } + + return false +} + +// SetEnvironmentPrepareFinishedAt gets a reference to the given string and assigns it to the EnvironmentPrepareFinishedAt field. +func (o *V0BuildResponseItemModel) SetEnvironmentPrepareFinishedAt(v string) { + o.EnvironmentPrepareFinishedAt = &v +} + +// GetFinishedAt returns the FinishedAt field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetFinishedAt() string { + if o == nil || IsNil(o.FinishedAt) { + var ret string + return ret + } + return *o.FinishedAt +} + +// GetFinishedAtOk returns a tuple with the FinishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetFinishedAtOk() (*string, bool) { + if o == nil || IsNil(o.FinishedAt) { + return nil, false + } + return o.FinishedAt, true +} + +// HasFinishedAt returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasFinishedAt() bool { + if o != nil && !IsNil(o.FinishedAt) { + return true + } + + return false +} + +// SetFinishedAt gets a reference to the given string and assigns it to the FinishedAt field. +func (o *V0BuildResponseItemModel) SetFinishedAt(v string) { + o.FinishedAt = &v +} + +// GetIsOnHold returns the IsOnHold field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetIsOnHold() bool { + if o == nil || IsNil(o.IsOnHold) { + var ret bool + return ret + } + return *o.IsOnHold +} + +// GetIsOnHoldOk returns a tuple with the IsOnHold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetIsOnHoldOk() (*bool, bool) { + if o == nil || IsNil(o.IsOnHold) { + return nil, false + } + return o.IsOnHold, true +} + +// HasIsOnHold returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasIsOnHold() bool { + if o != nil && !IsNil(o.IsOnHold) { + return true + } + + return false +} + +// SetIsOnHold gets a reference to the given bool and assigns it to the IsOnHold field. +func (o *V0BuildResponseItemModel) SetIsOnHold(v bool) { + o.IsOnHold = &v +} + +// GetIsProcessed returns the IsProcessed field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetIsProcessed() bool { + if o == nil || IsNil(o.IsProcessed) { + var ret bool + return ret + } + return *o.IsProcessed +} + +// GetIsProcessedOk returns a tuple with the IsProcessed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetIsProcessedOk() (*bool, bool) { + if o == nil || IsNil(o.IsProcessed) { + return nil, false + } + return o.IsProcessed, true +} + +// HasIsProcessed returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasIsProcessed() bool { + if o != nil && !IsNil(o.IsProcessed) { + return true + } + + return false +} + +// SetIsProcessed gets a reference to the given bool and assigns it to the IsProcessed field. +func (o *V0BuildResponseItemModel) SetIsProcessed(v bool) { + o.IsProcessed = &v +} + +// GetIsStatusSent returns the IsStatusSent field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetIsStatusSent() bool { + if o == nil || IsNil(o.IsStatusSent) { + var ret bool + return ret + } + return *o.IsStatusSent +} + +// GetIsStatusSentOk returns a tuple with the IsStatusSent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetIsStatusSentOk() (*bool, bool) { + if o == nil || IsNil(o.IsStatusSent) { + return nil, false + } + return o.IsStatusSent, true +} + +// HasIsStatusSent returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasIsStatusSent() bool { + if o != nil && !IsNil(o.IsStatusSent) { + return true + } + + return false +} + +// SetIsStatusSent gets a reference to the given bool and assigns it to the IsStatusSent field. +func (o *V0BuildResponseItemModel) SetIsStatusSent(v bool) { + o.IsStatusSent = &v +} + +// GetLogFormat returns the LogFormat field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetLogFormat() string { + if o == nil || IsNil(o.LogFormat) { + var ret string + return ret + } + return *o.LogFormat +} + +// GetLogFormatOk returns a tuple with the LogFormat field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetLogFormatOk() (*string, bool) { + if o == nil || IsNil(o.LogFormat) { + return nil, false + } + return o.LogFormat, true +} + +// HasLogFormat returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasLogFormat() bool { + if o != nil && !IsNil(o.LogFormat) { + return true + } + + return false +} + +// SetLogFormat gets a reference to the given string and assigns it to the LogFormat field. +func (o *V0BuildResponseItemModel) SetLogFormat(v string) { + o.LogFormat = &v +} + +// GetMachineTypeId returns the MachineTypeId field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetMachineTypeId() NullsString { + if o == nil || IsNil(o.MachineTypeId) { + var ret NullsString + return ret + } + return *o.MachineTypeId +} + +// GetMachineTypeIdOk returns a tuple with the MachineTypeId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetMachineTypeIdOk() (*NullsString, bool) { + if o == nil || IsNil(o.MachineTypeId) { + return nil, false + } + return o.MachineTypeId, true +} + +// HasMachineTypeId returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasMachineTypeId() bool { + if o != nil && !IsNil(o.MachineTypeId) { + return true + } + + return false +} + +// SetMachineTypeId gets a reference to the given NullsString and assigns it to the MachineTypeId field. +func (o *V0BuildResponseItemModel) SetMachineTypeId(v NullsString) { + o.MachineTypeId = &v +} + +// GetOriginalBuildParams returns the OriginalBuildParams field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetOriginalBuildParams() []int32 { + if o == nil || IsNil(o.OriginalBuildParams) { + var ret []int32 + return ret + } + return o.OriginalBuildParams +} + +// GetOriginalBuildParamsOk returns a tuple with the OriginalBuildParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetOriginalBuildParamsOk() ([]int32, bool) { + if o == nil || IsNil(o.OriginalBuildParams) { + return nil, false + } + return o.OriginalBuildParams, true +} + +// HasOriginalBuildParams returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasOriginalBuildParams() bool { + if o != nil && !IsNil(o.OriginalBuildParams) { + return true + } + + return false +} + +// SetOriginalBuildParams gets a reference to the given []int32 and assigns it to the OriginalBuildParams field. +func (o *V0BuildResponseItemModel) SetOriginalBuildParams(v []int32) { + o.OriginalBuildParams = v +} + +// GetPipelineWorkflowId returns the PipelineWorkflowId field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetPipelineWorkflowId() string { + if o == nil || IsNil(o.PipelineWorkflowId) { + var ret string + return ret + } + return *o.PipelineWorkflowId +} + +// GetPipelineWorkflowIdOk returns a tuple with the PipelineWorkflowId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetPipelineWorkflowIdOk() (*string, bool) { + if o == nil || IsNil(o.PipelineWorkflowId) { + return nil, false + } + return o.PipelineWorkflowId, true +} + +// HasPipelineWorkflowId returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasPipelineWorkflowId() bool { + if o != nil && !IsNil(o.PipelineWorkflowId) { + return true + } + + return false +} + +// SetPipelineWorkflowId gets a reference to the given string and assigns it to the PipelineWorkflowId field. +func (o *V0BuildResponseItemModel) SetPipelineWorkflowId(v string) { + o.PipelineWorkflowId = &v +} + +// GetPullRequestId returns the PullRequestId field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetPullRequestId() int32 { + if o == nil || IsNil(o.PullRequestId) { + var ret int32 + return ret + } + return *o.PullRequestId +} + +// GetPullRequestIdOk returns a tuple with the PullRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetPullRequestIdOk() (*int32, bool) { + if o == nil || IsNil(o.PullRequestId) { + return nil, false + } + return o.PullRequestId, true +} + +// HasPullRequestId returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasPullRequestId() bool { + if o != nil && !IsNil(o.PullRequestId) { + return true + } + + return false +} + +// SetPullRequestId gets a reference to the given int32 and assigns it to the PullRequestId field. +func (o *V0BuildResponseItemModel) SetPullRequestId(v int32) { + o.PullRequestId = &v +} + +// GetPullRequestTargetBranch returns the PullRequestTargetBranch field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetPullRequestTargetBranch() NullsString { + if o == nil || IsNil(o.PullRequestTargetBranch) { + var ret NullsString + return ret + } + return *o.PullRequestTargetBranch +} + +// GetPullRequestTargetBranchOk returns a tuple with the PullRequestTargetBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetPullRequestTargetBranchOk() (*NullsString, bool) { + if o == nil || IsNil(o.PullRequestTargetBranch) { + return nil, false + } + return o.PullRequestTargetBranch, true +} + +// HasPullRequestTargetBranch returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasPullRequestTargetBranch() bool { + if o != nil && !IsNil(o.PullRequestTargetBranch) { + return true + } + + return false +} + +// SetPullRequestTargetBranch gets a reference to the given NullsString and assigns it to the PullRequestTargetBranch field. +func (o *V0BuildResponseItemModel) SetPullRequestTargetBranch(v NullsString) { + o.PullRequestTargetBranch = &v +} + +// GetPullRequestViewUrl returns the PullRequestViewUrl field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetPullRequestViewUrl() NullsString { + if o == nil || IsNil(o.PullRequestViewUrl) { + var ret NullsString + return ret + } + return *o.PullRequestViewUrl +} + +// GetPullRequestViewUrlOk returns a tuple with the PullRequestViewUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetPullRequestViewUrlOk() (*NullsString, bool) { + if o == nil || IsNil(o.PullRequestViewUrl) { + return nil, false + } + return o.PullRequestViewUrl, true +} + +// HasPullRequestViewUrl returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasPullRequestViewUrl() bool { + if o != nil && !IsNil(o.PullRequestViewUrl) { + return true + } + + return false +} + +// SetPullRequestViewUrl gets a reference to the given NullsString and assigns it to the PullRequestViewUrl field. +func (o *V0BuildResponseItemModel) SetPullRequestViewUrl(v NullsString) { + o.PullRequestViewUrl = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0BuildResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetStackIdentifier returns the StackIdentifier field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetStackIdentifier() NullsString { + if o == nil || IsNil(o.StackIdentifier) { + var ret NullsString + return ret + } + return *o.StackIdentifier +} + +// GetStackIdentifierOk returns a tuple with the StackIdentifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetStackIdentifierOk() (*NullsString, bool) { + if o == nil || IsNil(o.StackIdentifier) { + return nil, false + } + return o.StackIdentifier, true +} + +// HasStackIdentifier returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasStackIdentifier() bool { + if o != nil && !IsNil(o.StackIdentifier) { + return true + } + + return false +} + +// SetStackIdentifier gets a reference to the given NullsString and assigns it to the StackIdentifier field. +func (o *V0BuildResponseItemModel) SetStackIdentifier(v NullsString) { + o.StackIdentifier = &v +} + +// GetStartedOnWorkerAt returns the StartedOnWorkerAt field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetStartedOnWorkerAt() string { + if o == nil || IsNil(o.StartedOnWorkerAt) { + var ret string + return ret + } + return *o.StartedOnWorkerAt +} + +// GetStartedOnWorkerAtOk returns a tuple with the StartedOnWorkerAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetStartedOnWorkerAtOk() (*string, bool) { + if o == nil || IsNil(o.StartedOnWorkerAt) { + return nil, false + } + return o.StartedOnWorkerAt, true +} + +// HasStartedOnWorkerAt returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasStartedOnWorkerAt() bool { + if o != nil && !IsNil(o.StartedOnWorkerAt) { + return true + } + + return false +} + +// SetStartedOnWorkerAt gets a reference to the given string and assigns it to the StartedOnWorkerAt field. +func (o *V0BuildResponseItemModel) SetStartedOnWorkerAt(v string) { + o.StartedOnWorkerAt = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetStatusOk() (*int32, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *V0BuildResponseItemModel) SetStatus(v int32) { + o.Status = &v +} + +// GetStatusText returns the StatusText field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetStatusText() string { + if o == nil || IsNil(o.StatusText) { + var ret string + return ret + } + return *o.StatusText +} + +// GetStatusTextOk returns a tuple with the StatusText field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetStatusTextOk() (*string, bool) { + if o == nil || IsNil(o.StatusText) { + return nil, false + } + return o.StatusText, true +} + +// HasStatusText returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasStatusText() bool { + if o != nil && !IsNil(o.StatusText) { + return true + } + + return false +} + +// SetStatusText gets a reference to the given string and assigns it to the StatusText field. +func (o *V0BuildResponseItemModel) SetStatusText(v string) { + o.StatusText = &v +} + +// GetTag returns the Tag field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetTag() NullsString { + if o == nil || IsNil(o.Tag) { + var ret NullsString + return ret + } + return *o.Tag +} + +// GetTagOk returns a tuple with the Tag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetTagOk() (*NullsString, bool) { + if o == nil || IsNil(o.Tag) { + return nil, false + } + return o.Tag, true +} + +// HasTag returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasTag() bool { + if o != nil && !IsNil(o.Tag) { + return true + } + + return false +} + +// SetTag gets a reference to the given NullsString and assigns it to the Tag field. +func (o *V0BuildResponseItemModel) SetTag(v NullsString) { + o.Tag = &v +} + +// GetTriggeredAt returns the TriggeredAt field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetTriggeredAt() string { + if o == nil || IsNil(o.TriggeredAt) { + var ret string + return ret + } + return *o.TriggeredAt +} + +// GetTriggeredAtOk returns a tuple with the TriggeredAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetTriggeredAtOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredAt) { + return nil, false + } + return o.TriggeredAt, true +} + +// HasTriggeredAt returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasTriggeredAt() bool { + if o != nil && !IsNil(o.TriggeredAt) { + return true + } + + return false +} + +// SetTriggeredAt gets a reference to the given string and assigns it to the TriggeredAt field. +func (o *V0BuildResponseItemModel) SetTriggeredAt(v string) { + o.TriggeredAt = &v +} + +// GetTriggeredBy returns the TriggeredBy field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetTriggeredBy() NullsString { + if o == nil || IsNil(o.TriggeredBy) { + var ret NullsString + return ret + } + return *o.TriggeredBy +} + +// GetTriggeredByOk returns a tuple with the TriggeredBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetTriggeredByOk() (*NullsString, bool) { + if o == nil || IsNil(o.TriggeredBy) { + return nil, false + } + return o.TriggeredBy, true +} + +// HasTriggeredBy returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasTriggeredBy() bool { + if o != nil && !IsNil(o.TriggeredBy) { + return true + } + + return false +} + +// SetTriggeredBy gets a reference to the given NullsString and assigns it to the TriggeredBy field. +func (o *V0BuildResponseItemModel) SetTriggeredBy(v NullsString) { + o.TriggeredBy = &v +} + +// GetTriggeredWorkflow returns the TriggeredWorkflow field value if set, zero value otherwise. +func (o *V0BuildResponseItemModel) GetTriggeredWorkflow() string { + if o == nil || IsNil(o.TriggeredWorkflow) { + var ret string + return ret + } + return *o.TriggeredWorkflow +} + +// GetTriggeredWorkflowOk returns a tuple with the TriggeredWorkflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildResponseItemModel) GetTriggeredWorkflowOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredWorkflow) { + return nil, false + } + return o.TriggeredWorkflow, true +} + +// HasTriggeredWorkflow returns a boolean if a field has been set. +func (o *V0BuildResponseItemModel) HasTriggeredWorkflow() bool { + if o != nil && !IsNil(o.TriggeredWorkflow) { + return true + } + + return false +} + +// SetTriggeredWorkflow gets a reference to the given string and assigns it to the TriggeredWorkflow field. +func (o *V0BuildResponseItemModel) SetTriggeredWorkflow(v string) { + o.TriggeredWorkflow = &v +} + +func (o V0BuildResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AbortReason) { + toSerialize["abort_reason"] = o.AbortReason + } + if !IsNil(o.Branch) { + toSerialize["branch"] = o.Branch + } + if !IsNil(o.BuildNumber) { + toSerialize["build_number"] = o.BuildNumber + } + if !IsNil(o.CommitHash) { + toSerialize["commit_hash"] = o.CommitHash + } + if !IsNil(o.CommitMessage) { + toSerialize["commit_message"] = o.CommitMessage + } + if !IsNil(o.CommitViewUrl) { + toSerialize["commit_view_url"] = o.CommitViewUrl + } + if !IsNil(o.CreditCost) { + toSerialize["credit_cost"] = o.CreditCost + } + if !IsNil(o.EnvironmentPrepareFinishedAt) { + toSerialize["environment_prepare_finished_at"] = o.EnvironmentPrepareFinishedAt + } + if !IsNil(o.FinishedAt) { + toSerialize["finished_at"] = o.FinishedAt + } + if !IsNil(o.IsOnHold) { + toSerialize["is_on_hold"] = o.IsOnHold + } + if !IsNil(o.IsProcessed) { + toSerialize["is_processed"] = o.IsProcessed + } + if !IsNil(o.IsStatusSent) { + toSerialize["is_status_sent"] = o.IsStatusSent + } + if !IsNil(o.LogFormat) { + toSerialize["log_format"] = o.LogFormat + } + if !IsNil(o.MachineTypeId) { + toSerialize["machine_type_id"] = o.MachineTypeId + } + if !IsNil(o.OriginalBuildParams) { + toSerialize["original_build_params"] = o.OriginalBuildParams + } + if !IsNil(o.PipelineWorkflowId) { + toSerialize["pipeline_workflow_id"] = o.PipelineWorkflowId + } + if !IsNil(o.PullRequestId) { + toSerialize["pull_request_id"] = o.PullRequestId + } + if !IsNil(o.PullRequestTargetBranch) { + toSerialize["pull_request_target_branch"] = o.PullRequestTargetBranch + } + if !IsNil(o.PullRequestViewUrl) { + toSerialize["pull_request_view_url"] = o.PullRequestViewUrl + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.StackIdentifier) { + toSerialize["stack_identifier"] = o.StackIdentifier + } + if !IsNil(o.StartedOnWorkerAt) { + toSerialize["started_on_worker_at"] = o.StartedOnWorkerAt + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.StatusText) { + toSerialize["status_text"] = o.StatusText + } + if !IsNil(o.Tag) { + toSerialize["tag"] = o.Tag + } + if !IsNil(o.TriggeredAt) { + toSerialize["triggered_at"] = o.TriggeredAt + } + if !IsNil(o.TriggeredBy) { + toSerialize["triggered_by"] = o.TriggeredBy + } + if !IsNil(o.TriggeredWorkflow) { + toSerialize["triggered_workflow"] = o.TriggeredWorkflow + } + return toSerialize, nil +} + +type NullableV0BuildResponseItemModel struct { + value *V0BuildResponseItemModel + isSet bool +} + +func (v NullableV0BuildResponseItemModel) Get() *V0BuildResponseItemModel { + return v.value +} + +func (v *NullableV0BuildResponseItemModel) Set(val *V0BuildResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildResponseItemModel(val *V0BuildResponseItemModel) *NullableV0BuildResponseItemModel { + return &NullableV0BuildResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0BuildResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_show_response_model.go b/go2/model_v0_build_show_response_model.go new file mode 100644 index 0000000..4b6a2af --- /dev/null +++ b/go2/model_v0_build_show_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildShowResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildShowResponseModel{} + +// V0BuildShowResponseModel struct for V0BuildShowResponseModel +type V0BuildShowResponseModel struct { + Data *V0BuildResponseItemModel `json:"data,omitempty"` +} + +// NewV0BuildShowResponseModel instantiates a new V0BuildShowResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildShowResponseModel() *V0BuildShowResponseModel { + this := V0BuildShowResponseModel{} + return &this +} + +// NewV0BuildShowResponseModelWithDefaults instantiates a new V0BuildShowResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildShowResponseModelWithDefaults() *V0BuildShowResponseModel { + this := V0BuildShowResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0BuildShowResponseModel) GetData() V0BuildResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret V0BuildResponseItemModel + 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 *V0BuildShowResponseModel) GetDataOk() (*V0BuildResponseItemModel, 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 *V0BuildShowResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0BuildResponseItemModel and assigns it to the Data field. +func (o *V0BuildShowResponseModel) SetData(v V0BuildResponseItemModel) { + o.Data = &v +} + +func (o V0BuildShowResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildShowResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0BuildShowResponseModel struct { + value *V0BuildShowResponseModel + isSet bool +} + +func (v NullableV0BuildShowResponseModel) Get() *V0BuildShowResponseModel { + return v.value +} + +func (v *NullableV0BuildShowResponseModel) Set(val *V0BuildShowResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildShowResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildShowResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildShowResponseModel(val *V0BuildShowResponseModel) *NullableV0BuildShowResponseModel { + return &NullableV0BuildShowResponseModel{value: val, isSet: true} +} + +func (v NullableV0BuildShowResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildShowResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_trigger_params.go b/go2/model_v0_build_trigger_params.go new file mode 100644 index 0000000..5a01351 --- /dev/null +++ b/go2/model_v0_build_trigger_params.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildTriggerParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildTriggerParams{} + +// V0BuildTriggerParams struct for V0BuildTriggerParams +type V0BuildTriggerParams struct { + BuildParams *V0BuildTriggerParamsBuildParams `json:"build_params,omitempty"` + HookInfo *V0BuildTriggerParamsHookInfo `json:"hook_info,omitempty"` +} + +// NewV0BuildTriggerParams instantiates a new V0BuildTriggerParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildTriggerParams() *V0BuildTriggerParams { + this := V0BuildTriggerParams{} + return &this +} + +// NewV0BuildTriggerParamsWithDefaults instantiates a new V0BuildTriggerParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildTriggerParamsWithDefaults() *V0BuildTriggerParams { + this := V0BuildTriggerParams{} + return &this +} + +// GetBuildParams returns the BuildParams field value if set, zero value otherwise. +func (o *V0BuildTriggerParams) GetBuildParams() V0BuildTriggerParamsBuildParams { + if o == nil || IsNil(o.BuildParams) { + var ret V0BuildTriggerParamsBuildParams + return ret + } + return *o.BuildParams +} + +// GetBuildParamsOk returns a tuple with the BuildParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParams) GetBuildParamsOk() (*V0BuildTriggerParamsBuildParams, bool) { + if o == nil || IsNil(o.BuildParams) { + return nil, false + } + return o.BuildParams, true +} + +// HasBuildParams returns a boolean if a field has been set. +func (o *V0BuildTriggerParams) HasBuildParams() bool { + if o != nil && !IsNil(o.BuildParams) { + return true + } + + return false +} + +// SetBuildParams gets a reference to the given V0BuildTriggerParamsBuildParams and assigns it to the BuildParams field. +func (o *V0BuildTriggerParams) SetBuildParams(v V0BuildTriggerParamsBuildParams) { + o.BuildParams = &v +} + +// GetHookInfo returns the HookInfo field value if set, zero value otherwise. +func (o *V0BuildTriggerParams) GetHookInfo() V0BuildTriggerParamsHookInfo { + if o == nil || IsNil(o.HookInfo) { + var ret V0BuildTriggerParamsHookInfo + return ret + } + return *o.HookInfo +} + +// GetHookInfoOk returns a tuple with the HookInfo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParams) GetHookInfoOk() (*V0BuildTriggerParamsHookInfo, bool) { + if o == nil || IsNil(o.HookInfo) { + return nil, false + } + return o.HookInfo, true +} + +// HasHookInfo returns a boolean if a field has been set. +func (o *V0BuildTriggerParams) HasHookInfo() bool { + if o != nil && !IsNil(o.HookInfo) { + return true + } + + return false +} + +// SetHookInfo gets a reference to the given V0BuildTriggerParamsHookInfo and assigns it to the HookInfo field. +func (o *V0BuildTriggerParams) SetHookInfo(v V0BuildTriggerParamsHookInfo) { + o.HookInfo = &v +} + +func (o V0BuildTriggerParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildTriggerParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BuildParams) { + toSerialize["build_params"] = o.BuildParams + } + if !IsNil(o.HookInfo) { + toSerialize["hook_info"] = o.HookInfo + } + return toSerialize, nil +} + +type NullableV0BuildTriggerParams struct { + value *V0BuildTriggerParams + isSet bool +} + +func (v NullableV0BuildTriggerParams) Get() *V0BuildTriggerParams { + return v.value +} + +func (v *NullableV0BuildTriggerParams) Set(val *V0BuildTriggerParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildTriggerParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildTriggerParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildTriggerParams(val *V0BuildTriggerParams) *NullableV0BuildTriggerParams { + return &NullableV0BuildTriggerParams{value: val, isSet: true} +} + +func (v NullableV0BuildTriggerParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildTriggerParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_trigger_params_build_params.go b/go2/model_v0_build_trigger_params_build_params.go new file mode 100644 index 0000000..39d5716 --- /dev/null +++ b/go2/model_v0_build_trigger_params_build_params.go @@ -0,0 +1,883 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildTriggerParamsBuildParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildTriggerParamsBuildParams{} + +// V0BuildTriggerParamsBuildParams struct for V0BuildTriggerParamsBuildParams +type V0BuildTriggerParamsBuildParams struct { + BaseRepositoryUrl *string `json:"base_repository_url,omitempty"` + Branch *string `json:"branch,omitempty"` + BranchDest *string `json:"branch_dest,omitempty"` + BranchDestRepoOwner *string `json:"branch_dest_repo_owner,omitempty"` + BranchRepoOwner *string `json:"branch_repo_owner,omitempty"` + BuildRequestSlug *string `json:"build_request_slug,omitempty"` + CommitHash *string `json:"commit_hash,omitempty"` + CommitMessage *string `json:"commit_message,omitempty"` + CommitPaths []V0CommitPaths `json:"commit_paths,omitempty"` + DiffUrl *string `json:"diff_url,omitempty"` + Environments []V0BuildParamsEnvironment `json:"environments,omitempty"` + HeadRepositoryUrl *string `json:"head_repository_url,omitempty"` + PipelineId *string `json:"pipeline_id,omitempty"` + PullRequestAuthor *string `json:"pull_request_author,omitempty"` + PullRequestHeadBranch *string `json:"pull_request_head_branch,omitempty"` + PullRequestId map[string]interface{} `json:"pull_request_id,omitempty"` + PullRequestMergeBranch *string `json:"pull_request_merge_branch,omitempty"` + PullRequestRepositoryUrl *string `json:"pull_request_repository_url,omitempty"` + PullRequestUnverifiedMergeBranch *string `json:"pull_request_unverified_merge_branch,omitempty"` + SkipGitStatusReport *bool `json:"skip_git_status_report,omitempty"` + Tag *string `json:"tag,omitempty"` + WorkflowId *string `json:"workflow_id,omitempty"` +} + +// NewV0BuildTriggerParamsBuildParams instantiates a new V0BuildTriggerParamsBuildParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildTriggerParamsBuildParams() *V0BuildTriggerParamsBuildParams { + this := V0BuildTriggerParamsBuildParams{} + return &this +} + +// NewV0BuildTriggerParamsBuildParamsWithDefaults instantiates a new V0BuildTriggerParamsBuildParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildTriggerParamsBuildParamsWithDefaults() *V0BuildTriggerParamsBuildParams { + this := V0BuildTriggerParamsBuildParams{} + return &this +} + +// GetBaseRepositoryUrl returns the BaseRepositoryUrl field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetBaseRepositoryUrl() string { + if o == nil || IsNil(o.BaseRepositoryUrl) { + var ret string + return ret + } + return *o.BaseRepositoryUrl +} + +// GetBaseRepositoryUrlOk returns a tuple with the BaseRepositoryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetBaseRepositoryUrlOk() (*string, bool) { + if o == nil || IsNil(o.BaseRepositoryUrl) { + return nil, false + } + return o.BaseRepositoryUrl, true +} + +// HasBaseRepositoryUrl returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasBaseRepositoryUrl() bool { + if o != nil && !IsNil(o.BaseRepositoryUrl) { + return true + } + + return false +} + +// SetBaseRepositoryUrl gets a reference to the given string and assigns it to the BaseRepositoryUrl field. +func (o *V0BuildTriggerParamsBuildParams) SetBaseRepositoryUrl(v string) { + o.BaseRepositoryUrl = &v +} + +// GetBranch returns the Branch field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetBranch() string { + if o == nil || IsNil(o.Branch) { + var ret string + return ret + } + return *o.Branch +} + +// GetBranchOk returns a tuple with the Branch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetBranchOk() (*string, bool) { + if o == nil || IsNil(o.Branch) { + return nil, false + } + return o.Branch, true +} + +// HasBranch returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasBranch() bool { + if o != nil && !IsNil(o.Branch) { + return true + } + + return false +} + +// SetBranch gets a reference to the given string and assigns it to the Branch field. +func (o *V0BuildTriggerParamsBuildParams) SetBranch(v string) { + o.Branch = &v +} + +// GetBranchDest returns the BranchDest field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetBranchDest() string { + if o == nil || IsNil(o.BranchDest) { + var ret string + return ret + } + return *o.BranchDest +} + +// GetBranchDestOk returns a tuple with the BranchDest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetBranchDestOk() (*string, bool) { + if o == nil || IsNil(o.BranchDest) { + return nil, false + } + return o.BranchDest, true +} + +// HasBranchDest returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasBranchDest() bool { + if o != nil && !IsNil(o.BranchDest) { + return true + } + + return false +} + +// SetBranchDest gets a reference to the given string and assigns it to the BranchDest field. +func (o *V0BuildTriggerParamsBuildParams) SetBranchDest(v string) { + o.BranchDest = &v +} + +// GetBranchDestRepoOwner returns the BranchDestRepoOwner field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetBranchDestRepoOwner() string { + if o == nil || IsNil(o.BranchDestRepoOwner) { + var ret string + return ret + } + return *o.BranchDestRepoOwner +} + +// GetBranchDestRepoOwnerOk returns a tuple with the BranchDestRepoOwner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetBranchDestRepoOwnerOk() (*string, bool) { + if o == nil || IsNil(o.BranchDestRepoOwner) { + return nil, false + } + return o.BranchDestRepoOwner, true +} + +// HasBranchDestRepoOwner returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasBranchDestRepoOwner() bool { + if o != nil && !IsNil(o.BranchDestRepoOwner) { + return true + } + + return false +} + +// SetBranchDestRepoOwner gets a reference to the given string and assigns it to the BranchDestRepoOwner field. +func (o *V0BuildTriggerParamsBuildParams) SetBranchDestRepoOwner(v string) { + o.BranchDestRepoOwner = &v +} + +// GetBranchRepoOwner returns the BranchRepoOwner field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetBranchRepoOwner() string { + if o == nil || IsNil(o.BranchRepoOwner) { + var ret string + return ret + } + return *o.BranchRepoOwner +} + +// GetBranchRepoOwnerOk returns a tuple with the BranchRepoOwner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetBranchRepoOwnerOk() (*string, bool) { + if o == nil || IsNil(o.BranchRepoOwner) { + return nil, false + } + return o.BranchRepoOwner, true +} + +// HasBranchRepoOwner returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasBranchRepoOwner() bool { + if o != nil && !IsNil(o.BranchRepoOwner) { + return true + } + + return false +} + +// SetBranchRepoOwner gets a reference to the given string and assigns it to the BranchRepoOwner field. +func (o *V0BuildTriggerParamsBuildParams) SetBranchRepoOwner(v string) { + o.BranchRepoOwner = &v +} + +// GetBuildRequestSlug returns the BuildRequestSlug field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetBuildRequestSlug() string { + if o == nil || IsNil(o.BuildRequestSlug) { + var ret string + return ret + } + return *o.BuildRequestSlug +} + +// GetBuildRequestSlugOk returns a tuple with the BuildRequestSlug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetBuildRequestSlugOk() (*string, bool) { + if o == nil || IsNil(o.BuildRequestSlug) { + return nil, false + } + return o.BuildRequestSlug, true +} + +// HasBuildRequestSlug returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasBuildRequestSlug() bool { + if o != nil && !IsNil(o.BuildRequestSlug) { + return true + } + + return false +} + +// SetBuildRequestSlug gets a reference to the given string and assigns it to the BuildRequestSlug field. +func (o *V0BuildTriggerParamsBuildParams) SetBuildRequestSlug(v string) { + o.BuildRequestSlug = &v +} + +// GetCommitHash returns the CommitHash field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetCommitHash() string { + if o == nil || IsNil(o.CommitHash) { + var ret string + return ret + } + return *o.CommitHash +} + +// GetCommitHashOk returns a tuple with the CommitHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetCommitHashOk() (*string, bool) { + if o == nil || IsNil(o.CommitHash) { + return nil, false + } + return o.CommitHash, true +} + +// HasCommitHash returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasCommitHash() bool { + if o != nil && !IsNil(o.CommitHash) { + return true + } + + return false +} + +// SetCommitHash gets a reference to the given string and assigns it to the CommitHash field. +func (o *V0BuildTriggerParamsBuildParams) SetCommitHash(v string) { + o.CommitHash = &v +} + +// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetCommitMessage() string { + if o == nil || IsNil(o.CommitMessage) { + var ret string + return ret + } + return *o.CommitMessage +} + +// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetCommitMessageOk() (*string, bool) { + if o == nil || IsNil(o.CommitMessage) { + return nil, false + } + return o.CommitMessage, true +} + +// HasCommitMessage returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasCommitMessage() bool { + if o != nil && !IsNil(o.CommitMessage) { + return true + } + + return false +} + +// SetCommitMessage gets a reference to the given string and assigns it to the CommitMessage field. +func (o *V0BuildTriggerParamsBuildParams) SetCommitMessage(v string) { + o.CommitMessage = &v +} + +// GetCommitPaths returns the CommitPaths field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetCommitPaths() []V0CommitPaths { + if o == nil || IsNil(o.CommitPaths) { + var ret []V0CommitPaths + return ret + } + return o.CommitPaths +} + +// GetCommitPathsOk returns a tuple with the CommitPaths field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetCommitPathsOk() ([]V0CommitPaths, bool) { + if o == nil || IsNil(o.CommitPaths) { + return nil, false + } + return o.CommitPaths, true +} + +// HasCommitPaths returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasCommitPaths() bool { + if o != nil && !IsNil(o.CommitPaths) { + return true + } + + return false +} + +// SetCommitPaths gets a reference to the given []V0CommitPaths and assigns it to the CommitPaths field. +func (o *V0BuildTriggerParamsBuildParams) SetCommitPaths(v []V0CommitPaths) { + o.CommitPaths = v +} + +// GetDiffUrl returns the DiffUrl field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetDiffUrl() string { + if o == nil || IsNil(o.DiffUrl) { + var ret string + return ret + } + return *o.DiffUrl +} + +// GetDiffUrlOk returns a tuple with the DiffUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetDiffUrlOk() (*string, bool) { + if o == nil || IsNil(o.DiffUrl) { + return nil, false + } + return o.DiffUrl, true +} + +// HasDiffUrl returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasDiffUrl() bool { + if o != nil && !IsNil(o.DiffUrl) { + return true + } + + return false +} + +// SetDiffUrl gets a reference to the given string and assigns it to the DiffUrl field. +func (o *V0BuildTriggerParamsBuildParams) SetDiffUrl(v string) { + o.DiffUrl = &v +} + +// GetEnvironments returns the Environments field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetEnvironments() []V0BuildParamsEnvironment { + if o == nil || IsNil(o.Environments) { + var ret []V0BuildParamsEnvironment + return ret + } + return o.Environments +} + +// GetEnvironmentsOk returns a tuple with the Environments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetEnvironmentsOk() ([]V0BuildParamsEnvironment, bool) { + if o == nil || IsNil(o.Environments) { + return nil, false + } + return o.Environments, true +} + +// HasEnvironments returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasEnvironments() bool { + if o != nil && !IsNil(o.Environments) { + return true + } + + return false +} + +// SetEnvironments gets a reference to the given []V0BuildParamsEnvironment and assigns it to the Environments field. +func (o *V0BuildTriggerParamsBuildParams) SetEnvironments(v []V0BuildParamsEnvironment) { + o.Environments = v +} + +// GetHeadRepositoryUrl returns the HeadRepositoryUrl field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetHeadRepositoryUrl() string { + if o == nil || IsNil(o.HeadRepositoryUrl) { + var ret string + return ret + } + return *o.HeadRepositoryUrl +} + +// GetHeadRepositoryUrlOk returns a tuple with the HeadRepositoryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetHeadRepositoryUrlOk() (*string, bool) { + if o == nil || IsNil(o.HeadRepositoryUrl) { + return nil, false + } + return o.HeadRepositoryUrl, true +} + +// HasHeadRepositoryUrl returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasHeadRepositoryUrl() bool { + if o != nil && !IsNil(o.HeadRepositoryUrl) { + return true + } + + return false +} + +// SetHeadRepositoryUrl gets a reference to the given string and assigns it to the HeadRepositoryUrl field. +func (o *V0BuildTriggerParamsBuildParams) SetHeadRepositoryUrl(v string) { + o.HeadRepositoryUrl = &v +} + +// GetPipelineId returns the PipelineId field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetPipelineId() string { + if o == nil || IsNil(o.PipelineId) { + var ret string + return ret + } + return *o.PipelineId +} + +// GetPipelineIdOk returns a tuple with the PipelineId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetPipelineIdOk() (*string, bool) { + if o == nil || IsNil(o.PipelineId) { + return nil, false + } + return o.PipelineId, true +} + +// HasPipelineId returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasPipelineId() bool { + if o != nil && !IsNil(o.PipelineId) { + return true + } + + return false +} + +// SetPipelineId gets a reference to the given string and assigns it to the PipelineId field. +func (o *V0BuildTriggerParamsBuildParams) SetPipelineId(v string) { + o.PipelineId = &v +} + +// GetPullRequestAuthor returns the PullRequestAuthor field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetPullRequestAuthor() string { + if o == nil || IsNil(o.PullRequestAuthor) { + var ret string + return ret + } + return *o.PullRequestAuthor +} + +// GetPullRequestAuthorOk returns a tuple with the PullRequestAuthor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetPullRequestAuthorOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestAuthor) { + return nil, false + } + return o.PullRequestAuthor, true +} + +// HasPullRequestAuthor returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasPullRequestAuthor() bool { + if o != nil && !IsNil(o.PullRequestAuthor) { + return true + } + + return false +} + +// SetPullRequestAuthor gets a reference to the given string and assigns it to the PullRequestAuthor field. +func (o *V0BuildTriggerParamsBuildParams) SetPullRequestAuthor(v string) { + o.PullRequestAuthor = &v +} + +// GetPullRequestHeadBranch returns the PullRequestHeadBranch field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetPullRequestHeadBranch() string { + if o == nil || IsNil(o.PullRequestHeadBranch) { + var ret string + return ret + } + return *o.PullRequestHeadBranch +} + +// GetPullRequestHeadBranchOk returns a tuple with the PullRequestHeadBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetPullRequestHeadBranchOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestHeadBranch) { + return nil, false + } + return o.PullRequestHeadBranch, true +} + +// HasPullRequestHeadBranch returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasPullRequestHeadBranch() bool { + if o != nil && !IsNil(o.PullRequestHeadBranch) { + return true + } + + return false +} + +// SetPullRequestHeadBranch gets a reference to the given string and assigns it to the PullRequestHeadBranch field. +func (o *V0BuildTriggerParamsBuildParams) SetPullRequestHeadBranch(v string) { + o.PullRequestHeadBranch = &v +} + +// GetPullRequestId returns the PullRequestId field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetPullRequestId() map[string]interface{} { + if o == nil || IsNil(o.PullRequestId) { + var ret map[string]interface{} + return ret + } + return o.PullRequestId +} + +// GetPullRequestIdOk returns a tuple with the PullRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetPullRequestIdOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.PullRequestId) { + return map[string]interface{}{}, false + } + return o.PullRequestId, true +} + +// HasPullRequestId returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasPullRequestId() bool { + if o != nil && !IsNil(o.PullRequestId) { + return true + } + + return false +} + +// SetPullRequestId gets a reference to the given map[string]interface{} and assigns it to the PullRequestId field. +func (o *V0BuildTriggerParamsBuildParams) SetPullRequestId(v map[string]interface{}) { + o.PullRequestId = v +} + +// GetPullRequestMergeBranch returns the PullRequestMergeBranch field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetPullRequestMergeBranch() string { + if o == nil || IsNil(o.PullRequestMergeBranch) { + var ret string + return ret + } + return *o.PullRequestMergeBranch +} + +// GetPullRequestMergeBranchOk returns a tuple with the PullRequestMergeBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetPullRequestMergeBranchOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestMergeBranch) { + return nil, false + } + return o.PullRequestMergeBranch, true +} + +// HasPullRequestMergeBranch returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasPullRequestMergeBranch() bool { + if o != nil && !IsNil(o.PullRequestMergeBranch) { + return true + } + + return false +} + +// SetPullRequestMergeBranch gets a reference to the given string and assigns it to the PullRequestMergeBranch field. +func (o *V0BuildTriggerParamsBuildParams) SetPullRequestMergeBranch(v string) { + o.PullRequestMergeBranch = &v +} + +// GetPullRequestRepositoryUrl returns the PullRequestRepositoryUrl field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetPullRequestRepositoryUrl() string { + if o == nil || IsNil(o.PullRequestRepositoryUrl) { + var ret string + return ret + } + return *o.PullRequestRepositoryUrl +} + +// GetPullRequestRepositoryUrlOk returns a tuple with the PullRequestRepositoryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetPullRequestRepositoryUrlOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestRepositoryUrl) { + return nil, false + } + return o.PullRequestRepositoryUrl, true +} + +// HasPullRequestRepositoryUrl returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasPullRequestRepositoryUrl() bool { + if o != nil && !IsNil(o.PullRequestRepositoryUrl) { + return true + } + + return false +} + +// SetPullRequestRepositoryUrl gets a reference to the given string and assigns it to the PullRequestRepositoryUrl field. +func (o *V0BuildTriggerParamsBuildParams) SetPullRequestRepositoryUrl(v string) { + o.PullRequestRepositoryUrl = &v +} + +// GetPullRequestUnverifiedMergeBranch returns the PullRequestUnverifiedMergeBranch field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetPullRequestUnverifiedMergeBranch() string { + if o == nil || IsNil(o.PullRequestUnverifiedMergeBranch) { + var ret string + return ret + } + return *o.PullRequestUnverifiedMergeBranch +} + +// GetPullRequestUnverifiedMergeBranchOk returns a tuple with the PullRequestUnverifiedMergeBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetPullRequestUnverifiedMergeBranchOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestUnverifiedMergeBranch) { + return nil, false + } + return o.PullRequestUnverifiedMergeBranch, true +} + +// HasPullRequestUnverifiedMergeBranch returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasPullRequestUnverifiedMergeBranch() bool { + if o != nil && !IsNil(o.PullRequestUnverifiedMergeBranch) { + return true + } + + return false +} + +// SetPullRequestUnverifiedMergeBranch gets a reference to the given string and assigns it to the PullRequestUnverifiedMergeBranch field. +func (o *V0BuildTriggerParamsBuildParams) SetPullRequestUnverifiedMergeBranch(v string) { + o.PullRequestUnverifiedMergeBranch = &v +} + +// GetSkipGitStatusReport returns the SkipGitStatusReport field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetSkipGitStatusReport() bool { + if o == nil || IsNil(o.SkipGitStatusReport) { + var ret bool + return ret + } + return *o.SkipGitStatusReport +} + +// GetSkipGitStatusReportOk returns a tuple with the SkipGitStatusReport field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetSkipGitStatusReportOk() (*bool, bool) { + if o == nil || IsNil(o.SkipGitStatusReport) { + return nil, false + } + return o.SkipGitStatusReport, true +} + +// HasSkipGitStatusReport returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasSkipGitStatusReport() bool { + if o != nil && !IsNil(o.SkipGitStatusReport) { + return true + } + + return false +} + +// SetSkipGitStatusReport gets a reference to the given bool and assigns it to the SkipGitStatusReport field. +func (o *V0BuildTriggerParamsBuildParams) SetSkipGitStatusReport(v bool) { + o.SkipGitStatusReport = &v +} + +// GetTag returns the Tag field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetTag() string { + if o == nil || IsNil(o.Tag) { + var ret string + return ret + } + return *o.Tag +} + +// GetTagOk returns a tuple with the Tag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetTagOk() (*string, bool) { + if o == nil || IsNil(o.Tag) { + return nil, false + } + return o.Tag, true +} + +// HasTag returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasTag() bool { + if o != nil && !IsNil(o.Tag) { + return true + } + + return false +} + +// SetTag gets a reference to the given string and assigns it to the Tag field. +func (o *V0BuildTriggerParamsBuildParams) SetTag(v string) { + o.Tag = &v +} + +// GetWorkflowId returns the WorkflowId field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsBuildParams) GetWorkflowId() string { + if o == nil || IsNil(o.WorkflowId) { + var ret string + return ret + } + return *o.WorkflowId +} + +// GetWorkflowIdOk returns a tuple with the WorkflowId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerParamsBuildParams) GetWorkflowIdOk() (*string, bool) { + if o == nil || IsNil(o.WorkflowId) { + return nil, false + } + return o.WorkflowId, true +} + +// HasWorkflowId returns a boolean if a field has been set. +func (o *V0BuildTriggerParamsBuildParams) HasWorkflowId() bool { + if o != nil && !IsNil(o.WorkflowId) { + return true + } + + return false +} + +// SetWorkflowId gets a reference to the given string and assigns it to the WorkflowId field. +func (o *V0BuildTriggerParamsBuildParams) SetWorkflowId(v string) { + o.WorkflowId = &v +} + +func (o V0BuildTriggerParamsBuildParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildTriggerParamsBuildParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BaseRepositoryUrl) { + toSerialize["base_repository_url"] = o.BaseRepositoryUrl + } + if !IsNil(o.Branch) { + toSerialize["branch"] = o.Branch + } + if !IsNil(o.BranchDest) { + toSerialize["branch_dest"] = o.BranchDest + } + if !IsNil(o.BranchDestRepoOwner) { + toSerialize["branch_dest_repo_owner"] = o.BranchDestRepoOwner + } + if !IsNil(o.BranchRepoOwner) { + toSerialize["branch_repo_owner"] = o.BranchRepoOwner + } + if !IsNil(o.BuildRequestSlug) { + toSerialize["build_request_slug"] = o.BuildRequestSlug + } + if !IsNil(o.CommitHash) { + toSerialize["commit_hash"] = o.CommitHash + } + if !IsNil(o.CommitMessage) { + toSerialize["commit_message"] = o.CommitMessage + } + if !IsNil(o.CommitPaths) { + toSerialize["commit_paths"] = o.CommitPaths + } + if !IsNil(o.DiffUrl) { + toSerialize["diff_url"] = o.DiffUrl + } + if !IsNil(o.Environments) { + toSerialize["environments"] = o.Environments + } + if !IsNil(o.HeadRepositoryUrl) { + toSerialize["head_repository_url"] = o.HeadRepositoryUrl + } + if !IsNil(o.PipelineId) { + toSerialize["pipeline_id"] = o.PipelineId + } + if !IsNil(o.PullRequestAuthor) { + toSerialize["pull_request_author"] = o.PullRequestAuthor + } + if !IsNil(o.PullRequestHeadBranch) { + toSerialize["pull_request_head_branch"] = o.PullRequestHeadBranch + } + if !IsNil(o.PullRequestId) { + toSerialize["pull_request_id"] = o.PullRequestId + } + if !IsNil(o.PullRequestMergeBranch) { + toSerialize["pull_request_merge_branch"] = o.PullRequestMergeBranch + } + if !IsNil(o.PullRequestRepositoryUrl) { + toSerialize["pull_request_repository_url"] = o.PullRequestRepositoryUrl + } + if !IsNil(o.PullRequestUnverifiedMergeBranch) { + toSerialize["pull_request_unverified_merge_branch"] = o.PullRequestUnverifiedMergeBranch + } + if !IsNil(o.SkipGitStatusReport) { + toSerialize["skip_git_status_report"] = o.SkipGitStatusReport + } + if !IsNil(o.Tag) { + toSerialize["tag"] = o.Tag + } + if !IsNil(o.WorkflowId) { + toSerialize["workflow_id"] = o.WorkflowId + } + return toSerialize, nil +} + +type NullableV0BuildTriggerParamsBuildParams struct { + value *V0BuildTriggerParamsBuildParams + isSet bool +} + +func (v NullableV0BuildTriggerParamsBuildParams) Get() *V0BuildTriggerParamsBuildParams { + return v.value +} + +func (v *NullableV0BuildTriggerParamsBuildParams) Set(val *V0BuildTriggerParamsBuildParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildTriggerParamsBuildParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildTriggerParamsBuildParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildTriggerParamsBuildParams(val *V0BuildTriggerParamsBuildParams) *NullableV0BuildTriggerParamsBuildParams { + return &NullableV0BuildTriggerParamsBuildParams{value: val, isSet: true} +} + +func (v NullableV0BuildTriggerParamsBuildParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildTriggerParamsBuildParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_trigger_params_hook_info.go b/go2/model_v0_build_trigger_params_hook_info.go new file mode 100644 index 0000000..0272ace --- /dev/null +++ b/go2/model_v0_build_trigger_params_hook_info.go @@ -0,0 +1,128 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildTriggerParamsHookInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildTriggerParamsHookInfo{} + +// V0BuildTriggerParamsHookInfo struct for V0BuildTriggerParamsHookInfo +type V0BuildTriggerParamsHookInfo struct { + // Should be \"bitrise\" + Type *string `json:"type,omitempty"` +} + +// NewV0BuildTriggerParamsHookInfo instantiates a new V0BuildTriggerParamsHookInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildTriggerParamsHookInfo() *V0BuildTriggerParamsHookInfo { + this := V0BuildTriggerParamsHookInfo{} + return &this +} + +// NewV0BuildTriggerParamsHookInfoWithDefaults instantiates a new V0BuildTriggerParamsHookInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildTriggerParamsHookInfoWithDefaults() *V0BuildTriggerParamsHookInfo { + this := V0BuildTriggerParamsHookInfo{} + return &this +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *V0BuildTriggerParamsHookInfo) 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 *V0BuildTriggerParamsHookInfo) 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 *V0BuildTriggerParamsHookInfo) 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 *V0BuildTriggerParamsHookInfo) SetType(v string) { + o.Type = &v +} + +func (o V0BuildTriggerParamsHookInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildTriggerParamsHookInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +type NullableV0BuildTriggerParamsHookInfo struct { + value *V0BuildTriggerParamsHookInfo + isSet bool +} + +func (v NullableV0BuildTriggerParamsHookInfo) Get() *V0BuildTriggerParamsHookInfo { + return v.value +} + +func (v *NullableV0BuildTriggerParamsHookInfo) Set(val *V0BuildTriggerParamsHookInfo) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildTriggerParamsHookInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildTriggerParamsHookInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildTriggerParamsHookInfo(val *V0BuildTriggerParamsHookInfo) *NullableV0BuildTriggerParamsHookInfo { + return &NullableV0BuildTriggerParamsHookInfo{value: val, isSet: true} +} + +func (v NullableV0BuildTriggerParamsHookInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildTriggerParamsHookInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_trigger_resp_model.go b/go2/model_v0_build_trigger_resp_model.go new file mode 100644 index 0000000..af42f7f --- /dev/null +++ b/go2/model_v0_build_trigger_resp_model.go @@ -0,0 +1,379 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildTriggerRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildTriggerRespModel{} + +// V0BuildTriggerRespModel struct for V0BuildTriggerRespModel +type V0BuildTriggerRespModel struct { + BuildNumber *int32 `json:"build_number,omitempty"` + BuildSlug *string `json:"build_slug,omitempty"` + BuildUrl *string `json:"build_url,omitempty"` + Message *string `json:"message,omitempty"` + Service *string `json:"service,omitempty"` + Slug *string `json:"slug,omitempty"` + Status *string `json:"status,omitempty"` + TriggeredWorkflow *string `json:"triggered_workflow,omitempty"` +} + +// NewV0BuildTriggerRespModel instantiates a new V0BuildTriggerRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildTriggerRespModel() *V0BuildTriggerRespModel { + this := V0BuildTriggerRespModel{} + return &this +} + +// NewV0BuildTriggerRespModelWithDefaults instantiates a new V0BuildTriggerRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildTriggerRespModelWithDefaults() *V0BuildTriggerRespModel { + this := V0BuildTriggerRespModel{} + return &this +} + +// GetBuildNumber returns the BuildNumber field value if set, zero value otherwise. +func (o *V0BuildTriggerRespModel) GetBuildNumber() int32 { + if o == nil || IsNil(o.BuildNumber) { + var ret int32 + return ret + } + return *o.BuildNumber +} + +// GetBuildNumberOk returns a tuple with the BuildNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerRespModel) GetBuildNumberOk() (*int32, bool) { + if o == nil || IsNil(o.BuildNumber) { + return nil, false + } + return o.BuildNumber, true +} + +// HasBuildNumber returns a boolean if a field has been set. +func (o *V0BuildTriggerRespModel) HasBuildNumber() bool { + if o != nil && !IsNil(o.BuildNumber) { + return true + } + + return false +} + +// SetBuildNumber gets a reference to the given int32 and assigns it to the BuildNumber field. +func (o *V0BuildTriggerRespModel) SetBuildNumber(v int32) { + o.BuildNumber = &v +} + +// GetBuildSlug returns the BuildSlug field value if set, zero value otherwise. +func (o *V0BuildTriggerRespModel) GetBuildSlug() string { + if o == nil || IsNil(o.BuildSlug) { + var ret string + return ret + } + return *o.BuildSlug +} + +// GetBuildSlugOk returns a tuple with the BuildSlug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerRespModel) GetBuildSlugOk() (*string, bool) { + if o == nil || IsNil(o.BuildSlug) { + return nil, false + } + return o.BuildSlug, true +} + +// HasBuildSlug returns a boolean if a field has been set. +func (o *V0BuildTriggerRespModel) HasBuildSlug() bool { + if o != nil && !IsNil(o.BuildSlug) { + return true + } + + return false +} + +// SetBuildSlug gets a reference to the given string and assigns it to the BuildSlug field. +func (o *V0BuildTriggerRespModel) SetBuildSlug(v string) { + o.BuildSlug = &v +} + +// GetBuildUrl returns the BuildUrl field value if set, zero value otherwise. +func (o *V0BuildTriggerRespModel) GetBuildUrl() string { + if o == nil || IsNil(o.BuildUrl) { + var ret string + return ret + } + return *o.BuildUrl +} + +// GetBuildUrlOk returns a tuple with the BuildUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerRespModel) GetBuildUrlOk() (*string, bool) { + if o == nil || IsNil(o.BuildUrl) { + return nil, false + } + return o.BuildUrl, true +} + +// HasBuildUrl returns a boolean if a field has been set. +func (o *V0BuildTriggerRespModel) HasBuildUrl() bool { + if o != nil && !IsNil(o.BuildUrl) { + return true + } + + return false +} + +// SetBuildUrl gets a reference to the given string and assigns it to the BuildUrl field. +func (o *V0BuildTriggerRespModel) SetBuildUrl(v string) { + o.BuildUrl = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *V0BuildTriggerRespModel) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerRespModel) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *V0BuildTriggerRespModel) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *V0BuildTriggerRespModel) SetMessage(v string) { + o.Message = &v +} + +// GetService returns the Service field value if set, zero value otherwise. +func (o *V0BuildTriggerRespModel) GetService() string { + if o == nil || IsNil(o.Service) { + var ret string + return ret + } + return *o.Service +} + +// GetServiceOk returns a tuple with the Service field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerRespModel) GetServiceOk() (*string, bool) { + if o == nil || IsNil(o.Service) { + return nil, false + } + return o.Service, true +} + +// HasService returns a boolean if a field has been set. +func (o *V0BuildTriggerRespModel) HasService() bool { + if o != nil && !IsNil(o.Service) { + return true + } + + return false +} + +// SetService gets a reference to the given string and assigns it to the Service field. +func (o *V0BuildTriggerRespModel) SetService(v string) { + o.Service = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0BuildTriggerRespModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerRespModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0BuildTriggerRespModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0BuildTriggerRespModel) SetSlug(v string) { + o.Slug = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0BuildTriggerRespModel) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerRespModel) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0BuildTriggerRespModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V0BuildTriggerRespModel) SetStatus(v string) { + o.Status = &v +} + +// GetTriggeredWorkflow returns the TriggeredWorkflow field value if set, zero value otherwise. +func (o *V0BuildTriggerRespModel) GetTriggeredWorkflow() string { + if o == nil || IsNil(o.TriggeredWorkflow) { + var ret string + return ret + } + return *o.TriggeredWorkflow +} + +// GetTriggeredWorkflowOk returns a tuple with the TriggeredWorkflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0BuildTriggerRespModel) GetTriggeredWorkflowOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredWorkflow) { + return nil, false + } + return o.TriggeredWorkflow, true +} + +// HasTriggeredWorkflow returns a boolean if a field has been set. +func (o *V0BuildTriggerRespModel) HasTriggeredWorkflow() bool { + if o != nil && !IsNil(o.TriggeredWorkflow) { + return true + } + + return false +} + +// SetTriggeredWorkflow gets a reference to the given string and assigns it to the TriggeredWorkflow field. +func (o *V0BuildTriggerRespModel) SetTriggeredWorkflow(v string) { + o.TriggeredWorkflow = &v +} + +func (o V0BuildTriggerRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildTriggerRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BuildNumber) { + toSerialize["build_number"] = o.BuildNumber + } + if !IsNil(o.BuildSlug) { + toSerialize["build_slug"] = o.BuildSlug + } + if !IsNil(o.BuildUrl) { + toSerialize["build_url"] = o.BuildUrl + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.Service) { + toSerialize["service"] = o.Service + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.TriggeredWorkflow) { + toSerialize["triggered_workflow"] = o.TriggeredWorkflow + } + return toSerialize, nil +} + +type NullableV0BuildTriggerRespModel struct { + value *V0BuildTriggerRespModel + isSet bool +} + +func (v NullableV0BuildTriggerRespModel) Get() *V0BuildTriggerRespModel { + return v.value +} + +func (v *NullableV0BuildTriggerRespModel) Set(val *V0BuildTriggerRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildTriggerRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildTriggerRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildTriggerRespModel(val *V0BuildTriggerRespModel) *NullableV0BuildTriggerRespModel { + return &NullableV0BuildTriggerRespModel{value: val, isSet: true} +} + +func (v NullableV0BuildTriggerRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildTriggerRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_build_workflow_list_response_model.go b/go2/model_v0_build_workflow_list_response_model.go new file mode 100644 index 0000000..9740b9c --- /dev/null +++ b/go2/model_v0_build_workflow_list_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0BuildWorkflowListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0BuildWorkflowListResponseModel{} + +// V0BuildWorkflowListResponseModel struct for V0BuildWorkflowListResponseModel +type V0BuildWorkflowListResponseModel struct { + Data []string `json:"data,omitempty"` +} + +// NewV0BuildWorkflowListResponseModel instantiates a new V0BuildWorkflowListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0BuildWorkflowListResponseModel() *V0BuildWorkflowListResponseModel { + this := V0BuildWorkflowListResponseModel{} + return &this +} + +// NewV0BuildWorkflowListResponseModelWithDefaults instantiates a new V0BuildWorkflowListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0BuildWorkflowListResponseModelWithDefaults() *V0BuildWorkflowListResponseModel { + this := V0BuildWorkflowListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0BuildWorkflowListResponseModel) GetData() []string { + if o == nil || IsNil(o.Data) { + var ret []string + 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 *V0BuildWorkflowListResponseModel) GetDataOk() ([]string, 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 *V0BuildWorkflowListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []string and assigns it to the Data field. +func (o *V0BuildWorkflowListResponseModel) SetData(v []string) { + o.Data = v +} + +func (o V0BuildWorkflowListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0BuildWorkflowListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0BuildWorkflowListResponseModel struct { + value *V0BuildWorkflowListResponseModel + isSet bool +} + +func (v NullableV0BuildWorkflowListResponseModel) Get() *V0BuildWorkflowListResponseModel { + return v.value +} + +func (v *NullableV0BuildWorkflowListResponseModel) Set(val *V0BuildWorkflowListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0BuildWorkflowListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0BuildWorkflowListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0BuildWorkflowListResponseModel(val *V0BuildWorkflowListResponseModel) *NullableV0BuildWorkflowListResponseModel { + return &NullableV0BuildWorkflowListResponseModel{value: val, isSet: true} +} + +func (v NullableV0BuildWorkflowListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0BuildWorkflowListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_cache_item_download_response_model.go b/go2/model_v0_cache_item_download_response_model.go new file mode 100644 index 0000000..b67185f --- /dev/null +++ b/go2/model_v0_cache_item_download_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0CacheItemDownloadResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0CacheItemDownloadResponseModel{} + +// V0CacheItemDownloadResponseModel struct for V0CacheItemDownloadResponseModel +type V0CacheItemDownloadResponseModel struct { + Data *V0CacheItemDownloadURLResponseModel `json:"data,omitempty"` +} + +// NewV0CacheItemDownloadResponseModel instantiates a new V0CacheItemDownloadResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0CacheItemDownloadResponseModel() *V0CacheItemDownloadResponseModel { + this := V0CacheItemDownloadResponseModel{} + return &this +} + +// NewV0CacheItemDownloadResponseModelWithDefaults instantiates a new V0CacheItemDownloadResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0CacheItemDownloadResponseModelWithDefaults() *V0CacheItemDownloadResponseModel { + this := V0CacheItemDownloadResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0CacheItemDownloadResponseModel) GetData() V0CacheItemDownloadURLResponseModel { + if o == nil || IsNil(o.Data) { + var ret V0CacheItemDownloadURLResponseModel + 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 *V0CacheItemDownloadResponseModel) GetDataOk() (*V0CacheItemDownloadURLResponseModel, 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 *V0CacheItemDownloadResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0CacheItemDownloadURLResponseModel and assigns it to the Data field. +func (o *V0CacheItemDownloadResponseModel) SetData(v V0CacheItemDownloadURLResponseModel) { + o.Data = &v +} + +func (o V0CacheItemDownloadResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0CacheItemDownloadResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0CacheItemDownloadResponseModel struct { + value *V0CacheItemDownloadResponseModel + isSet bool +} + +func (v NullableV0CacheItemDownloadResponseModel) Get() *V0CacheItemDownloadResponseModel { + return v.value +} + +func (v *NullableV0CacheItemDownloadResponseModel) Set(val *V0CacheItemDownloadResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0CacheItemDownloadResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0CacheItemDownloadResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0CacheItemDownloadResponseModel(val *V0CacheItemDownloadResponseModel) *NullableV0CacheItemDownloadResponseModel { + return &NullableV0CacheItemDownloadResponseModel{value: val, isSet: true} +} + +func (v NullableV0CacheItemDownloadResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0CacheItemDownloadResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_cache_item_download_url_response_model.go b/go2/model_v0_cache_item_download_url_response_model.go new file mode 100644 index 0000000..963b918 --- /dev/null +++ b/go2/model_v0_cache_item_download_url_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0CacheItemDownloadURLResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0CacheItemDownloadURLResponseModel{} + +// V0CacheItemDownloadURLResponseModel struct for V0CacheItemDownloadURLResponseModel +type V0CacheItemDownloadURLResponseModel struct { + DownloadUrl *string `json:"download_url,omitempty"` +} + +// NewV0CacheItemDownloadURLResponseModel instantiates a new V0CacheItemDownloadURLResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0CacheItemDownloadURLResponseModel() *V0CacheItemDownloadURLResponseModel { + this := V0CacheItemDownloadURLResponseModel{} + return &this +} + +// NewV0CacheItemDownloadURLResponseModelWithDefaults instantiates a new V0CacheItemDownloadURLResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0CacheItemDownloadURLResponseModelWithDefaults() *V0CacheItemDownloadURLResponseModel { + this := V0CacheItemDownloadURLResponseModel{} + return &this +} + +// GetDownloadUrl returns the DownloadUrl field value if set, zero value otherwise. +func (o *V0CacheItemDownloadURLResponseModel) GetDownloadUrl() string { + if o == nil || IsNil(o.DownloadUrl) { + var ret string + return ret + } + return *o.DownloadUrl +} + +// GetDownloadUrlOk returns a tuple with the DownloadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0CacheItemDownloadURLResponseModel) GetDownloadUrlOk() (*string, bool) { + if o == nil || IsNil(o.DownloadUrl) { + return nil, false + } + return o.DownloadUrl, true +} + +// HasDownloadUrl returns a boolean if a field has been set. +func (o *V0CacheItemDownloadURLResponseModel) HasDownloadUrl() bool { + if o != nil && !IsNil(o.DownloadUrl) { + return true + } + + return false +} + +// SetDownloadUrl gets a reference to the given string and assigns it to the DownloadUrl field. +func (o *V0CacheItemDownloadURLResponseModel) SetDownloadUrl(v string) { + o.DownloadUrl = &v +} + +func (o V0CacheItemDownloadURLResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0CacheItemDownloadURLResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DownloadUrl) { + toSerialize["download_url"] = o.DownloadUrl + } + return toSerialize, nil +} + +type NullableV0CacheItemDownloadURLResponseModel struct { + value *V0CacheItemDownloadURLResponseModel + isSet bool +} + +func (v NullableV0CacheItemDownloadURLResponseModel) Get() *V0CacheItemDownloadURLResponseModel { + return v.value +} + +func (v *NullableV0CacheItemDownloadURLResponseModel) Set(val *V0CacheItemDownloadURLResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0CacheItemDownloadURLResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0CacheItemDownloadURLResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0CacheItemDownloadURLResponseModel(val *V0CacheItemDownloadURLResponseModel) *NullableV0CacheItemDownloadURLResponseModel { + return &NullableV0CacheItemDownloadURLResponseModel{value: val, isSet: true} +} + +func (v NullableV0CacheItemDownloadURLResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0CacheItemDownloadURLResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_cache_item_list_response_item_model.go b/go2/model_v0_cache_item_list_response_item_model.go new file mode 100644 index 0000000..7e7e5f1 --- /dev/null +++ b/go2/model_v0_cache_item_list_response_item_model.go @@ -0,0 +1,379 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0CacheItemListResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0CacheItemListResponseItemModel{} + +// V0CacheItemListResponseItemModel struct for V0CacheItemListResponseItemModel +type V0CacheItemListResponseItemModel struct { + AppId *string `json:"app_id,omitempty"` + ArchiveFilename *string `json:"archive_filename,omitempty"` + ArchiveSize *int32 `json:"archive_size,omitempty"` + CacheKey *string `json:"cache_key,omitempty"` + CreatedAt *string `json:"created_at,omitempty"` + ExpiresAt *string `json:"expires_at,omitempty"` + Id *string `json:"id,omitempty"` + LastUsedAt *string `json:"last_used_at,omitempty"` +} + +// NewV0CacheItemListResponseItemModel instantiates a new V0CacheItemListResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0CacheItemListResponseItemModel() *V0CacheItemListResponseItemModel { + this := V0CacheItemListResponseItemModel{} + return &this +} + +// NewV0CacheItemListResponseItemModelWithDefaults instantiates a new V0CacheItemListResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0CacheItemListResponseItemModelWithDefaults() *V0CacheItemListResponseItemModel { + this := V0CacheItemListResponseItemModel{} + return &this +} + +// GetAppId returns the AppId field value if set, zero value otherwise. +func (o *V0CacheItemListResponseItemModel) GetAppId() string { + if o == nil || IsNil(o.AppId) { + var ret string + return ret + } + return *o.AppId +} + +// GetAppIdOk returns a tuple with the AppId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0CacheItemListResponseItemModel) GetAppIdOk() (*string, bool) { + if o == nil || IsNil(o.AppId) { + return nil, false + } + return o.AppId, true +} + +// HasAppId returns a boolean if a field has been set. +func (o *V0CacheItemListResponseItemModel) HasAppId() bool { + if o != nil && !IsNil(o.AppId) { + return true + } + + return false +} + +// SetAppId gets a reference to the given string and assigns it to the AppId field. +func (o *V0CacheItemListResponseItemModel) SetAppId(v string) { + o.AppId = &v +} + +// GetArchiveFilename returns the ArchiveFilename field value if set, zero value otherwise. +func (o *V0CacheItemListResponseItemModel) GetArchiveFilename() string { + if o == nil || IsNil(o.ArchiveFilename) { + var ret string + return ret + } + return *o.ArchiveFilename +} + +// GetArchiveFilenameOk returns a tuple with the ArchiveFilename field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0CacheItemListResponseItemModel) GetArchiveFilenameOk() (*string, bool) { + if o == nil || IsNil(o.ArchiveFilename) { + return nil, false + } + return o.ArchiveFilename, true +} + +// HasArchiveFilename returns a boolean if a field has been set. +func (o *V0CacheItemListResponseItemModel) HasArchiveFilename() bool { + if o != nil && !IsNil(o.ArchiveFilename) { + return true + } + + return false +} + +// SetArchiveFilename gets a reference to the given string and assigns it to the ArchiveFilename field. +func (o *V0CacheItemListResponseItemModel) SetArchiveFilename(v string) { + o.ArchiveFilename = &v +} + +// GetArchiveSize returns the ArchiveSize field value if set, zero value otherwise. +func (o *V0CacheItemListResponseItemModel) GetArchiveSize() int32 { + if o == nil || IsNil(o.ArchiveSize) { + var ret int32 + return ret + } + return *o.ArchiveSize +} + +// GetArchiveSizeOk returns a tuple with the ArchiveSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0CacheItemListResponseItemModel) GetArchiveSizeOk() (*int32, bool) { + if o == nil || IsNil(o.ArchiveSize) { + return nil, false + } + return o.ArchiveSize, true +} + +// HasArchiveSize returns a boolean if a field has been set. +func (o *V0CacheItemListResponseItemModel) HasArchiveSize() bool { + if o != nil && !IsNil(o.ArchiveSize) { + return true + } + + return false +} + +// SetArchiveSize gets a reference to the given int32 and assigns it to the ArchiveSize field. +func (o *V0CacheItemListResponseItemModel) SetArchiveSize(v int32) { + o.ArchiveSize = &v +} + +// GetCacheKey returns the CacheKey field value if set, zero value otherwise. +func (o *V0CacheItemListResponseItemModel) GetCacheKey() string { + if o == nil || IsNil(o.CacheKey) { + var ret string + return ret + } + return *o.CacheKey +} + +// GetCacheKeyOk returns a tuple with the CacheKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0CacheItemListResponseItemModel) GetCacheKeyOk() (*string, bool) { + if o == nil || IsNil(o.CacheKey) { + return nil, false + } + return o.CacheKey, true +} + +// HasCacheKey returns a boolean if a field has been set. +func (o *V0CacheItemListResponseItemModel) HasCacheKey() bool { + if o != nil && !IsNil(o.CacheKey) { + return true + } + + return false +} + +// SetCacheKey gets a reference to the given string and assigns it to the CacheKey field. +func (o *V0CacheItemListResponseItemModel) SetCacheKey(v string) { + o.CacheKey = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *V0CacheItemListResponseItemModel) GetCreatedAt() string { + if o == nil || IsNil(o.CreatedAt) { + var ret string + 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 *V0CacheItemListResponseItemModel) GetCreatedAtOk() (*string, 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 *V0CacheItemListResponseItemModel) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. +func (o *V0CacheItemListResponseItemModel) SetCreatedAt(v string) { + o.CreatedAt = &v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. +func (o *V0CacheItemListResponseItemModel) GetExpiresAt() string { + if o == nil || IsNil(o.ExpiresAt) { + var ret string + return ret + } + return *o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0CacheItemListResponseItemModel) GetExpiresAtOk() (*string, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *V0CacheItemListResponseItemModel) HasExpiresAt() bool { + if o != nil && !IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given string and assigns it to the ExpiresAt field. +func (o *V0CacheItemListResponseItemModel) SetExpiresAt(v string) { + o.ExpiresAt = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *V0CacheItemListResponseItemModel) 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 *V0CacheItemListResponseItemModel) 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 *V0CacheItemListResponseItemModel) 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 *V0CacheItemListResponseItemModel) SetId(v string) { + o.Id = &v +} + +// GetLastUsedAt returns the LastUsedAt field value if set, zero value otherwise. +func (o *V0CacheItemListResponseItemModel) GetLastUsedAt() string { + if o == nil || IsNil(o.LastUsedAt) { + var ret string + return ret + } + return *o.LastUsedAt +} + +// GetLastUsedAtOk returns a tuple with the LastUsedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0CacheItemListResponseItemModel) GetLastUsedAtOk() (*string, bool) { + if o == nil || IsNil(o.LastUsedAt) { + return nil, false + } + return o.LastUsedAt, true +} + +// HasLastUsedAt returns a boolean if a field has been set. +func (o *V0CacheItemListResponseItemModel) HasLastUsedAt() bool { + if o != nil && !IsNil(o.LastUsedAt) { + return true + } + + return false +} + +// SetLastUsedAt gets a reference to the given string and assigns it to the LastUsedAt field. +func (o *V0CacheItemListResponseItemModel) SetLastUsedAt(v string) { + o.LastUsedAt = &v +} + +func (o V0CacheItemListResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0CacheItemListResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AppId) { + toSerialize["app_id"] = o.AppId + } + if !IsNil(o.ArchiveFilename) { + toSerialize["archive_filename"] = o.ArchiveFilename + } + if !IsNil(o.ArchiveSize) { + toSerialize["archive_size"] = o.ArchiveSize + } + if !IsNil(o.CacheKey) { + toSerialize["cache_key"] = o.CacheKey + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.ExpiresAt) { + toSerialize["expires_at"] = o.ExpiresAt + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.LastUsedAt) { + toSerialize["last_used_at"] = o.LastUsedAt + } + return toSerialize, nil +} + +type NullableV0CacheItemListResponseItemModel struct { + value *V0CacheItemListResponseItemModel + isSet bool +} + +func (v NullableV0CacheItemListResponseItemModel) Get() *V0CacheItemListResponseItemModel { + return v.value +} + +func (v *NullableV0CacheItemListResponseItemModel) Set(val *V0CacheItemListResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0CacheItemListResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0CacheItemListResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0CacheItemListResponseItemModel(val *V0CacheItemListResponseItemModel) *NullableV0CacheItemListResponseItemModel { + return &NullableV0CacheItemListResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0CacheItemListResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0CacheItemListResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_cache_item_list_response_model.go b/go2/model_v0_cache_item_list_response_model.go new file mode 100644 index 0000000..7e0be67 --- /dev/null +++ b/go2/model_v0_cache_item_list_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0CacheItemListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0CacheItemListResponseModel{} + +// V0CacheItemListResponseModel struct for V0CacheItemListResponseModel +type V0CacheItemListResponseModel struct { + Data []V0CacheItemListResponseItemModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0CacheItemListResponseModel instantiates a new V0CacheItemListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0CacheItemListResponseModel() *V0CacheItemListResponseModel { + this := V0CacheItemListResponseModel{} + return &this +} + +// NewV0CacheItemListResponseModelWithDefaults instantiates a new V0CacheItemListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0CacheItemListResponseModelWithDefaults() *V0CacheItemListResponseModel { + this := V0CacheItemListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0CacheItemListResponseModel) GetData() []V0CacheItemListResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0CacheItemListResponseItemModel + 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 *V0CacheItemListResponseModel) GetDataOk() ([]V0CacheItemListResponseItemModel, 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 *V0CacheItemListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0CacheItemListResponseItemModel and assigns it to the Data field. +func (o *V0CacheItemListResponseModel) SetData(v []V0CacheItemListResponseItemModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0CacheItemListResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0CacheItemListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0CacheItemListResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0CacheItemListResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0CacheItemListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0CacheItemListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0CacheItemListResponseModel struct { + value *V0CacheItemListResponseModel + isSet bool +} + +func (v NullableV0CacheItemListResponseModel) Get() *V0CacheItemListResponseModel { + return v.value +} + +func (v *NullableV0CacheItemListResponseModel) Set(val *V0CacheItemListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0CacheItemListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0CacheItemListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0CacheItemListResponseModel(val *V0CacheItemListResponseModel) *NullableV0CacheItemListResponseModel { + return &NullableV0CacheItemListResponseModel{value: val, isSet: true} +} + +func (v NullableV0CacheItemListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0CacheItemListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_commit_paths.go b/go2/model_v0_commit_paths.go new file mode 100644 index 0000000..ab8e761 --- /dev/null +++ b/go2/model_v0_commit_paths.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0CommitPaths type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0CommitPaths{} + +// V0CommitPaths struct for V0CommitPaths +type V0CommitPaths struct { + Added []string `json:"added,omitempty"` + Modified []string `json:"modified,omitempty"` + Removed []string `json:"removed,omitempty"` +} + +// NewV0CommitPaths instantiates a new V0CommitPaths object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0CommitPaths() *V0CommitPaths { + this := V0CommitPaths{} + return &this +} + +// NewV0CommitPathsWithDefaults instantiates a new V0CommitPaths object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0CommitPathsWithDefaults() *V0CommitPaths { + this := V0CommitPaths{} + return &this +} + +// GetAdded returns the Added field value if set, zero value otherwise. +func (o *V0CommitPaths) GetAdded() []string { + if o == nil || IsNil(o.Added) { + var ret []string + return ret + } + return o.Added +} + +// GetAddedOk returns a tuple with the Added field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0CommitPaths) GetAddedOk() ([]string, bool) { + if o == nil || IsNil(o.Added) { + return nil, false + } + return o.Added, true +} + +// HasAdded returns a boolean if a field has been set. +func (o *V0CommitPaths) HasAdded() bool { + if o != nil && !IsNil(o.Added) { + return true + } + + return false +} + +// SetAdded gets a reference to the given []string and assigns it to the Added field. +func (o *V0CommitPaths) SetAdded(v []string) { + o.Added = v +} + +// GetModified returns the Modified field value if set, zero value otherwise. +func (o *V0CommitPaths) GetModified() []string { + if o == nil || IsNil(o.Modified) { + var ret []string + return ret + } + return o.Modified +} + +// GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0CommitPaths) GetModifiedOk() ([]string, bool) { + if o == nil || IsNil(o.Modified) { + return nil, false + } + return o.Modified, true +} + +// HasModified returns a boolean if a field has been set. +func (o *V0CommitPaths) HasModified() bool { + if o != nil && !IsNil(o.Modified) { + return true + } + + return false +} + +// SetModified gets a reference to the given []string and assigns it to the Modified field. +func (o *V0CommitPaths) SetModified(v []string) { + o.Modified = v +} + +// GetRemoved returns the Removed field value if set, zero value otherwise. +func (o *V0CommitPaths) GetRemoved() []string { + if o == nil || IsNil(o.Removed) { + var ret []string + return ret + } + return o.Removed +} + +// GetRemovedOk returns a tuple with the Removed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0CommitPaths) GetRemovedOk() ([]string, bool) { + if o == nil || IsNil(o.Removed) { + return nil, false + } + return o.Removed, true +} + +// HasRemoved returns a boolean if a field has been set. +func (o *V0CommitPaths) HasRemoved() bool { + if o != nil && !IsNil(o.Removed) { + return true + } + + return false +} + +// SetRemoved gets a reference to the given []string and assigns it to the Removed field. +func (o *V0CommitPaths) SetRemoved(v []string) { + o.Removed = v +} + +func (o V0CommitPaths) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0CommitPaths) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Added) { + toSerialize["added"] = o.Added + } + if !IsNil(o.Modified) { + toSerialize["modified"] = o.Modified + } + if !IsNil(o.Removed) { + toSerialize["removed"] = o.Removed + } + return toSerialize, nil +} + +type NullableV0CommitPaths struct { + value *V0CommitPaths + isSet bool +} + +func (v NullableV0CommitPaths) Get() *V0CommitPaths { + return v.value +} + +func (v *NullableV0CommitPaths) Set(val *V0CommitPaths) { + v.value = val + v.isSet = true +} + +func (v NullableV0CommitPaths) IsSet() bool { + return v.isSet +} + +func (v *NullableV0CommitPaths) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0CommitPaths(val *V0CommitPaths) *NullableV0CommitPaths { + return &NullableV0CommitPaths{value: val, isSet: true} +} + +func (v NullableV0CommitPaths) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0CommitPaths) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_organization_data_model.go b/go2/model_v0_organization_data_model.go new file mode 100644 index 0000000..c8866b5 --- /dev/null +++ b/go2/model_v0_organization_data_model.go @@ -0,0 +1,271 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0OrganizationDataModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0OrganizationDataModel{} + +// V0OrganizationDataModel struct for V0OrganizationDataModel +type V0OrganizationDataModel struct { + AvatarIconUrl *NullsString `json:"avatar_icon_url,omitempty"` + ConcurrencyCount *int32 `json:"concurrency_count,omitempty"` + Name *string `json:"name,omitempty"` + Owners []V0OrganizationOwner `json:"owners,omitempty"` + Slug *string `json:"slug,omitempty"` +} + +// NewV0OrganizationDataModel instantiates a new V0OrganizationDataModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0OrganizationDataModel() *V0OrganizationDataModel { + this := V0OrganizationDataModel{} + return &this +} + +// NewV0OrganizationDataModelWithDefaults instantiates a new V0OrganizationDataModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0OrganizationDataModelWithDefaults() *V0OrganizationDataModel { + this := V0OrganizationDataModel{} + return &this +} + +// GetAvatarIconUrl returns the AvatarIconUrl field value if set, zero value otherwise. +func (o *V0OrganizationDataModel) GetAvatarIconUrl() NullsString { + if o == nil || IsNil(o.AvatarIconUrl) { + var ret NullsString + return ret + } + return *o.AvatarIconUrl +} + +// GetAvatarIconUrlOk returns a tuple with the AvatarIconUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OrganizationDataModel) GetAvatarIconUrlOk() (*NullsString, bool) { + if o == nil || IsNil(o.AvatarIconUrl) { + return nil, false + } + return o.AvatarIconUrl, true +} + +// HasAvatarIconUrl returns a boolean if a field has been set. +func (o *V0OrganizationDataModel) HasAvatarIconUrl() bool { + if o != nil && !IsNil(o.AvatarIconUrl) { + return true + } + + return false +} + +// SetAvatarIconUrl gets a reference to the given NullsString and assigns it to the AvatarIconUrl field. +func (o *V0OrganizationDataModel) SetAvatarIconUrl(v NullsString) { + o.AvatarIconUrl = &v +} + +// GetConcurrencyCount returns the ConcurrencyCount field value if set, zero value otherwise. +func (o *V0OrganizationDataModel) GetConcurrencyCount() int32 { + if o == nil || IsNil(o.ConcurrencyCount) { + var ret int32 + return ret + } + return *o.ConcurrencyCount +} + +// GetConcurrencyCountOk returns a tuple with the ConcurrencyCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OrganizationDataModel) GetConcurrencyCountOk() (*int32, bool) { + if o == nil || IsNil(o.ConcurrencyCount) { + return nil, false + } + return o.ConcurrencyCount, true +} + +// HasConcurrencyCount returns a boolean if a field has been set. +func (o *V0OrganizationDataModel) HasConcurrencyCount() bool { + if o != nil && !IsNil(o.ConcurrencyCount) { + return true + } + + return false +} + +// SetConcurrencyCount gets a reference to the given int32 and assigns it to the ConcurrencyCount field. +func (o *V0OrganizationDataModel) SetConcurrencyCount(v int32) { + o.ConcurrencyCount = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V0OrganizationDataModel) 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 *V0OrganizationDataModel) 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 *V0OrganizationDataModel) 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 *V0OrganizationDataModel) SetName(v string) { + o.Name = &v +} + +// GetOwners returns the Owners field value if set, zero value otherwise. +func (o *V0OrganizationDataModel) GetOwners() []V0OrganizationOwner { + if o == nil || IsNil(o.Owners) { + var ret []V0OrganizationOwner + return ret + } + return o.Owners +} + +// GetOwnersOk returns a tuple with the Owners field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OrganizationDataModel) GetOwnersOk() ([]V0OrganizationOwner, bool) { + if o == nil || IsNil(o.Owners) { + return nil, false + } + return o.Owners, true +} + +// HasOwners returns a boolean if a field has been set. +func (o *V0OrganizationDataModel) HasOwners() bool { + if o != nil && !IsNil(o.Owners) { + return true + } + + return false +} + +// SetOwners gets a reference to the given []V0OrganizationOwner and assigns it to the Owners field. +func (o *V0OrganizationDataModel) SetOwners(v []V0OrganizationOwner) { + o.Owners = v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0OrganizationDataModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OrganizationDataModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0OrganizationDataModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0OrganizationDataModel) SetSlug(v string) { + o.Slug = &v +} + +func (o V0OrganizationDataModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0OrganizationDataModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AvatarIconUrl) { + toSerialize["avatar_icon_url"] = o.AvatarIconUrl + } + if !IsNil(o.ConcurrencyCount) { + toSerialize["concurrency_count"] = o.ConcurrencyCount + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Owners) { + toSerialize["owners"] = o.Owners + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + return toSerialize, nil +} + +type NullableV0OrganizationDataModel struct { + value *V0OrganizationDataModel + isSet bool +} + +func (v NullableV0OrganizationDataModel) Get() *V0OrganizationDataModel { + return v.value +} + +func (v *NullableV0OrganizationDataModel) Set(val *V0OrganizationDataModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0OrganizationDataModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0OrganizationDataModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0OrganizationDataModel(val *V0OrganizationDataModel) *NullableV0OrganizationDataModel { + return &NullableV0OrganizationDataModel{value: val, isSet: true} +} + +func (v NullableV0OrganizationDataModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0OrganizationDataModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_organization_list_resp_model.go b/go2/model_v0_organization_list_resp_model.go new file mode 100644 index 0000000..91c936a --- /dev/null +++ b/go2/model_v0_organization_list_resp_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0OrganizationListRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0OrganizationListRespModel{} + +// V0OrganizationListRespModel struct for V0OrganizationListRespModel +type V0OrganizationListRespModel struct { + Data []V0OrganizationDataModel `json:"data,omitempty"` +} + +// NewV0OrganizationListRespModel instantiates a new V0OrganizationListRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0OrganizationListRespModel() *V0OrganizationListRespModel { + this := V0OrganizationListRespModel{} + return &this +} + +// NewV0OrganizationListRespModelWithDefaults instantiates a new V0OrganizationListRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0OrganizationListRespModelWithDefaults() *V0OrganizationListRespModel { + this := V0OrganizationListRespModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0OrganizationListRespModel) GetData() []V0OrganizationDataModel { + if o == nil || IsNil(o.Data) { + var ret []V0OrganizationDataModel + 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 *V0OrganizationListRespModel) GetDataOk() ([]V0OrganizationDataModel, 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 *V0OrganizationListRespModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0OrganizationDataModel and assigns it to the Data field. +func (o *V0OrganizationListRespModel) SetData(v []V0OrganizationDataModel) { + o.Data = v +} + +func (o V0OrganizationListRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0OrganizationListRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0OrganizationListRespModel struct { + value *V0OrganizationListRespModel + isSet bool +} + +func (v NullableV0OrganizationListRespModel) Get() *V0OrganizationListRespModel { + return v.value +} + +func (v *NullableV0OrganizationListRespModel) Set(val *V0OrganizationListRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0OrganizationListRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0OrganizationListRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0OrganizationListRespModel(val *V0OrganizationListRespModel) *NullableV0OrganizationListRespModel { + return &NullableV0OrganizationListRespModel{value: val, isSet: true} +} + +func (v NullableV0OrganizationListRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0OrganizationListRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_organization_owner.go b/go2/model_v0_organization_owner.go new file mode 100644 index 0000000..c3401b7 --- /dev/null +++ b/go2/model_v0_organization_owner.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0OrganizationOwner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0OrganizationOwner{} + +// V0OrganizationOwner struct for V0OrganizationOwner +type V0OrganizationOwner struct { + Email *string `json:"email,omitempty"` + Slug *string `json:"slug,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewV0OrganizationOwner instantiates a new V0OrganizationOwner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0OrganizationOwner() *V0OrganizationOwner { + this := V0OrganizationOwner{} + return &this +} + +// NewV0OrganizationOwnerWithDefaults instantiates a new V0OrganizationOwner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0OrganizationOwnerWithDefaults() *V0OrganizationOwner { + this := V0OrganizationOwner{} + return &this +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *V0OrganizationOwner) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OrganizationOwner) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *V0OrganizationOwner) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *V0OrganizationOwner) SetEmail(v string) { + o.Email = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0OrganizationOwner) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OrganizationOwner) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0OrganizationOwner) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0OrganizationOwner) SetSlug(v string) { + o.Slug = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *V0OrganizationOwner) 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 *V0OrganizationOwner) 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 *V0OrganizationOwner) 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 *V0OrganizationOwner) SetUsername(v string) { + o.Username = &v +} + +func (o V0OrganizationOwner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0OrganizationOwner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableV0OrganizationOwner struct { + value *V0OrganizationOwner + isSet bool +} + +func (v NullableV0OrganizationOwner) Get() *V0OrganizationOwner { + return v.value +} + +func (v *NullableV0OrganizationOwner) Set(val *V0OrganizationOwner) { + v.value = val + v.isSet = true +} + +func (v NullableV0OrganizationOwner) IsSet() bool { + return v.isSet +} + +func (v *NullableV0OrganizationOwner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0OrganizationOwner(val *V0OrganizationOwner) *NullableV0OrganizationOwner { + return &NullableV0OrganizationOwner{value: val, isSet: true} +} + +func (v NullableV0OrganizationOwner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0OrganizationOwner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_organization_resp_model.go b/go2/model_v0_organization_resp_model.go new file mode 100644 index 0000000..ce870f1 --- /dev/null +++ b/go2/model_v0_organization_resp_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0OrganizationRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0OrganizationRespModel{} + +// V0OrganizationRespModel struct for V0OrganizationRespModel +type V0OrganizationRespModel struct { + Data *V0OrganizationDataModel `json:"data,omitempty"` +} + +// NewV0OrganizationRespModel instantiates a new V0OrganizationRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0OrganizationRespModel() *V0OrganizationRespModel { + this := V0OrganizationRespModel{} + return &this +} + +// NewV0OrganizationRespModelWithDefaults instantiates a new V0OrganizationRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0OrganizationRespModelWithDefaults() *V0OrganizationRespModel { + this := V0OrganizationRespModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0OrganizationRespModel) GetData() V0OrganizationDataModel { + if o == nil || IsNil(o.Data) { + var ret V0OrganizationDataModel + 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 *V0OrganizationRespModel) GetDataOk() (*V0OrganizationDataModel, 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 *V0OrganizationRespModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0OrganizationDataModel and assigns it to the Data field. +func (o *V0OrganizationRespModel) SetData(v V0OrganizationDataModel) { + o.Data = &v +} + +func (o V0OrganizationRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0OrganizationRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0OrganizationRespModel struct { + value *V0OrganizationRespModel + isSet bool +} + +func (v NullableV0OrganizationRespModel) Get() *V0OrganizationRespModel { + return v.value +} + +func (v *NullableV0OrganizationRespModel) Set(val *V0OrganizationRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0OrganizationRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0OrganizationRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0OrganizationRespModel(val *V0OrganizationRespModel) *NullableV0OrganizationRespModel { + return &NullableV0OrganizationRespModel{value: val, isSet: true} +} + +func (v NullableV0OrganizationRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0OrganizationRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_organization_update_machine_type_params.go b/go2/model_v0_organization_update_machine_type_params.go new file mode 100644 index 0000000..ec9579f --- /dev/null +++ b/go2/model_v0_organization_update_machine_type_params.go @@ -0,0 +1,165 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0OrganizationUpdateMachineTypeParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0OrganizationUpdateMachineTypeParams{} + +// V0OrganizationUpdateMachineTypeParams struct for V0OrganizationUpdateMachineTypeParams +type V0OrganizationUpdateMachineTypeParams struct { + // Machine type to migrate from + FromMachine *string `json:"from_machine,omitempty"` + // Machine type to migrate to + ToMachine *string `json:"to_machine,omitempty"` +} + +// NewV0OrganizationUpdateMachineTypeParams instantiates a new V0OrganizationUpdateMachineTypeParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0OrganizationUpdateMachineTypeParams() *V0OrganizationUpdateMachineTypeParams { + this := V0OrganizationUpdateMachineTypeParams{} + return &this +} + +// NewV0OrganizationUpdateMachineTypeParamsWithDefaults instantiates a new V0OrganizationUpdateMachineTypeParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0OrganizationUpdateMachineTypeParamsWithDefaults() *V0OrganizationUpdateMachineTypeParams { + this := V0OrganizationUpdateMachineTypeParams{} + return &this +} + +// GetFromMachine returns the FromMachine field value if set, zero value otherwise. +func (o *V0OrganizationUpdateMachineTypeParams) GetFromMachine() string { + if o == nil || IsNil(o.FromMachine) { + var ret string + return ret + } + return *o.FromMachine +} + +// GetFromMachineOk returns a tuple with the FromMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OrganizationUpdateMachineTypeParams) GetFromMachineOk() (*string, bool) { + if o == nil || IsNil(o.FromMachine) { + return nil, false + } + return o.FromMachine, true +} + +// HasFromMachine returns a boolean if a field has been set. +func (o *V0OrganizationUpdateMachineTypeParams) HasFromMachine() bool { + if o != nil && !IsNil(o.FromMachine) { + return true + } + + return false +} + +// SetFromMachine gets a reference to the given string and assigns it to the FromMachine field. +func (o *V0OrganizationUpdateMachineTypeParams) SetFromMachine(v string) { + o.FromMachine = &v +} + +// GetToMachine returns the ToMachine field value if set, zero value otherwise. +func (o *V0OrganizationUpdateMachineTypeParams) GetToMachine() string { + if o == nil || IsNil(o.ToMachine) { + var ret string + return ret + } + return *o.ToMachine +} + +// GetToMachineOk returns a tuple with the ToMachine field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OrganizationUpdateMachineTypeParams) GetToMachineOk() (*string, bool) { + if o == nil || IsNil(o.ToMachine) { + return nil, false + } + return o.ToMachine, true +} + +// HasToMachine returns a boolean if a field has been set. +func (o *V0OrganizationUpdateMachineTypeParams) HasToMachine() bool { + if o != nil && !IsNil(o.ToMachine) { + return true + } + + return false +} + +// SetToMachine gets a reference to the given string and assigns it to the ToMachine field. +func (o *V0OrganizationUpdateMachineTypeParams) SetToMachine(v string) { + o.ToMachine = &v +} + +func (o V0OrganizationUpdateMachineTypeParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0OrganizationUpdateMachineTypeParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.FromMachine) { + toSerialize["from_machine"] = o.FromMachine + } + if !IsNil(o.ToMachine) { + toSerialize["to_machine"] = o.ToMachine + } + return toSerialize, nil +} + +type NullableV0OrganizationUpdateMachineTypeParams struct { + value *V0OrganizationUpdateMachineTypeParams + isSet bool +} + +func (v NullableV0OrganizationUpdateMachineTypeParams) Get() *V0OrganizationUpdateMachineTypeParams { + return v.value +} + +func (v *NullableV0OrganizationUpdateMachineTypeParams) Set(val *V0OrganizationUpdateMachineTypeParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0OrganizationUpdateMachineTypeParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0OrganizationUpdateMachineTypeParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0OrganizationUpdateMachineTypeParams(val *V0OrganizationUpdateMachineTypeParams) *NullableV0OrganizationUpdateMachineTypeParams { + return &NullableV0OrganizationUpdateMachineTypeParams{value: val, isSet: true} +} + +func (v NullableV0OrganizationUpdateMachineTypeParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0OrganizationUpdateMachineTypeParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_organization_update_machine_type_response.go b/go2/model_v0_organization_update_machine_type_response.go new file mode 100644 index 0000000..f9ec5d4 --- /dev/null +++ b/go2/model_v0_organization_update_machine_type_response.go @@ -0,0 +1,201 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0OrganizationUpdateMachineTypeResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0OrganizationUpdateMachineTypeResponse{} + +// V0OrganizationUpdateMachineTypeResponse struct for V0OrganizationUpdateMachineTypeResponse +type V0OrganizationUpdateMachineTypeResponse struct { + Errors []V0OrganizationUpdateMachineTypeResponseErrorsInner `json:"errors,omitempty"` + // The result of the migration + Message *string `json:"message,omitempty"` + // The migrated apps' identifiers in the following format \"#{app.title} (#{app.slug})\" + MigratedApps []string `json:"migrated_apps,omitempty"` +} + +// NewV0OrganizationUpdateMachineTypeResponse instantiates a new V0OrganizationUpdateMachineTypeResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0OrganizationUpdateMachineTypeResponse() *V0OrganizationUpdateMachineTypeResponse { + this := V0OrganizationUpdateMachineTypeResponse{} + return &this +} + +// NewV0OrganizationUpdateMachineTypeResponseWithDefaults instantiates a new V0OrganizationUpdateMachineTypeResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0OrganizationUpdateMachineTypeResponseWithDefaults() *V0OrganizationUpdateMachineTypeResponse { + this := V0OrganizationUpdateMachineTypeResponse{} + return &this +} + +// GetErrors returns the Errors field value if set, zero value otherwise. +func (o *V0OrganizationUpdateMachineTypeResponse) GetErrors() []V0OrganizationUpdateMachineTypeResponseErrorsInner { + if o == nil || IsNil(o.Errors) { + var ret []V0OrganizationUpdateMachineTypeResponseErrorsInner + return ret + } + return o.Errors +} + +// GetErrorsOk returns a tuple with the Errors field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OrganizationUpdateMachineTypeResponse) GetErrorsOk() ([]V0OrganizationUpdateMachineTypeResponseErrorsInner, bool) { + if o == nil || IsNil(o.Errors) { + return nil, false + } + return o.Errors, true +} + +// HasErrors returns a boolean if a field has been set. +func (o *V0OrganizationUpdateMachineTypeResponse) HasErrors() bool { + if o != nil && !IsNil(o.Errors) { + return true + } + + return false +} + +// SetErrors gets a reference to the given []V0OrganizationUpdateMachineTypeResponseErrorsInner and assigns it to the Errors field. +func (o *V0OrganizationUpdateMachineTypeResponse) SetErrors(v []V0OrganizationUpdateMachineTypeResponseErrorsInner) { + o.Errors = v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *V0OrganizationUpdateMachineTypeResponse) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OrganizationUpdateMachineTypeResponse) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *V0OrganizationUpdateMachineTypeResponse) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *V0OrganizationUpdateMachineTypeResponse) SetMessage(v string) { + o.Message = &v +} + +// GetMigratedApps returns the MigratedApps field value if set, zero value otherwise. +func (o *V0OrganizationUpdateMachineTypeResponse) GetMigratedApps() []string { + if o == nil || IsNil(o.MigratedApps) { + var ret []string + return ret + } + return o.MigratedApps +} + +// GetMigratedAppsOk returns a tuple with the MigratedApps field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OrganizationUpdateMachineTypeResponse) GetMigratedAppsOk() ([]string, bool) { + if o == nil || IsNil(o.MigratedApps) { + return nil, false + } + return o.MigratedApps, true +} + +// HasMigratedApps returns a boolean if a field has been set. +func (o *V0OrganizationUpdateMachineTypeResponse) HasMigratedApps() bool { + if o != nil && !IsNil(o.MigratedApps) { + return true + } + + return false +} + +// SetMigratedApps gets a reference to the given []string and assigns it to the MigratedApps field. +func (o *V0OrganizationUpdateMachineTypeResponse) SetMigratedApps(v []string) { + o.MigratedApps = v +} + +func (o V0OrganizationUpdateMachineTypeResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0OrganizationUpdateMachineTypeResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Errors) { + toSerialize["errors"] = o.Errors + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + if !IsNil(o.MigratedApps) { + toSerialize["migrated_apps"] = o.MigratedApps + } + return toSerialize, nil +} + +type NullableV0OrganizationUpdateMachineTypeResponse struct { + value *V0OrganizationUpdateMachineTypeResponse + isSet bool +} + +func (v NullableV0OrganizationUpdateMachineTypeResponse) Get() *V0OrganizationUpdateMachineTypeResponse { + return v.value +} + +func (v *NullableV0OrganizationUpdateMachineTypeResponse) Set(val *V0OrganizationUpdateMachineTypeResponse) { + v.value = val + v.isSet = true +} + +func (v NullableV0OrganizationUpdateMachineTypeResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableV0OrganizationUpdateMachineTypeResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0OrganizationUpdateMachineTypeResponse(val *V0OrganizationUpdateMachineTypeResponse) *NullableV0OrganizationUpdateMachineTypeResponse { + return &NullableV0OrganizationUpdateMachineTypeResponse{value: val, isSet: true} +} + +func (v NullableV0OrganizationUpdateMachineTypeResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0OrganizationUpdateMachineTypeResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_organization_update_machine_type_response_errors_inner.go b/go2/model_v0_organization_update_machine_type_response_errors_inner.go new file mode 100644 index 0000000..c491a7b --- /dev/null +++ b/go2/model_v0_organization_update_machine_type_response_errors_inner.go @@ -0,0 +1,164 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0OrganizationUpdateMachineTypeResponseErrorsInner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0OrganizationUpdateMachineTypeResponseErrorsInner{} + +// V0OrganizationUpdateMachineTypeResponseErrorsInner struct for V0OrganizationUpdateMachineTypeResponseErrorsInner +type V0OrganizationUpdateMachineTypeResponseErrorsInner struct { + // The apps which had an error's identifiers in the following format \"#{app.title} (#{app.slug})\" + App *string `json:"app,omitempty"` + Error *string `json:"error,omitempty"` +} + +// NewV0OrganizationUpdateMachineTypeResponseErrorsInner instantiates a new V0OrganizationUpdateMachineTypeResponseErrorsInner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0OrganizationUpdateMachineTypeResponseErrorsInner() *V0OrganizationUpdateMachineTypeResponseErrorsInner { + this := V0OrganizationUpdateMachineTypeResponseErrorsInner{} + return &this +} + +// NewV0OrganizationUpdateMachineTypeResponseErrorsInnerWithDefaults instantiates a new V0OrganizationUpdateMachineTypeResponseErrorsInner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0OrganizationUpdateMachineTypeResponseErrorsInnerWithDefaults() *V0OrganizationUpdateMachineTypeResponseErrorsInner { + this := V0OrganizationUpdateMachineTypeResponseErrorsInner{} + return &this +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *V0OrganizationUpdateMachineTypeResponseErrorsInner) 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 *V0OrganizationUpdateMachineTypeResponseErrorsInner) 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 *V0OrganizationUpdateMachineTypeResponseErrorsInner) 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 *V0OrganizationUpdateMachineTypeResponseErrorsInner) SetApp(v string) { + o.App = &v +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *V0OrganizationUpdateMachineTypeResponseErrorsInner) 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 *V0OrganizationUpdateMachineTypeResponseErrorsInner) 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 *V0OrganizationUpdateMachineTypeResponseErrorsInner) 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 *V0OrganizationUpdateMachineTypeResponseErrorsInner) SetError(v string) { + o.Error = &v +} + +func (o V0OrganizationUpdateMachineTypeResponseErrorsInner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0OrganizationUpdateMachineTypeResponseErrorsInner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +type NullableV0OrganizationUpdateMachineTypeResponseErrorsInner struct { + value *V0OrganizationUpdateMachineTypeResponseErrorsInner + isSet bool +} + +func (v NullableV0OrganizationUpdateMachineTypeResponseErrorsInner) Get() *V0OrganizationUpdateMachineTypeResponseErrorsInner { + return v.value +} + +func (v *NullableV0OrganizationUpdateMachineTypeResponseErrorsInner) Set(val *V0OrganizationUpdateMachineTypeResponseErrorsInner) { + v.value = val + v.isSet = true +} + +func (v NullableV0OrganizationUpdateMachineTypeResponseErrorsInner) IsSet() bool { + return v.isSet +} + +func (v *NullableV0OrganizationUpdateMachineTypeResponseErrorsInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0OrganizationUpdateMachineTypeResponseErrorsInner(val *V0OrganizationUpdateMachineTypeResponseErrorsInner) *NullableV0OrganizationUpdateMachineTypeResponseErrorsInner { + return &NullableV0OrganizationUpdateMachineTypeResponseErrorsInner{value: val, isSet: true} +} + +func (v NullableV0OrganizationUpdateMachineTypeResponseErrorsInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0OrganizationUpdateMachineTypeResponseErrorsInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_owner_account_response_model.go b/go2/model_v0_owner_account_response_model.go new file mode 100644 index 0000000..c28cb09 --- /dev/null +++ b/go2/model_v0_owner_account_response_model.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0OwnerAccountResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0OwnerAccountResponseModel{} + +// V0OwnerAccountResponseModel struct for V0OwnerAccountResponseModel +type V0OwnerAccountResponseModel struct { + AccountType *string `json:"account_type,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` +} + +// NewV0OwnerAccountResponseModel instantiates a new V0OwnerAccountResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0OwnerAccountResponseModel() *V0OwnerAccountResponseModel { + this := V0OwnerAccountResponseModel{} + return &this +} + +// NewV0OwnerAccountResponseModelWithDefaults instantiates a new V0OwnerAccountResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0OwnerAccountResponseModelWithDefaults() *V0OwnerAccountResponseModel { + this := V0OwnerAccountResponseModel{} + return &this +} + +// GetAccountType returns the AccountType field value if set, zero value otherwise. +func (o *V0OwnerAccountResponseModel) GetAccountType() string { + if o == nil || IsNil(o.AccountType) { + var ret string + return ret + } + return *o.AccountType +} + +// GetAccountTypeOk returns a tuple with the AccountType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OwnerAccountResponseModel) GetAccountTypeOk() (*string, bool) { + if o == nil || IsNil(o.AccountType) { + return nil, false + } + return o.AccountType, true +} + +// HasAccountType returns a boolean if a field has been set. +func (o *V0OwnerAccountResponseModel) HasAccountType() bool { + if o != nil && !IsNil(o.AccountType) { + return true + } + + return false +} + +// SetAccountType gets a reference to the given string and assigns it to the AccountType field. +func (o *V0OwnerAccountResponseModel) SetAccountType(v string) { + o.AccountType = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V0OwnerAccountResponseModel) 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 *V0OwnerAccountResponseModel) 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 *V0OwnerAccountResponseModel) 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 *V0OwnerAccountResponseModel) SetName(v string) { + o.Name = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0OwnerAccountResponseModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OwnerAccountResponseModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0OwnerAccountResponseModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0OwnerAccountResponseModel) SetSlug(v string) { + o.Slug = &v +} + +func (o V0OwnerAccountResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0OwnerAccountResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AccountType) { + toSerialize["account_type"] = o.AccountType + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + return toSerialize, nil +} + +type NullableV0OwnerAccountResponseModel struct { + value *V0OwnerAccountResponseModel + isSet bool +} + +func (v NullableV0OwnerAccountResponseModel) Get() *V0OwnerAccountResponseModel { + return v.value +} + +func (v *NullableV0OwnerAccountResponseModel) Set(val *V0OwnerAccountResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0OwnerAccountResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0OwnerAccountResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0OwnerAccountResponseModel(val *V0OwnerAccountResponseModel) *NullableV0OwnerAccountResponseModel { + return &NullableV0OwnerAccountResponseModel{value: val, isSet: true} +} + +func (v NullableV0OwnerAccountResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0OwnerAccountResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_owner_add_on_response_item_model.go b/go2/model_v0_owner_add_on_response_item_model.go new file mode 100644 index 0000000..e2eb76b --- /dev/null +++ b/go2/model_v0_owner_add_on_response_item_model.go @@ -0,0 +1,379 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0OwnerAddOnResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0OwnerAddOnResponseItemModel{} + +// V0OwnerAddOnResponseItemModel struct for V0OwnerAddOnResponseItemModel +type V0OwnerAddOnResponseItemModel struct { + Apps []V0AddOnAppResponseItemModel `json:"apps,omitempty"` + DocumentationUrl *string `json:"documentation_url,omitempty"` + HasUi *bool `json:"has_ui,omitempty"` + Icon *string `json:"icon,omitempty"` + Id *string `json:"id,omitempty"` + IsBeta *bool `json:"is_beta,omitempty"` + Summary *string `json:"summary,omitempty"` + Title *string `json:"title,omitempty"` +} + +// NewV0OwnerAddOnResponseItemModel instantiates a new V0OwnerAddOnResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0OwnerAddOnResponseItemModel() *V0OwnerAddOnResponseItemModel { + this := V0OwnerAddOnResponseItemModel{} + return &this +} + +// NewV0OwnerAddOnResponseItemModelWithDefaults instantiates a new V0OwnerAddOnResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0OwnerAddOnResponseItemModelWithDefaults() *V0OwnerAddOnResponseItemModel { + this := V0OwnerAddOnResponseItemModel{} + return &this +} + +// GetApps returns the Apps field value if set, zero value otherwise. +func (o *V0OwnerAddOnResponseItemModel) GetApps() []V0AddOnAppResponseItemModel { + if o == nil || IsNil(o.Apps) { + var ret []V0AddOnAppResponseItemModel + 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 *V0OwnerAddOnResponseItemModel) GetAppsOk() ([]V0AddOnAppResponseItemModel, 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 *V0OwnerAddOnResponseItemModel) HasApps() bool { + if o != nil && !IsNil(o.Apps) { + return true + } + + return false +} + +// SetApps gets a reference to the given []V0AddOnAppResponseItemModel and assigns it to the Apps field. +func (o *V0OwnerAddOnResponseItemModel) SetApps(v []V0AddOnAppResponseItemModel) { + o.Apps = v +} + +// GetDocumentationUrl returns the DocumentationUrl field value if set, zero value otherwise. +func (o *V0OwnerAddOnResponseItemModel) 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 *V0OwnerAddOnResponseItemModel) 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 *V0OwnerAddOnResponseItemModel) 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 *V0OwnerAddOnResponseItemModel) SetDocumentationUrl(v string) { + o.DocumentationUrl = &v +} + +// GetHasUi returns the HasUi field value if set, zero value otherwise. +func (o *V0OwnerAddOnResponseItemModel) GetHasUi() bool { + if o == nil || IsNil(o.HasUi) { + var ret bool + return ret + } + return *o.HasUi +} + +// GetHasUiOk returns a tuple with the HasUi field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OwnerAddOnResponseItemModel) GetHasUiOk() (*bool, bool) { + if o == nil || IsNil(o.HasUi) { + return nil, false + } + return o.HasUi, true +} + +// HasHasUi returns a boolean if a field has been set. +func (o *V0OwnerAddOnResponseItemModel) HasHasUi() bool { + if o != nil && !IsNil(o.HasUi) { + return true + } + + return false +} + +// SetHasUi gets a reference to the given bool and assigns it to the HasUi field. +func (o *V0OwnerAddOnResponseItemModel) SetHasUi(v bool) { + o.HasUi = &v +} + +// GetIcon returns the Icon field value if set, zero value otherwise. +func (o *V0OwnerAddOnResponseItemModel) GetIcon() string { + if o == nil || IsNil(o.Icon) { + var ret string + return ret + } + return *o.Icon +} + +// GetIconOk returns a tuple with the Icon field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OwnerAddOnResponseItemModel) GetIconOk() (*string, bool) { + if o == nil || IsNil(o.Icon) { + return nil, false + } + return o.Icon, true +} + +// HasIcon returns a boolean if a field has been set. +func (o *V0OwnerAddOnResponseItemModel) HasIcon() bool { + if o != nil && !IsNil(o.Icon) { + return true + } + + return false +} + +// SetIcon gets a reference to the given string and assigns it to the Icon field. +func (o *V0OwnerAddOnResponseItemModel) SetIcon(v string) { + o.Icon = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *V0OwnerAddOnResponseItemModel) 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 *V0OwnerAddOnResponseItemModel) 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 *V0OwnerAddOnResponseItemModel) 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 *V0OwnerAddOnResponseItemModel) SetId(v string) { + o.Id = &v +} + +// GetIsBeta returns the IsBeta field value if set, zero value otherwise. +func (o *V0OwnerAddOnResponseItemModel) GetIsBeta() bool { + if o == nil || IsNil(o.IsBeta) { + var ret bool + return ret + } + return *o.IsBeta +} + +// GetIsBetaOk returns a tuple with the IsBeta field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OwnerAddOnResponseItemModel) GetIsBetaOk() (*bool, bool) { + if o == nil || IsNil(o.IsBeta) { + return nil, false + } + return o.IsBeta, true +} + +// HasIsBeta returns a boolean if a field has been set. +func (o *V0OwnerAddOnResponseItemModel) HasIsBeta() bool { + if o != nil && !IsNil(o.IsBeta) { + return true + } + + return false +} + +// SetIsBeta gets a reference to the given bool and assigns it to the IsBeta field. +func (o *V0OwnerAddOnResponseItemModel) SetIsBeta(v bool) { + o.IsBeta = &v +} + +// GetSummary returns the Summary field value if set, zero value otherwise. +func (o *V0OwnerAddOnResponseItemModel) GetSummary() string { + if o == nil || IsNil(o.Summary) { + var ret string + return ret + } + return *o.Summary +} + +// GetSummaryOk returns a tuple with the Summary field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OwnerAddOnResponseItemModel) GetSummaryOk() (*string, bool) { + if o == nil || IsNil(o.Summary) { + return nil, false + } + return o.Summary, true +} + +// HasSummary returns a boolean if a field has been set. +func (o *V0OwnerAddOnResponseItemModel) HasSummary() bool { + if o != nil && !IsNil(o.Summary) { + return true + } + + return false +} + +// SetSummary gets a reference to the given string and assigns it to the Summary field. +func (o *V0OwnerAddOnResponseItemModel) SetSummary(v string) { + o.Summary = &v +} + +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *V0OwnerAddOnResponseItemModel) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0OwnerAddOnResponseItemModel) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *V0OwnerAddOnResponseItemModel) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *V0OwnerAddOnResponseItemModel) SetTitle(v string) { + o.Title = &v +} + +func (o V0OwnerAddOnResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0OwnerAddOnResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Apps) { + toSerialize["apps"] = o.Apps + } + if !IsNil(o.DocumentationUrl) { + toSerialize["documentation_url"] = o.DocumentationUrl + } + if !IsNil(o.HasUi) { + toSerialize["has_ui"] = o.HasUi + } + if !IsNil(o.Icon) { + toSerialize["icon"] = o.Icon + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.IsBeta) { + toSerialize["is_beta"] = o.IsBeta + } + if !IsNil(o.Summary) { + toSerialize["summary"] = o.Summary + } + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + return toSerialize, nil +} + +type NullableV0OwnerAddOnResponseItemModel struct { + value *V0OwnerAddOnResponseItemModel + isSet bool +} + +func (v NullableV0OwnerAddOnResponseItemModel) Get() *V0OwnerAddOnResponseItemModel { + return v.value +} + +func (v *NullableV0OwnerAddOnResponseItemModel) Set(val *V0OwnerAddOnResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0OwnerAddOnResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0OwnerAddOnResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0OwnerAddOnResponseItemModel(val *V0OwnerAddOnResponseItemModel) *NullableV0OwnerAddOnResponseItemModel { + return &NullableV0OwnerAddOnResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0OwnerAddOnResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0OwnerAddOnResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_owner_add_ons_list_response_model.go b/go2/model_v0_owner_add_ons_list_response_model.go new file mode 100644 index 0000000..e598609 --- /dev/null +++ b/go2/model_v0_owner_add_ons_list_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0OwnerAddOnsListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0OwnerAddOnsListResponseModel{} + +// V0OwnerAddOnsListResponseModel struct for V0OwnerAddOnsListResponseModel +type V0OwnerAddOnsListResponseModel struct { + Data []V0OwnerAddOnResponseItemModel `json:"data,omitempty"` +} + +// NewV0OwnerAddOnsListResponseModel instantiates a new V0OwnerAddOnsListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0OwnerAddOnsListResponseModel() *V0OwnerAddOnsListResponseModel { + this := V0OwnerAddOnsListResponseModel{} + return &this +} + +// NewV0OwnerAddOnsListResponseModelWithDefaults instantiates a new V0OwnerAddOnsListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0OwnerAddOnsListResponseModelWithDefaults() *V0OwnerAddOnsListResponseModel { + this := V0OwnerAddOnsListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0OwnerAddOnsListResponseModel) GetData() []V0OwnerAddOnResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0OwnerAddOnResponseItemModel + 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 *V0OwnerAddOnsListResponseModel) GetDataOk() ([]V0OwnerAddOnResponseItemModel, 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 *V0OwnerAddOnsListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0OwnerAddOnResponseItemModel and assigns it to the Data field. +func (o *V0OwnerAddOnsListResponseModel) SetData(v []V0OwnerAddOnResponseItemModel) { + o.Data = v +} + +func (o V0OwnerAddOnsListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0OwnerAddOnsListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0OwnerAddOnsListResponseModel struct { + value *V0OwnerAddOnsListResponseModel + isSet bool +} + +func (v NullableV0OwnerAddOnsListResponseModel) Get() *V0OwnerAddOnsListResponseModel { + return v.value +} + +func (v *NullableV0OwnerAddOnsListResponseModel) Set(val *V0OwnerAddOnsListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0OwnerAddOnsListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0OwnerAddOnsListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0OwnerAddOnsListResponseModel(val *V0OwnerAddOnsListResponseModel) *NullableV0OwnerAddOnsListResponseModel { + return &NullableV0OwnerAddOnsListResponseModel{value: val, isSet: true} +} + +func (v NullableV0OwnerAddOnsListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0OwnerAddOnsListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_paging_response_model.go b/go2/model_v0_paging_response_model.go new file mode 100644 index 0000000..a2f6261 --- /dev/null +++ b/go2/model_v0_paging_response_model.go @@ -0,0 +1,202 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PagingResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PagingResponseModel{} + +// V0PagingResponseModel struct for V0PagingResponseModel +type V0PagingResponseModel struct { + // Next is the \"anchor\" for pagination. This value should be passed to the same endpoint to get the next page. Empty/not included if there's no \"next\" page. Stop paging when there's no \"Next\" item in the response! + Next *string `json:"next,omitempty"` + // PageItemLimit - per-page item count. A given page might include less items if there's not enough items. This value is the \"max item count per page\". + PageItemLimit *int32 `json:"page_item_limit,omitempty"` + // TotalItemCount - total item count, through \"all pages\" + TotalItemCount *int32 `json:"total_item_count,omitempty"` +} + +// NewV0PagingResponseModel instantiates a new V0PagingResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PagingResponseModel() *V0PagingResponseModel { + this := V0PagingResponseModel{} + return &this +} + +// NewV0PagingResponseModelWithDefaults instantiates a new V0PagingResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PagingResponseModelWithDefaults() *V0PagingResponseModel { + this := V0PagingResponseModel{} + return &this +} + +// GetNext returns the Next field value if set, zero value otherwise. +func (o *V0PagingResponseModel) GetNext() string { + if o == nil || IsNil(o.Next) { + var ret string + 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 *V0PagingResponseModel) GetNextOk() (*string, 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 *V0PagingResponseModel) HasNext() bool { + if o != nil && !IsNil(o.Next) { + return true + } + + return false +} + +// SetNext gets a reference to the given string and assigns it to the Next field. +func (o *V0PagingResponseModel) SetNext(v string) { + o.Next = &v +} + +// GetPageItemLimit returns the PageItemLimit field value if set, zero value otherwise. +func (o *V0PagingResponseModel) GetPageItemLimit() int32 { + if o == nil || IsNil(o.PageItemLimit) { + var ret int32 + return ret + } + return *o.PageItemLimit +} + +// GetPageItemLimitOk returns a tuple with the PageItemLimit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PagingResponseModel) GetPageItemLimitOk() (*int32, bool) { + if o == nil || IsNil(o.PageItemLimit) { + return nil, false + } + return o.PageItemLimit, true +} + +// HasPageItemLimit returns a boolean if a field has been set. +func (o *V0PagingResponseModel) HasPageItemLimit() bool { + if o != nil && !IsNil(o.PageItemLimit) { + return true + } + + return false +} + +// SetPageItemLimit gets a reference to the given int32 and assigns it to the PageItemLimit field. +func (o *V0PagingResponseModel) SetPageItemLimit(v int32) { + o.PageItemLimit = &v +} + +// GetTotalItemCount returns the TotalItemCount field value if set, zero value otherwise. +func (o *V0PagingResponseModel) GetTotalItemCount() int32 { + if o == nil || IsNil(o.TotalItemCount) { + var ret int32 + return ret + } + return *o.TotalItemCount +} + +// GetTotalItemCountOk returns a tuple with the TotalItemCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PagingResponseModel) GetTotalItemCountOk() (*int32, bool) { + if o == nil || IsNil(o.TotalItemCount) { + return nil, false + } + return o.TotalItemCount, true +} + +// HasTotalItemCount returns a boolean if a field has been set. +func (o *V0PagingResponseModel) HasTotalItemCount() bool { + if o != nil && !IsNil(o.TotalItemCount) { + return true + } + + return false +} + +// SetTotalItemCount gets a reference to the given int32 and assigns it to the TotalItemCount field. +func (o *V0PagingResponseModel) SetTotalItemCount(v int32) { + o.TotalItemCount = &v +} + +func (o V0PagingResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PagingResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Next) { + toSerialize["next"] = o.Next + } + if !IsNil(o.PageItemLimit) { + toSerialize["page_item_limit"] = o.PageItemLimit + } + if !IsNil(o.TotalItemCount) { + toSerialize["total_item_count"] = o.TotalItemCount + } + return toSerialize, nil +} + +type NullableV0PagingResponseModel struct { + value *V0PagingResponseModel + isSet bool +} + +func (v NullableV0PagingResponseModel) Get() *V0PagingResponseModel { + return v.value +} + +func (v *NullableV0PagingResponseModel) Set(val *V0PagingResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PagingResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PagingResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PagingResponseModel(val *V0PagingResponseModel) *NullableV0PagingResponseModel { + return &NullableV0PagingResponseModel{value: val, isSet: true} +} + +func (v NullableV0PagingResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PagingResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_abort_params.go b/go2/model_v0_pipeline_abort_params.go new file mode 100644 index 0000000..7509442 --- /dev/null +++ b/go2/model_v0_pipeline_abort_params.go @@ -0,0 +1,212 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0PipelineAbortParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineAbortParams{} + +// V0PipelineAbortParams struct for V0PipelineAbortParams +type V0PipelineAbortParams struct { + AbortReason string `json:"abort_reason"` + AbortWithSuccess bool `json:"abort_with_success"` + SkipNotifications bool `json:"skip_notifications"` +} + +type _V0PipelineAbortParams V0PipelineAbortParams + +// NewV0PipelineAbortParams instantiates a new V0PipelineAbortParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineAbortParams(abortReason string, abortWithSuccess bool, skipNotifications bool) *V0PipelineAbortParams { + this := V0PipelineAbortParams{} + this.AbortReason = abortReason + this.AbortWithSuccess = abortWithSuccess + this.SkipNotifications = skipNotifications + return &this +} + +// NewV0PipelineAbortParamsWithDefaults instantiates a new V0PipelineAbortParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineAbortParamsWithDefaults() *V0PipelineAbortParams { + this := V0PipelineAbortParams{} + return &this +} + +// GetAbortReason returns the AbortReason field value +func (o *V0PipelineAbortParams) GetAbortReason() string { + if o == nil { + var ret string + return ret + } + + return o.AbortReason +} + +// GetAbortReasonOk returns a tuple with the AbortReason field value +// and a boolean to check if the value has been set. +func (o *V0PipelineAbortParams) GetAbortReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AbortReason, true +} + +// SetAbortReason sets field value +func (o *V0PipelineAbortParams) SetAbortReason(v string) { + o.AbortReason = v +} + +// GetAbortWithSuccess returns the AbortWithSuccess field value +func (o *V0PipelineAbortParams) GetAbortWithSuccess() bool { + if o == nil { + var ret bool + return ret + } + + return o.AbortWithSuccess +} + +// GetAbortWithSuccessOk returns a tuple with the AbortWithSuccess field value +// and a boolean to check if the value has been set. +func (o *V0PipelineAbortParams) GetAbortWithSuccessOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.AbortWithSuccess, true +} + +// SetAbortWithSuccess sets field value +func (o *V0PipelineAbortParams) SetAbortWithSuccess(v bool) { + o.AbortWithSuccess = v +} + +// GetSkipNotifications returns the SkipNotifications field value +func (o *V0PipelineAbortParams) GetSkipNotifications() bool { + if o == nil { + var ret bool + return ret + } + + return o.SkipNotifications +} + +// GetSkipNotificationsOk returns a tuple with the SkipNotifications field value +// and a boolean to check if the value has been set. +func (o *V0PipelineAbortParams) GetSkipNotificationsOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.SkipNotifications, true +} + +// SetSkipNotifications sets field value +func (o *V0PipelineAbortParams) SetSkipNotifications(v bool) { + o.SkipNotifications = v +} + +func (o V0PipelineAbortParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineAbortParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["abort_reason"] = o.AbortReason + toSerialize["abort_with_success"] = o.AbortWithSuccess + toSerialize["skip_notifications"] = o.SkipNotifications + return toSerialize, nil +} + +func (o *V0PipelineAbortParams) UnmarshalJSON(bytes []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{ + "abort_reason", + "abort_with_success", + "skip_notifications", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0PipelineAbortParams := _V0PipelineAbortParams{} + + err = json.Unmarshal(bytes, &varV0PipelineAbortParams) + + if err != nil { + return err + } + + *o = V0PipelineAbortParams(varV0PipelineAbortParams) + + return err +} + +type NullableV0PipelineAbortParams struct { + value *V0PipelineAbortParams + isSet bool +} + +func (v NullableV0PipelineAbortParams) Get() *V0PipelineAbortParams { + return v.value +} + +func (v *NullableV0PipelineAbortParams) Set(val *V0PipelineAbortParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineAbortParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineAbortParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineAbortParams(val *V0PipelineAbortParams) *NullableV0PipelineAbortParams { + return &NullableV0PipelineAbortParams{value: val, isSet: true} +} + +func (v NullableV0PipelineAbortParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineAbortParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_list_all_response_item_model.go b/go2/model_v0_pipeline_list_all_response_item_model.go new file mode 100644 index 0000000..d5fcf75 --- /dev/null +++ b/go2/model_v0_pipeline_list_all_response_item_model.go @@ -0,0 +1,775 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PipelineListAllResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineListAllResponseItemModel{} + +// V0PipelineListAllResponseItemModel struct for V0PipelineListAllResponseItemModel +type V0PipelineListAllResponseItemModel struct { + Branch *NullsString `json:"branch,omitempty"` + BuildNumber *int32 `json:"build_number,omitempty"` + CommitHash *NullsString `json:"commit_hash,omitempty"` + CommitMessage *NullsString `json:"commit_message,omitempty"` + CreditCost *NullsInt64 `json:"credit_cost,omitempty"` + FinishedAt *string `json:"finished_at,omitempty"` + IsOnHold *bool `json:"is_on_hold,omitempty"` + IsPipeline *bool `json:"is_pipeline,omitempty"` + IsProcessed *bool `json:"is_processed,omitempty"` + PullRequestId *int32 `json:"pull_request_id,omitempty"` + PullRequestTargetBranch *NullsString `json:"pull_request_target_branch,omitempty"` + Repository *V0AppResponseItemModel `json:"repository,omitempty"` + Slug *string `json:"slug,omitempty"` + StartedAt *string `json:"started_at,omitempty"` + Status *int32 `json:"status,omitempty"` + Tag *NullsString `json:"tag,omitempty"` + TriggeredAt *string `json:"triggered_at,omitempty"` + TriggeredBy *NullsString `json:"triggered_by,omitempty"` + TriggeredWorkflow *string `json:"triggered_workflow,omitempty"` +} + +// NewV0PipelineListAllResponseItemModel instantiates a new V0PipelineListAllResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineListAllResponseItemModel() *V0PipelineListAllResponseItemModel { + this := V0PipelineListAllResponseItemModel{} + return &this +} + +// NewV0PipelineListAllResponseItemModelWithDefaults instantiates a new V0PipelineListAllResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineListAllResponseItemModelWithDefaults() *V0PipelineListAllResponseItemModel { + this := V0PipelineListAllResponseItemModel{} + return &this +} + +// GetBranch returns the Branch field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetBranch() NullsString { + if o == nil || IsNil(o.Branch) { + var ret NullsString + return ret + } + return *o.Branch +} + +// GetBranchOk returns a tuple with the Branch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetBranchOk() (*NullsString, bool) { + if o == nil || IsNil(o.Branch) { + return nil, false + } + return o.Branch, true +} + +// HasBranch returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasBranch() bool { + if o != nil && !IsNil(o.Branch) { + return true + } + + return false +} + +// SetBranch gets a reference to the given NullsString and assigns it to the Branch field. +func (o *V0PipelineListAllResponseItemModel) SetBranch(v NullsString) { + o.Branch = &v +} + +// GetBuildNumber returns the BuildNumber field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetBuildNumber() int32 { + if o == nil || IsNil(o.BuildNumber) { + var ret int32 + return ret + } + return *o.BuildNumber +} + +// GetBuildNumberOk returns a tuple with the BuildNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetBuildNumberOk() (*int32, bool) { + if o == nil || IsNil(o.BuildNumber) { + return nil, false + } + return o.BuildNumber, true +} + +// HasBuildNumber returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasBuildNumber() bool { + if o != nil && !IsNil(o.BuildNumber) { + return true + } + + return false +} + +// SetBuildNumber gets a reference to the given int32 and assigns it to the BuildNumber field. +func (o *V0PipelineListAllResponseItemModel) SetBuildNumber(v int32) { + o.BuildNumber = &v +} + +// GetCommitHash returns the CommitHash field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetCommitHash() NullsString { + if o == nil || IsNil(o.CommitHash) { + var ret NullsString + return ret + } + return *o.CommitHash +} + +// GetCommitHashOk returns a tuple with the CommitHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetCommitHashOk() (*NullsString, bool) { + if o == nil || IsNil(o.CommitHash) { + return nil, false + } + return o.CommitHash, true +} + +// HasCommitHash returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasCommitHash() bool { + if o != nil && !IsNil(o.CommitHash) { + return true + } + + return false +} + +// SetCommitHash gets a reference to the given NullsString and assigns it to the CommitHash field. +func (o *V0PipelineListAllResponseItemModel) SetCommitHash(v NullsString) { + o.CommitHash = &v +} + +// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetCommitMessage() NullsString { + if o == nil || IsNil(o.CommitMessage) { + var ret NullsString + return ret + } + return *o.CommitMessage +} + +// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetCommitMessageOk() (*NullsString, bool) { + if o == nil || IsNil(o.CommitMessage) { + return nil, false + } + return o.CommitMessage, true +} + +// HasCommitMessage returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasCommitMessage() bool { + if o != nil && !IsNil(o.CommitMessage) { + return true + } + + return false +} + +// SetCommitMessage gets a reference to the given NullsString and assigns it to the CommitMessage field. +func (o *V0PipelineListAllResponseItemModel) SetCommitMessage(v NullsString) { + o.CommitMessage = &v +} + +// GetCreditCost returns the CreditCost field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetCreditCost() NullsInt64 { + if o == nil || IsNil(o.CreditCost) { + var ret NullsInt64 + return ret + } + return *o.CreditCost +} + +// GetCreditCostOk returns a tuple with the CreditCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetCreditCostOk() (*NullsInt64, bool) { + if o == nil || IsNil(o.CreditCost) { + return nil, false + } + return o.CreditCost, true +} + +// HasCreditCost returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasCreditCost() bool { + if o != nil && !IsNil(o.CreditCost) { + return true + } + + return false +} + +// SetCreditCost gets a reference to the given NullsInt64 and assigns it to the CreditCost field. +func (o *V0PipelineListAllResponseItemModel) SetCreditCost(v NullsInt64) { + o.CreditCost = &v +} + +// GetFinishedAt returns the FinishedAt field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetFinishedAt() string { + if o == nil || IsNil(o.FinishedAt) { + var ret string + return ret + } + return *o.FinishedAt +} + +// GetFinishedAtOk returns a tuple with the FinishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetFinishedAtOk() (*string, bool) { + if o == nil || IsNil(o.FinishedAt) { + return nil, false + } + return o.FinishedAt, true +} + +// HasFinishedAt returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasFinishedAt() bool { + if o != nil && !IsNil(o.FinishedAt) { + return true + } + + return false +} + +// SetFinishedAt gets a reference to the given string and assigns it to the FinishedAt field. +func (o *V0PipelineListAllResponseItemModel) SetFinishedAt(v string) { + o.FinishedAt = &v +} + +// GetIsOnHold returns the IsOnHold field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetIsOnHold() bool { + if o == nil || IsNil(o.IsOnHold) { + var ret bool + return ret + } + return *o.IsOnHold +} + +// GetIsOnHoldOk returns a tuple with the IsOnHold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetIsOnHoldOk() (*bool, bool) { + if o == nil || IsNil(o.IsOnHold) { + return nil, false + } + return o.IsOnHold, true +} + +// HasIsOnHold returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasIsOnHold() bool { + if o != nil && !IsNil(o.IsOnHold) { + return true + } + + return false +} + +// SetIsOnHold gets a reference to the given bool and assigns it to the IsOnHold field. +func (o *V0PipelineListAllResponseItemModel) SetIsOnHold(v bool) { + o.IsOnHold = &v +} + +// GetIsPipeline returns the IsPipeline field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetIsPipeline() bool { + if o == nil || IsNil(o.IsPipeline) { + var ret bool + return ret + } + return *o.IsPipeline +} + +// GetIsPipelineOk returns a tuple with the IsPipeline field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetIsPipelineOk() (*bool, bool) { + if o == nil || IsNil(o.IsPipeline) { + return nil, false + } + return o.IsPipeline, true +} + +// HasIsPipeline returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasIsPipeline() bool { + if o != nil && !IsNil(o.IsPipeline) { + return true + } + + return false +} + +// SetIsPipeline gets a reference to the given bool and assigns it to the IsPipeline field. +func (o *V0PipelineListAllResponseItemModel) SetIsPipeline(v bool) { + o.IsPipeline = &v +} + +// GetIsProcessed returns the IsProcessed field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetIsProcessed() bool { + if o == nil || IsNil(o.IsProcessed) { + var ret bool + return ret + } + return *o.IsProcessed +} + +// GetIsProcessedOk returns a tuple with the IsProcessed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetIsProcessedOk() (*bool, bool) { + if o == nil || IsNil(o.IsProcessed) { + return nil, false + } + return o.IsProcessed, true +} + +// HasIsProcessed returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasIsProcessed() bool { + if o != nil && !IsNil(o.IsProcessed) { + return true + } + + return false +} + +// SetIsProcessed gets a reference to the given bool and assigns it to the IsProcessed field. +func (o *V0PipelineListAllResponseItemModel) SetIsProcessed(v bool) { + o.IsProcessed = &v +} + +// GetPullRequestId returns the PullRequestId field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetPullRequestId() int32 { + if o == nil || IsNil(o.PullRequestId) { + var ret int32 + return ret + } + return *o.PullRequestId +} + +// GetPullRequestIdOk returns a tuple with the PullRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetPullRequestIdOk() (*int32, bool) { + if o == nil || IsNil(o.PullRequestId) { + return nil, false + } + return o.PullRequestId, true +} + +// HasPullRequestId returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasPullRequestId() bool { + if o != nil && !IsNil(o.PullRequestId) { + return true + } + + return false +} + +// SetPullRequestId gets a reference to the given int32 and assigns it to the PullRequestId field. +func (o *V0PipelineListAllResponseItemModel) SetPullRequestId(v int32) { + o.PullRequestId = &v +} + +// GetPullRequestTargetBranch returns the PullRequestTargetBranch field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetPullRequestTargetBranch() NullsString { + if o == nil || IsNil(o.PullRequestTargetBranch) { + var ret NullsString + return ret + } + return *o.PullRequestTargetBranch +} + +// GetPullRequestTargetBranchOk returns a tuple with the PullRequestTargetBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetPullRequestTargetBranchOk() (*NullsString, bool) { + if o == nil || IsNil(o.PullRequestTargetBranch) { + return nil, false + } + return o.PullRequestTargetBranch, true +} + +// HasPullRequestTargetBranch returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasPullRequestTargetBranch() bool { + if o != nil && !IsNil(o.PullRequestTargetBranch) { + return true + } + + return false +} + +// SetPullRequestTargetBranch gets a reference to the given NullsString and assigns it to the PullRequestTargetBranch field. +func (o *V0PipelineListAllResponseItemModel) SetPullRequestTargetBranch(v NullsString) { + o.PullRequestTargetBranch = &v +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetRepository() V0AppResponseItemModel { + if o == nil || IsNil(o.Repository) { + var ret V0AppResponseItemModel + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetRepositoryOk() (*V0AppResponseItemModel, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given V0AppResponseItemModel and assigns it to the Repository field. +func (o *V0PipelineListAllResponseItemModel) SetRepository(v V0AppResponseItemModel) { + o.Repository = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0PipelineListAllResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetStartedAt returns the StartedAt field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetStartedAt() string { + if o == nil || IsNil(o.StartedAt) { + var ret string + return ret + } + return *o.StartedAt +} + +// GetStartedAtOk returns a tuple with the StartedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetStartedAtOk() (*string, bool) { + if o == nil || IsNil(o.StartedAt) { + return nil, false + } + return o.StartedAt, true +} + +// HasStartedAt returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasStartedAt() bool { + if o != nil && !IsNil(o.StartedAt) { + return true + } + + return false +} + +// SetStartedAt gets a reference to the given string and assigns it to the StartedAt field. +func (o *V0PipelineListAllResponseItemModel) SetStartedAt(v string) { + o.StartedAt = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetStatusOk() (*int32, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *V0PipelineListAllResponseItemModel) SetStatus(v int32) { + o.Status = &v +} + +// GetTag returns the Tag field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetTag() NullsString { + if o == nil || IsNil(o.Tag) { + var ret NullsString + return ret + } + return *o.Tag +} + +// GetTagOk returns a tuple with the Tag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetTagOk() (*NullsString, bool) { + if o == nil || IsNil(o.Tag) { + return nil, false + } + return o.Tag, true +} + +// HasTag returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasTag() bool { + if o != nil && !IsNil(o.Tag) { + return true + } + + return false +} + +// SetTag gets a reference to the given NullsString and assigns it to the Tag field. +func (o *V0PipelineListAllResponseItemModel) SetTag(v NullsString) { + o.Tag = &v +} + +// GetTriggeredAt returns the TriggeredAt field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetTriggeredAt() string { + if o == nil || IsNil(o.TriggeredAt) { + var ret string + return ret + } + return *o.TriggeredAt +} + +// GetTriggeredAtOk returns a tuple with the TriggeredAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetTriggeredAtOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredAt) { + return nil, false + } + return o.TriggeredAt, true +} + +// HasTriggeredAt returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasTriggeredAt() bool { + if o != nil && !IsNil(o.TriggeredAt) { + return true + } + + return false +} + +// SetTriggeredAt gets a reference to the given string and assigns it to the TriggeredAt field. +func (o *V0PipelineListAllResponseItemModel) SetTriggeredAt(v string) { + o.TriggeredAt = &v +} + +// GetTriggeredBy returns the TriggeredBy field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetTriggeredBy() NullsString { + if o == nil || IsNil(o.TriggeredBy) { + var ret NullsString + return ret + } + return *o.TriggeredBy +} + +// GetTriggeredByOk returns a tuple with the TriggeredBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetTriggeredByOk() (*NullsString, bool) { + if o == nil || IsNil(o.TriggeredBy) { + return nil, false + } + return o.TriggeredBy, true +} + +// HasTriggeredBy returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasTriggeredBy() bool { + if o != nil && !IsNil(o.TriggeredBy) { + return true + } + + return false +} + +// SetTriggeredBy gets a reference to the given NullsString and assigns it to the TriggeredBy field. +func (o *V0PipelineListAllResponseItemModel) SetTriggeredBy(v NullsString) { + o.TriggeredBy = &v +} + +// GetTriggeredWorkflow returns the TriggeredWorkflow field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseItemModel) GetTriggeredWorkflow() string { + if o == nil || IsNil(o.TriggeredWorkflow) { + var ret string + return ret + } + return *o.TriggeredWorkflow +} + +// GetTriggeredWorkflowOk returns a tuple with the TriggeredWorkflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseItemModel) GetTriggeredWorkflowOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredWorkflow) { + return nil, false + } + return o.TriggeredWorkflow, true +} + +// HasTriggeredWorkflow returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseItemModel) HasTriggeredWorkflow() bool { + if o != nil && !IsNil(o.TriggeredWorkflow) { + return true + } + + return false +} + +// SetTriggeredWorkflow gets a reference to the given string and assigns it to the TriggeredWorkflow field. +func (o *V0PipelineListAllResponseItemModel) SetTriggeredWorkflow(v string) { + o.TriggeredWorkflow = &v +} + +func (o V0PipelineListAllResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineListAllResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Branch) { + toSerialize["branch"] = o.Branch + } + if !IsNil(o.BuildNumber) { + toSerialize["build_number"] = o.BuildNumber + } + if !IsNil(o.CommitHash) { + toSerialize["commit_hash"] = o.CommitHash + } + if !IsNil(o.CommitMessage) { + toSerialize["commit_message"] = o.CommitMessage + } + if !IsNil(o.CreditCost) { + toSerialize["credit_cost"] = o.CreditCost + } + if !IsNil(o.FinishedAt) { + toSerialize["finished_at"] = o.FinishedAt + } + if !IsNil(o.IsOnHold) { + toSerialize["is_on_hold"] = o.IsOnHold + } + if !IsNil(o.IsPipeline) { + toSerialize["is_pipeline"] = o.IsPipeline + } + if !IsNil(o.IsProcessed) { + toSerialize["is_processed"] = o.IsProcessed + } + if !IsNil(o.PullRequestId) { + toSerialize["pull_request_id"] = o.PullRequestId + } + if !IsNil(o.PullRequestTargetBranch) { + toSerialize["pull_request_target_branch"] = o.PullRequestTargetBranch + } + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.StartedAt) { + toSerialize["started_at"] = o.StartedAt + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Tag) { + toSerialize["tag"] = o.Tag + } + if !IsNil(o.TriggeredAt) { + toSerialize["triggered_at"] = o.TriggeredAt + } + if !IsNil(o.TriggeredBy) { + toSerialize["triggered_by"] = o.TriggeredBy + } + if !IsNil(o.TriggeredWorkflow) { + toSerialize["triggered_workflow"] = o.TriggeredWorkflow + } + return toSerialize, nil +} + +type NullableV0PipelineListAllResponseItemModel struct { + value *V0PipelineListAllResponseItemModel + isSet bool +} + +func (v NullableV0PipelineListAllResponseItemModel) Get() *V0PipelineListAllResponseItemModel { + return v.value +} + +func (v *NullableV0PipelineListAllResponseItemModel) Set(val *V0PipelineListAllResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineListAllResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineListAllResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineListAllResponseItemModel(val *V0PipelineListAllResponseItemModel) *NullableV0PipelineListAllResponseItemModel { + return &NullableV0PipelineListAllResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0PipelineListAllResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineListAllResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_list_all_response_model.go b/go2/model_v0_pipeline_list_all_response_model.go new file mode 100644 index 0000000..3452f0c --- /dev/null +++ b/go2/model_v0_pipeline_list_all_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PipelineListAllResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineListAllResponseModel{} + +// V0PipelineListAllResponseModel struct for V0PipelineListAllResponseModel +type V0PipelineListAllResponseModel struct { + Data []V0PipelineListAllResponseItemModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0PipelineListAllResponseModel instantiates a new V0PipelineListAllResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineListAllResponseModel() *V0PipelineListAllResponseModel { + this := V0PipelineListAllResponseModel{} + return &this +} + +// NewV0PipelineListAllResponseModelWithDefaults instantiates a new V0PipelineListAllResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineListAllResponseModelWithDefaults() *V0PipelineListAllResponseModel { + this := V0PipelineListAllResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseModel) GetData() []V0PipelineListAllResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0PipelineListAllResponseItemModel + 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 *V0PipelineListAllResponseModel) GetDataOk() ([]V0PipelineListAllResponseItemModel, 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 *V0PipelineListAllResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0PipelineListAllResponseItemModel and assigns it to the Data field. +func (o *V0PipelineListAllResponseModel) SetData(v []V0PipelineListAllResponseItemModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0PipelineListAllResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListAllResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0PipelineListAllResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0PipelineListAllResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0PipelineListAllResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineListAllResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0PipelineListAllResponseModel struct { + value *V0PipelineListAllResponseModel + isSet bool +} + +func (v NullableV0PipelineListAllResponseModel) Get() *V0PipelineListAllResponseModel { + return v.value +} + +func (v *NullableV0PipelineListAllResponseModel) Set(val *V0PipelineListAllResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineListAllResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineListAllResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineListAllResponseModel(val *V0PipelineListAllResponseModel) *NullableV0PipelineListAllResponseModel { + return &NullableV0PipelineListAllResponseModel{value: val, isSet: true} +} + +func (v NullableV0PipelineListAllResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineListAllResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_list_response_item_model.go b/go2/model_v0_pipeline_list_response_item_model.go new file mode 100644 index 0000000..6f2f431 --- /dev/null +++ b/go2/model_v0_pipeline_list_response_item_model.go @@ -0,0 +1,883 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PipelineListResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineListResponseItemModel{} + +// V0PipelineListResponseItemModel struct for V0PipelineListResponseItemModel +type V0PipelineListResponseItemModel struct { + Artifacts []PipelineabledomainArtifactMeta `json:"artifacts,omitempty"` + Branch *NullsString `json:"branch,omitempty"` + BuildNumber *int32 `json:"build_number,omitempty"` + BuildToolInvocations []PipelineabledomainBuildToolInvocation `json:"build_tool_invocations,omitempty"` + CommitHash *NullsString `json:"commit_hash,omitempty"` + CommitMessage *NullsString `json:"commit_message,omitempty"` + CreditCost *NullsInt64 `json:"credit_cost,omitempty"` + FinishedAt *string `json:"finished_at,omitempty"` + IsOnHold *bool `json:"is_on_hold,omitempty"` + IsPipeline *bool `json:"is_pipeline,omitempty"` + IsProcessed *bool `json:"is_processed,omitempty"` + LocalConfig *PipelineabledomainLocalConfig `json:"local_config,omitempty"` + PullRequestId *int32 `json:"pull_request_id,omitempty"` + PullRequestTargetBranch *NullsString `json:"pull_request_target_branch,omitempty"` + Slug *string `json:"slug,omitempty"` + StartedAt *string `json:"started_at,omitempty"` + Status *int32 `json:"status,omitempty"` + Tag *NullsString `json:"tag,omitempty"` + TriggerParams *PipelineabledomainTriggerParams `json:"trigger_params,omitempty"` + TriggeredAt *string `json:"triggered_at,omitempty"` + TriggeredBy *NullsString `json:"triggered_by,omitempty"` + TriggeredWorkflow *string `json:"triggered_workflow,omitempty"` +} + +// NewV0PipelineListResponseItemModel instantiates a new V0PipelineListResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineListResponseItemModel() *V0PipelineListResponseItemModel { + this := V0PipelineListResponseItemModel{} + return &this +} + +// NewV0PipelineListResponseItemModelWithDefaults instantiates a new V0PipelineListResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineListResponseItemModelWithDefaults() *V0PipelineListResponseItemModel { + this := V0PipelineListResponseItemModel{} + return &this +} + +// GetArtifacts returns the Artifacts field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetArtifacts() []PipelineabledomainArtifactMeta { + if o == nil || IsNil(o.Artifacts) { + var ret []PipelineabledomainArtifactMeta + return ret + } + return o.Artifacts +} + +// GetArtifactsOk returns a tuple with the Artifacts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetArtifactsOk() ([]PipelineabledomainArtifactMeta, bool) { + if o == nil || IsNil(o.Artifacts) { + return nil, false + } + return o.Artifacts, true +} + +// HasArtifacts returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasArtifacts() bool { + if o != nil && !IsNil(o.Artifacts) { + return true + } + + return false +} + +// SetArtifacts gets a reference to the given []PipelineabledomainArtifactMeta and assigns it to the Artifacts field. +func (o *V0PipelineListResponseItemModel) SetArtifacts(v []PipelineabledomainArtifactMeta) { + o.Artifacts = v +} + +// GetBranch returns the Branch field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetBranch() NullsString { + if o == nil || IsNil(o.Branch) { + var ret NullsString + return ret + } + return *o.Branch +} + +// GetBranchOk returns a tuple with the Branch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetBranchOk() (*NullsString, bool) { + if o == nil || IsNil(o.Branch) { + return nil, false + } + return o.Branch, true +} + +// HasBranch returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasBranch() bool { + if o != nil && !IsNil(o.Branch) { + return true + } + + return false +} + +// SetBranch gets a reference to the given NullsString and assigns it to the Branch field. +func (o *V0PipelineListResponseItemModel) SetBranch(v NullsString) { + o.Branch = &v +} + +// GetBuildNumber returns the BuildNumber field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetBuildNumber() int32 { + if o == nil || IsNil(o.BuildNumber) { + var ret int32 + return ret + } + return *o.BuildNumber +} + +// GetBuildNumberOk returns a tuple with the BuildNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetBuildNumberOk() (*int32, bool) { + if o == nil || IsNil(o.BuildNumber) { + return nil, false + } + return o.BuildNumber, true +} + +// HasBuildNumber returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasBuildNumber() bool { + if o != nil && !IsNil(o.BuildNumber) { + return true + } + + return false +} + +// SetBuildNumber gets a reference to the given int32 and assigns it to the BuildNumber field. +func (o *V0PipelineListResponseItemModel) SetBuildNumber(v int32) { + o.BuildNumber = &v +} + +// GetBuildToolInvocations returns the BuildToolInvocations field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetBuildToolInvocations() []PipelineabledomainBuildToolInvocation { + if o == nil || IsNil(o.BuildToolInvocations) { + var ret []PipelineabledomainBuildToolInvocation + return ret + } + return o.BuildToolInvocations +} + +// GetBuildToolInvocationsOk returns a tuple with the BuildToolInvocations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetBuildToolInvocationsOk() ([]PipelineabledomainBuildToolInvocation, bool) { + if o == nil || IsNil(o.BuildToolInvocations) { + return nil, false + } + return o.BuildToolInvocations, true +} + +// HasBuildToolInvocations returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasBuildToolInvocations() bool { + if o != nil && !IsNil(o.BuildToolInvocations) { + return true + } + + return false +} + +// SetBuildToolInvocations gets a reference to the given []PipelineabledomainBuildToolInvocation and assigns it to the BuildToolInvocations field. +func (o *V0PipelineListResponseItemModel) SetBuildToolInvocations(v []PipelineabledomainBuildToolInvocation) { + o.BuildToolInvocations = v +} + +// GetCommitHash returns the CommitHash field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetCommitHash() NullsString { + if o == nil || IsNil(o.CommitHash) { + var ret NullsString + return ret + } + return *o.CommitHash +} + +// GetCommitHashOk returns a tuple with the CommitHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetCommitHashOk() (*NullsString, bool) { + if o == nil || IsNil(o.CommitHash) { + return nil, false + } + return o.CommitHash, true +} + +// HasCommitHash returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasCommitHash() bool { + if o != nil && !IsNil(o.CommitHash) { + return true + } + + return false +} + +// SetCommitHash gets a reference to the given NullsString and assigns it to the CommitHash field. +func (o *V0PipelineListResponseItemModel) SetCommitHash(v NullsString) { + o.CommitHash = &v +} + +// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetCommitMessage() NullsString { + if o == nil || IsNil(o.CommitMessage) { + var ret NullsString + return ret + } + return *o.CommitMessage +} + +// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetCommitMessageOk() (*NullsString, bool) { + if o == nil || IsNil(o.CommitMessage) { + return nil, false + } + return o.CommitMessage, true +} + +// HasCommitMessage returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasCommitMessage() bool { + if o != nil && !IsNil(o.CommitMessage) { + return true + } + + return false +} + +// SetCommitMessage gets a reference to the given NullsString and assigns it to the CommitMessage field. +func (o *V0PipelineListResponseItemModel) SetCommitMessage(v NullsString) { + o.CommitMessage = &v +} + +// GetCreditCost returns the CreditCost field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetCreditCost() NullsInt64 { + if o == nil || IsNil(o.CreditCost) { + var ret NullsInt64 + return ret + } + return *o.CreditCost +} + +// GetCreditCostOk returns a tuple with the CreditCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetCreditCostOk() (*NullsInt64, bool) { + if o == nil || IsNil(o.CreditCost) { + return nil, false + } + return o.CreditCost, true +} + +// HasCreditCost returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasCreditCost() bool { + if o != nil && !IsNil(o.CreditCost) { + return true + } + + return false +} + +// SetCreditCost gets a reference to the given NullsInt64 and assigns it to the CreditCost field. +func (o *V0PipelineListResponseItemModel) SetCreditCost(v NullsInt64) { + o.CreditCost = &v +} + +// GetFinishedAt returns the FinishedAt field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetFinishedAt() string { + if o == nil || IsNil(o.FinishedAt) { + var ret string + return ret + } + return *o.FinishedAt +} + +// GetFinishedAtOk returns a tuple with the FinishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetFinishedAtOk() (*string, bool) { + if o == nil || IsNil(o.FinishedAt) { + return nil, false + } + return o.FinishedAt, true +} + +// HasFinishedAt returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasFinishedAt() bool { + if o != nil && !IsNil(o.FinishedAt) { + return true + } + + return false +} + +// SetFinishedAt gets a reference to the given string and assigns it to the FinishedAt field. +func (o *V0PipelineListResponseItemModel) SetFinishedAt(v string) { + o.FinishedAt = &v +} + +// GetIsOnHold returns the IsOnHold field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetIsOnHold() bool { + if o == nil || IsNil(o.IsOnHold) { + var ret bool + return ret + } + return *o.IsOnHold +} + +// GetIsOnHoldOk returns a tuple with the IsOnHold field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetIsOnHoldOk() (*bool, bool) { + if o == nil || IsNil(o.IsOnHold) { + return nil, false + } + return o.IsOnHold, true +} + +// HasIsOnHold returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasIsOnHold() bool { + if o != nil && !IsNil(o.IsOnHold) { + return true + } + + return false +} + +// SetIsOnHold gets a reference to the given bool and assigns it to the IsOnHold field. +func (o *V0PipelineListResponseItemModel) SetIsOnHold(v bool) { + o.IsOnHold = &v +} + +// GetIsPipeline returns the IsPipeline field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetIsPipeline() bool { + if o == nil || IsNil(o.IsPipeline) { + var ret bool + return ret + } + return *o.IsPipeline +} + +// GetIsPipelineOk returns a tuple with the IsPipeline field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetIsPipelineOk() (*bool, bool) { + if o == nil || IsNil(o.IsPipeline) { + return nil, false + } + return o.IsPipeline, true +} + +// HasIsPipeline returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasIsPipeline() bool { + if o != nil && !IsNil(o.IsPipeline) { + return true + } + + return false +} + +// SetIsPipeline gets a reference to the given bool and assigns it to the IsPipeline field. +func (o *V0PipelineListResponseItemModel) SetIsPipeline(v bool) { + o.IsPipeline = &v +} + +// GetIsProcessed returns the IsProcessed field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetIsProcessed() bool { + if o == nil || IsNil(o.IsProcessed) { + var ret bool + return ret + } + return *o.IsProcessed +} + +// GetIsProcessedOk returns a tuple with the IsProcessed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetIsProcessedOk() (*bool, bool) { + if o == nil || IsNil(o.IsProcessed) { + return nil, false + } + return o.IsProcessed, true +} + +// HasIsProcessed returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasIsProcessed() bool { + if o != nil && !IsNil(o.IsProcessed) { + return true + } + + return false +} + +// SetIsProcessed gets a reference to the given bool and assigns it to the IsProcessed field. +func (o *V0PipelineListResponseItemModel) SetIsProcessed(v bool) { + o.IsProcessed = &v +} + +// GetLocalConfig returns the LocalConfig field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetLocalConfig() PipelineabledomainLocalConfig { + if o == nil || IsNil(o.LocalConfig) { + var ret PipelineabledomainLocalConfig + return ret + } + return *o.LocalConfig +} + +// GetLocalConfigOk returns a tuple with the LocalConfig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetLocalConfigOk() (*PipelineabledomainLocalConfig, bool) { + if o == nil || IsNil(o.LocalConfig) { + return nil, false + } + return o.LocalConfig, true +} + +// HasLocalConfig returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasLocalConfig() bool { + if o != nil && !IsNil(o.LocalConfig) { + return true + } + + return false +} + +// SetLocalConfig gets a reference to the given PipelineabledomainLocalConfig and assigns it to the LocalConfig field. +func (o *V0PipelineListResponseItemModel) SetLocalConfig(v PipelineabledomainLocalConfig) { + o.LocalConfig = &v +} + +// GetPullRequestId returns the PullRequestId field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetPullRequestId() int32 { + if o == nil || IsNil(o.PullRequestId) { + var ret int32 + return ret + } + return *o.PullRequestId +} + +// GetPullRequestIdOk returns a tuple with the PullRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetPullRequestIdOk() (*int32, bool) { + if o == nil || IsNil(o.PullRequestId) { + return nil, false + } + return o.PullRequestId, true +} + +// HasPullRequestId returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasPullRequestId() bool { + if o != nil && !IsNil(o.PullRequestId) { + return true + } + + return false +} + +// SetPullRequestId gets a reference to the given int32 and assigns it to the PullRequestId field. +func (o *V0PipelineListResponseItemModel) SetPullRequestId(v int32) { + o.PullRequestId = &v +} + +// GetPullRequestTargetBranch returns the PullRequestTargetBranch field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetPullRequestTargetBranch() NullsString { + if o == nil || IsNil(o.PullRequestTargetBranch) { + var ret NullsString + return ret + } + return *o.PullRequestTargetBranch +} + +// GetPullRequestTargetBranchOk returns a tuple with the PullRequestTargetBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetPullRequestTargetBranchOk() (*NullsString, bool) { + if o == nil || IsNil(o.PullRequestTargetBranch) { + return nil, false + } + return o.PullRequestTargetBranch, true +} + +// HasPullRequestTargetBranch returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasPullRequestTargetBranch() bool { + if o != nil && !IsNil(o.PullRequestTargetBranch) { + return true + } + + return false +} + +// SetPullRequestTargetBranch gets a reference to the given NullsString and assigns it to the PullRequestTargetBranch field. +func (o *V0PipelineListResponseItemModel) SetPullRequestTargetBranch(v NullsString) { + o.PullRequestTargetBranch = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0PipelineListResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetStartedAt returns the StartedAt field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetStartedAt() string { + if o == nil || IsNil(o.StartedAt) { + var ret string + return ret + } + return *o.StartedAt +} + +// GetStartedAtOk returns a tuple with the StartedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetStartedAtOk() (*string, bool) { + if o == nil || IsNil(o.StartedAt) { + return nil, false + } + return o.StartedAt, true +} + +// HasStartedAt returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasStartedAt() bool { + if o != nil && !IsNil(o.StartedAt) { + return true + } + + return false +} + +// SetStartedAt gets a reference to the given string and assigns it to the StartedAt field. +func (o *V0PipelineListResponseItemModel) SetStartedAt(v string) { + o.StartedAt = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetStatus() int32 { + if o == nil || IsNil(o.Status) { + var ret int32 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetStatusOk() (*int32, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int32 and assigns it to the Status field. +func (o *V0PipelineListResponseItemModel) SetStatus(v int32) { + o.Status = &v +} + +// GetTag returns the Tag field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetTag() NullsString { + if o == nil || IsNil(o.Tag) { + var ret NullsString + return ret + } + return *o.Tag +} + +// GetTagOk returns a tuple with the Tag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetTagOk() (*NullsString, bool) { + if o == nil || IsNil(o.Tag) { + return nil, false + } + return o.Tag, true +} + +// HasTag returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasTag() bool { + if o != nil && !IsNil(o.Tag) { + return true + } + + return false +} + +// SetTag gets a reference to the given NullsString and assigns it to the Tag field. +func (o *V0PipelineListResponseItemModel) SetTag(v NullsString) { + o.Tag = &v +} + +// GetTriggerParams returns the TriggerParams field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetTriggerParams() PipelineabledomainTriggerParams { + if o == nil || IsNil(o.TriggerParams) { + var ret PipelineabledomainTriggerParams + return ret + } + return *o.TriggerParams +} + +// GetTriggerParamsOk returns a tuple with the TriggerParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetTriggerParamsOk() (*PipelineabledomainTriggerParams, bool) { + if o == nil || IsNil(o.TriggerParams) { + return nil, false + } + return o.TriggerParams, true +} + +// HasTriggerParams returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasTriggerParams() bool { + if o != nil && !IsNil(o.TriggerParams) { + return true + } + + return false +} + +// SetTriggerParams gets a reference to the given PipelineabledomainTriggerParams and assigns it to the TriggerParams field. +func (o *V0PipelineListResponseItemModel) SetTriggerParams(v PipelineabledomainTriggerParams) { + o.TriggerParams = &v +} + +// GetTriggeredAt returns the TriggeredAt field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetTriggeredAt() string { + if o == nil || IsNil(o.TriggeredAt) { + var ret string + return ret + } + return *o.TriggeredAt +} + +// GetTriggeredAtOk returns a tuple with the TriggeredAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetTriggeredAtOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredAt) { + return nil, false + } + return o.TriggeredAt, true +} + +// HasTriggeredAt returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasTriggeredAt() bool { + if o != nil && !IsNil(o.TriggeredAt) { + return true + } + + return false +} + +// SetTriggeredAt gets a reference to the given string and assigns it to the TriggeredAt field. +func (o *V0PipelineListResponseItemModel) SetTriggeredAt(v string) { + o.TriggeredAt = &v +} + +// GetTriggeredBy returns the TriggeredBy field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetTriggeredBy() NullsString { + if o == nil || IsNil(o.TriggeredBy) { + var ret NullsString + return ret + } + return *o.TriggeredBy +} + +// GetTriggeredByOk returns a tuple with the TriggeredBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetTriggeredByOk() (*NullsString, bool) { + if o == nil || IsNil(o.TriggeredBy) { + return nil, false + } + return o.TriggeredBy, true +} + +// HasTriggeredBy returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasTriggeredBy() bool { + if o != nil && !IsNil(o.TriggeredBy) { + return true + } + + return false +} + +// SetTriggeredBy gets a reference to the given NullsString and assigns it to the TriggeredBy field. +func (o *V0PipelineListResponseItemModel) SetTriggeredBy(v NullsString) { + o.TriggeredBy = &v +} + +// GetTriggeredWorkflow returns the TriggeredWorkflow field value if set, zero value otherwise. +func (o *V0PipelineListResponseItemModel) GetTriggeredWorkflow() string { + if o == nil || IsNil(o.TriggeredWorkflow) { + var ret string + return ret + } + return *o.TriggeredWorkflow +} + +// GetTriggeredWorkflowOk returns a tuple with the TriggeredWorkflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseItemModel) GetTriggeredWorkflowOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredWorkflow) { + return nil, false + } + return o.TriggeredWorkflow, true +} + +// HasTriggeredWorkflow returns a boolean if a field has been set. +func (o *V0PipelineListResponseItemModel) HasTriggeredWorkflow() bool { + if o != nil && !IsNil(o.TriggeredWorkflow) { + return true + } + + return false +} + +// SetTriggeredWorkflow gets a reference to the given string and assigns it to the TriggeredWorkflow field. +func (o *V0PipelineListResponseItemModel) SetTriggeredWorkflow(v string) { + o.TriggeredWorkflow = &v +} + +func (o V0PipelineListResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineListResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Artifacts) { + toSerialize["artifacts"] = o.Artifacts + } + if !IsNil(o.Branch) { + toSerialize["branch"] = o.Branch + } + if !IsNil(o.BuildNumber) { + toSerialize["build_number"] = o.BuildNumber + } + if !IsNil(o.BuildToolInvocations) { + toSerialize["build_tool_invocations"] = o.BuildToolInvocations + } + if !IsNil(o.CommitHash) { + toSerialize["commit_hash"] = o.CommitHash + } + if !IsNil(o.CommitMessage) { + toSerialize["commit_message"] = o.CommitMessage + } + if !IsNil(o.CreditCost) { + toSerialize["credit_cost"] = o.CreditCost + } + if !IsNil(o.FinishedAt) { + toSerialize["finished_at"] = o.FinishedAt + } + if !IsNil(o.IsOnHold) { + toSerialize["is_on_hold"] = o.IsOnHold + } + if !IsNil(o.IsPipeline) { + toSerialize["is_pipeline"] = o.IsPipeline + } + if !IsNil(o.IsProcessed) { + toSerialize["is_processed"] = o.IsProcessed + } + if !IsNil(o.LocalConfig) { + toSerialize["local_config"] = o.LocalConfig + } + if !IsNil(o.PullRequestId) { + toSerialize["pull_request_id"] = o.PullRequestId + } + if !IsNil(o.PullRequestTargetBranch) { + toSerialize["pull_request_target_branch"] = o.PullRequestTargetBranch + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.StartedAt) { + toSerialize["started_at"] = o.StartedAt + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Tag) { + toSerialize["tag"] = o.Tag + } + if !IsNil(o.TriggerParams) { + toSerialize["trigger_params"] = o.TriggerParams + } + if !IsNil(o.TriggeredAt) { + toSerialize["triggered_at"] = o.TriggeredAt + } + if !IsNil(o.TriggeredBy) { + toSerialize["triggered_by"] = o.TriggeredBy + } + if !IsNil(o.TriggeredWorkflow) { + toSerialize["triggered_workflow"] = o.TriggeredWorkflow + } + return toSerialize, nil +} + +type NullableV0PipelineListResponseItemModel struct { + value *V0PipelineListResponseItemModel + isSet bool +} + +func (v NullableV0PipelineListResponseItemModel) Get() *V0PipelineListResponseItemModel { + return v.value +} + +func (v *NullableV0PipelineListResponseItemModel) Set(val *V0PipelineListResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineListResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineListResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineListResponseItemModel(val *V0PipelineListResponseItemModel) *NullableV0PipelineListResponseItemModel { + return &NullableV0PipelineListResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0PipelineListResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineListResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_list_response_model.go b/go2/model_v0_pipeline_list_response_model.go new file mode 100644 index 0000000..6ff01f9 --- /dev/null +++ b/go2/model_v0_pipeline_list_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PipelineListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineListResponseModel{} + +// V0PipelineListResponseModel struct for V0PipelineListResponseModel +type V0PipelineListResponseModel struct { + Data []V0PipelineListResponseItemModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0PipelineListResponseModel instantiates a new V0PipelineListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineListResponseModel() *V0PipelineListResponseModel { + this := V0PipelineListResponseModel{} + return &this +} + +// NewV0PipelineListResponseModelWithDefaults instantiates a new V0PipelineListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineListResponseModelWithDefaults() *V0PipelineListResponseModel { + this := V0PipelineListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0PipelineListResponseModel) GetData() []V0PipelineListResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0PipelineListResponseItemModel + 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 *V0PipelineListResponseModel) GetDataOk() ([]V0PipelineListResponseItemModel, 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 *V0PipelineListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0PipelineListResponseItemModel and assigns it to the Data field. +func (o *V0PipelineListResponseModel) SetData(v []V0PipelineListResponseItemModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0PipelineListResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0PipelineListResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0PipelineListResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0PipelineListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0PipelineListResponseModel struct { + value *V0PipelineListResponseModel + isSet bool +} + +func (v NullableV0PipelineListResponseModel) Get() *V0PipelineListResponseModel { + return v.value +} + +func (v *NullableV0PipelineListResponseModel) Set(val *V0PipelineListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineListResponseModel(val *V0PipelineListResponseModel) *NullableV0PipelineListResponseModel { + return &NullableV0PipelineListResponseModel{value: val, isSet: true} +} + +func (v NullableV0PipelineListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_rebuild_params.go b/go2/model_v0_pipeline_rebuild_params.go new file mode 100644 index 0000000..4c35f5c --- /dev/null +++ b/go2/model_v0_pipeline_rebuild_params.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PipelineRebuildParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineRebuildParams{} + +// V0PipelineRebuildParams struct for V0PipelineRebuildParams +type V0PipelineRebuildParams struct { + Partial *bool `json:"partial,omitempty"` + TriggeredBy *string `json:"triggered_by,omitempty"` +} + +// NewV0PipelineRebuildParams instantiates a new V0PipelineRebuildParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineRebuildParams() *V0PipelineRebuildParams { + this := V0PipelineRebuildParams{} + return &this +} + +// NewV0PipelineRebuildParamsWithDefaults instantiates a new V0PipelineRebuildParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineRebuildParamsWithDefaults() *V0PipelineRebuildParams { + this := V0PipelineRebuildParams{} + return &this +} + +// GetPartial returns the Partial field value if set, zero value otherwise. +func (o *V0PipelineRebuildParams) GetPartial() bool { + if o == nil || IsNil(o.Partial) { + var ret bool + return ret + } + return *o.Partial +} + +// GetPartialOk returns a tuple with the Partial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineRebuildParams) GetPartialOk() (*bool, bool) { + if o == nil || IsNil(o.Partial) { + return nil, false + } + return o.Partial, true +} + +// HasPartial returns a boolean if a field has been set. +func (o *V0PipelineRebuildParams) HasPartial() bool { + if o != nil && !IsNil(o.Partial) { + return true + } + + return false +} + +// SetPartial gets a reference to the given bool and assigns it to the Partial field. +func (o *V0PipelineRebuildParams) SetPartial(v bool) { + o.Partial = &v +} + +// GetTriggeredBy returns the TriggeredBy field value if set, zero value otherwise. +func (o *V0PipelineRebuildParams) GetTriggeredBy() string { + if o == nil || IsNil(o.TriggeredBy) { + var ret string + return ret + } + return *o.TriggeredBy +} + +// GetTriggeredByOk returns a tuple with the TriggeredBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineRebuildParams) GetTriggeredByOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredBy) { + return nil, false + } + return o.TriggeredBy, true +} + +// HasTriggeredBy returns a boolean if a field has been set. +func (o *V0PipelineRebuildParams) HasTriggeredBy() bool { + if o != nil && !IsNil(o.TriggeredBy) { + return true + } + + return false +} + +// SetTriggeredBy gets a reference to the given string and assigns it to the TriggeredBy field. +func (o *V0PipelineRebuildParams) SetTriggeredBy(v string) { + o.TriggeredBy = &v +} + +func (o V0PipelineRebuildParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineRebuildParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Partial) { + toSerialize["partial"] = o.Partial + } + if !IsNil(o.TriggeredBy) { + toSerialize["triggered_by"] = o.TriggeredBy + } + return toSerialize, nil +} + +type NullableV0PipelineRebuildParams struct { + value *V0PipelineRebuildParams + isSet bool +} + +func (v NullableV0PipelineRebuildParams) Get() *V0PipelineRebuildParams { + return v.value +} + +func (v *NullableV0PipelineRebuildParams) Set(val *V0PipelineRebuildParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineRebuildParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineRebuildParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineRebuildParams(val *V0PipelineRebuildParams) *NullableV0PipelineRebuildParams { + return &NullableV0PipelineRebuildParams{value: val, isSet: true} +} + +func (v NullableV0PipelineRebuildParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineRebuildParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_show_app_response_model.go b/go2/model_v0_pipeline_show_app_response_model.go new file mode 100644 index 0000000..a84533f --- /dev/null +++ b/go2/model_v0_pipeline_show_app_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PipelineShowAppResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineShowAppResponseModel{} + +// V0PipelineShowAppResponseModel struct for V0PipelineShowAppResponseModel +type V0PipelineShowAppResponseModel struct { + Slug *string `json:"slug,omitempty"` +} + +// NewV0PipelineShowAppResponseModel instantiates a new V0PipelineShowAppResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineShowAppResponseModel() *V0PipelineShowAppResponseModel { + this := V0PipelineShowAppResponseModel{} + return &this +} + +// NewV0PipelineShowAppResponseModelWithDefaults instantiates a new V0PipelineShowAppResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineShowAppResponseModelWithDefaults() *V0PipelineShowAppResponseModel { + this := V0PipelineShowAppResponseModel{} + return &this +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0PipelineShowAppResponseModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowAppResponseModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0PipelineShowAppResponseModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0PipelineShowAppResponseModel) SetSlug(v string) { + o.Slug = &v +} + +func (o V0PipelineShowAppResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineShowAppResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + return toSerialize, nil +} + +type NullableV0PipelineShowAppResponseModel struct { + value *V0PipelineShowAppResponseModel + isSet bool +} + +func (v NullableV0PipelineShowAppResponseModel) Get() *V0PipelineShowAppResponseModel { + return v.value +} + +func (v *NullableV0PipelineShowAppResponseModel) Set(val *V0PipelineShowAppResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineShowAppResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineShowAppResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineShowAppResponseModel(val *V0PipelineShowAppResponseModel) *NullableV0PipelineShowAppResponseModel { + return &NullableV0PipelineShowAppResponseModel{value: val, isSet: true} +} + +func (v NullableV0PipelineShowAppResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineShowAppResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_show_attempt_response_model.go b/go2/model_v0_pipeline_show_attempt_response_model.go new file mode 100644 index 0000000..ce9ff8d --- /dev/null +++ b/go2/model_v0_pipeline_show_attempt_response_model.go @@ -0,0 +1,235 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PipelineShowAttemptResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineShowAttemptResponseModel{} + +// V0PipelineShowAttemptResponseModel struct for V0PipelineShowAttemptResponseModel +type V0PipelineShowAttemptResponseModel struct { + Id *string `json:"id,omitempty"` + NumberInPipelineBuildScope *int32 `json:"number_in_pipeline_build_scope,omitempty"` + Status *string `json:"status,omitempty"` + TriggeredAt *string `json:"triggered_at,omitempty"` +} + +// NewV0PipelineShowAttemptResponseModel instantiates a new V0PipelineShowAttemptResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineShowAttemptResponseModel() *V0PipelineShowAttemptResponseModel { + this := V0PipelineShowAttemptResponseModel{} + return &this +} + +// NewV0PipelineShowAttemptResponseModelWithDefaults instantiates a new V0PipelineShowAttemptResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineShowAttemptResponseModelWithDefaults() *V0PipelineShowAttemptResponseModel { + this := V0PipelineShowAttemptResponseModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *V0PipelineShowAttemptResponseModel) 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 *V0PipelineShowAttemptResponseModel) 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 *V0PipelineShowAttemptResponseModel) 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 *V0PipelineShowAttemptResponseModel) SetId(v string) { + o.Id = &v +} + +// GetNumberInPipelineBuildScope returns the NumberInPipelineBuildScope field value if set, zero value otherwise. +func (o *V0PipelineShowAttemptResponseModel) GetNumberInPipelineBuildScope() int32 { + if o == nil || IsNil(o.NumberInPipelineBuildScope) { + var ret int32 + return ret + } + return *o.NumberInPipelineBuildScope +} + +// GetNumberInPipelineBuildScopeOk returns a tuple with the NumberInPipelineBuildScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowAttemptResponseModel) GetNumberInPipelineBuildScopeOk() (*int32, bool) { + if o == nil || IsNil(o.NumberInPipelineBuildScope) { + return nil, false + } + return o.NumberInPipelineBuildScope, true +} + +// HasNumberInPipelineBuildScope returns a boolean if a field has been set. +func (o *V0PipelineShowAttemptResponseModel) HasNumberInPipelineBuildScope() bool { + if o != nil && !IsNil(o.NumberInPipelineBuildScope) { + return true + } + + return false +} + +// SetNumberInPipelineBuildScope gets a reference to the given int32 and assigns it to the NumberInPipelineBuildScope field. +func (o *V0PipelineShowAttemptResponseModel) SetNumberInPipelineBuildScope(v int32) { + o.NumberInPipelineBuildScope = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0PipelineShowAttemptResponseModel) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowAttemptResponseModel) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0PipelineShowAttemptResponseModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V0PipelineShowAttemptResponseModel) SetStatus(v string) { + o.Status = &v +} + +// GetTriggeredAt returns the TriggeredAt field value if set, zero value otherwise. +func (o *V0PipelineShowAttemptResponseModel) GetTriggeredAt() string { + if o == nil || IsNil(o.TriggeredAt) { + var ret string + return ret + } + return *o.TriggeredAt +} + +// GetTriggeredAtOk returns a tuple with the TriggeredAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowAttemptResponseModel) GetTriggeredAtOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredAt) { + return nil, false + } + return o.TriggeredAt, true +} + +// HasTriggeredAt returns a boolean if a field has been set. +func (o *V0PipelineShowAttemptResponseModel) HasTriggeredAt() bool { + if o != nil && !IsNil(o.TriggeredAt) { + return true + } + + return false +} + +// SetTriggeredAt gets a reference to the given string and assigns it to the TriggeredAt field. +func (o *V0PipelineShowAttemptResponseModel) SetTriggeredAt(v string) { + o.TriggeredAt = &v +} + +func (o V0PipelineShowAttemptResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineShowAttemptResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.NumberInPipelineBuildScope) { + toSerialize["number_in_pipeline_build_scope"] = o.NumberInPipelineBuildScope + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.TriggeredAt) { + toSerialize["triggered_at"] = o.TriggeredAt + } + return toSerialize, nil +} + +type NullableV0PipelineShowAttemptResponseModel struct { + value *V0PipelineShowAttemptResponseModel + isSet bool +} + +func (v NullableV0PipelineShowAttemptResponseModel) Get() *V0PipelineShowAttemptResponseModel { + return v.value +} + +func (v *NullableV0PipelineShowAttemptResponseModel) Set(val *V0PipelineShowAttemptResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineShowAttemptResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineShowAttemptResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineShowAttemptResponseModel(val *V0PipelineShowAttemptResponseModel) *NullableV0PipelineShowAttemptResponseModel { + return &NullableV0PipelineShowAttemptResponseModel{value: val, isSet: true} +} + +func (v NullableV0PipelineShowAttemptResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineShowAttemptResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_show_environments_response_model.go b/go2/model_v0_pipeline_show_environments_response_model.go new file mode 100644 index 0000000..9c4ff8a --- /dev/null +++ b/go2/model_v0_pipeline_show_environments_response_model.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PipelineShowEnvironmentsResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineShowEnvironmentsResponseModel{} + +// V0PipelineShowEnvironmentsResponseModel struct for V0PipelineShowEnvironmentsResponseModel +type V0PipelineShowEnvironmentsResponseModel struct { + IsExpand *bool `json:"is_expand,omitempty"` + Key *string `json:"key,omitempty"` + Value map[string]interface{} `json:"value,omitempty"` +} + +// NewV0PipelineShowEnvironmentsResponseModel instantiates a new V0PipelineShowEnvironmentsResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineShowEnvironmentsResponseModel() *V0PipelineShowEnvironmentsResponseModel { + this := V0PipelineShowEnvironmentsResponseModel{} + return &this +} + +// NewV0PipelineShowEnvironmentsResponseModelWithDefaults instantiates a new V0PipelineShowEnvironmentsResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineShowEnvironmentsResponseModelWithDefaults() *V0PipelineShowEnvironmentsResponseModel { + this := V0PipelineShowEnvironmentsResponseModel{} + return &this +} + +// GetIsExpand returns the IsExpand field value if set, zero value otherwise. +func (o *V0PipelineShowEnvironmentsResponseModel) GetIsExpand() bool { + if o == nil || IsNil(o.IsExpand) { + var ret bool + return ret + } + return *o.IsExpand +} + +// GetIsExpandOk returns a tuple with the IsExpand field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowEnvironmentsResponseModel) GetIsExpandOk() (*bool, bool) { + if o == nil || IsNil(o.IsExpand) { + return nil, false + } + return o.IsExpand, true +} + +// HasIsExpand returns a boolean if a field has been set. +func (o *V0PipelineShowEnvironmentsResponseModel) HasIsExpand() bool { + if o != nil && !IsNil(o.IsExpand) { + return true + } + + return false +} + +// SetIsExpand gets a reference to the given bool and assigns it to the IsExpand field. +func (o *V0PipelineShowEnvironmentsResponseModel) SetIsExpand(v bool) { + o.IsExpand = &v +} + +// GetKey returns the Key field value if set, zero value otherwise. +func (o *V0PipelineShowEnvironmentsResponseModel) GetKey() string { + if o == nil || IsNil(o.Key) { + var ret string + return ret + } + return *o.Key +} + +// GetKeyOk returns a tuple with the Key field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowEnvironmentsResponseModel) GetKeyOk() (*string, bool) { + if o == nil || IsNil(o.Key) { + return nil, false + } + return o.Key, true +} + +// HasKey returns a boolean if a field has been set. +func (o *V0PipelineShowEnvironmentsResponseModel) HasKey() bool { + if o != nil && !IsNil(o.Key) { + return true + } + + return false +} + +// SetKey gets a reference to the given string and assigns it to the Key field. +func (o *V0PipelineShowEnvironmentsResponseModel) SetKey(v string) { + o.Key = &v +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *V0PipelineShowEnvironmentsResponseModel) GetValue() map[string]interface{} { + if o == nil || IsNil(o.Value) { + var ret map[string]interface{} + 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 *V0PipelineShowEnvironmentsResponseModel) GetValueOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Value) { + return map[string]interface{}{}, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *V0PipelineShowEnvironmentsResponseModel) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given map[string]interface{} and assigns it to the Value field. +func (o *V0PipelineShowEnvironmentsResponseModel) SetValue(v map[string]interface{}) { + o.Value = v +} + +func (o V0PipelineShowEnvironmentsResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineShowEnvironmentsResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsExpand) { + toSerialize["is_expand"] = o.IsExpand + } + if !IsNil(o.Key) { + toSerialize["key"] = o.Key + } + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + return toSerialize, nil +} + +type NullableV0PipelineShowEnvironmentsResponseModel struct { + value *V0PipelineShowEnvironmentsResponseModel + isSet bool +} + +func (v NullableV0PipelineShowEnvironmentsResponseModel) Get() *V0PipelineShowEnvironmentsResponseModel { + return v.value +} + +func (v *NullableV0PipelineShowEnvironmentsResponseModel) Set(val *V0PipelineShowEnvironmentsResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineShowEnvironmentsResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineShowEnvironmentsResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineShowEnvironmentsResponseModel(val *V0PipelineShowEnvironmentsResponseModel) *NullableV0PipelineShowEnvironmentsResponseModel { + return &NullableV0PipelineShowEnvironmentsResponseModel{value: val, isSet: true} +} + +func (v NullableV0PipelineShowEnvironmentsResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineShowEnvironmentsResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_show_response_model.go b/go2/model_v0_pipeline_show_response_model.go new file mode 100644 index 0000000..d4a2d14 --- /dev/null +++ b/go2/model_v0_pipeline_show_response_model.go @@ -0,0 +1,667 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PipelineShowResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineShowResponseModel{} + +// V0PipelineShowResponseModel struct for V0PipelineShowResponseModel +type V0PipelineShowResponseModel struct { + AbortReason *string `json:"abort_reason,omitempty"` + App *V0PipelineShowAppResponseModel `json:"app,omitempty"` + Attempts []V0PipelineShowAttemptResponseModel `json:"attempts,omitempty"` + CreditCost map[string]interface{} `json:"credit_cost,omitempty"` + CurrentAttemptId *string `json:"current_attempt_id,omitempty"` + FinishedAt *string `json:"finished_at,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + NumberInAppScope *int32 `json:"number_in_app_scope,omitempty"` + PutOnHoldAt map[string]interface{} `json:"put_on_hold_at,omitempty"` + Stages []V0PipelineShowStageResponseModel `json:"stages,omitempty"` + StartedAt *string `json:"started_at,omitempty"` + Status *string `json:"status,omitempty"` + TriggerParams *V0PipelineShowTriggerParamsResponseModel `json:"trigger_params,omitempty"` + TriggeredAt *string `json:"triggered_at,omitempty"` + TriggeredBy *string `json:"triggered_by,omitempty"` +} + +// NewV0PipelineShowResponseModel instantiates a new V0PipelineShowResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineShowResponseModel() *V0PipelineShowResponseModel { + this := V0PipelineShowResponseModel{} + return &this +} + +// NewV0PipelineShowResponseModelWithDefaults instantiates a new V0PipelineShowResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineShowResponseModelWithDefaults() *V0PipelineShowResponseModel { + this := V0PipelineShowResponseModel{} + return &this +} + +// GetAbortReason returns the AbortReason field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetAbortReason() string { + if o == nil || IsNil(o.AbortReason) { + var ret string + return ret + } + return *o.AbortReason +} + +// GetAbortReasonOk returns a tuple with the AbortReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetAbortReasonOk() (*string, bool) { + if o == nil || IsNil(o.AbortReason) { + return nil, false + } + return o.AbortReason, true +} + +// HasAbortReason returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasAbortReason() bool { + if o != nil && !IsNil(o.AbortReason) { + return true + } + + return false +} + +// SetAbortReason gets a reference to the given string and assigns it to the AbortReason field. +func (o *V0PipelineShowResponseModel) SetAbortReason(v string) { + o.AbortReason = &v +} + +// GetApp returns the App field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetApp() V0PipelineShowAppResponseModel { + if o == nil || IsNil(o.App) { + var ret V0PipelineShowAppResponseModel + 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 *V0PipelineShowResponseModel) GetAppOk() (*V0PipelineShowAppResponseModel, 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 *V0PipelineShowResponseModel) HasApp() bool { + if o != nil && !IsNil(o.App) { + return true + } + + return false +} + +// SetApp gets a reference to the given V0PipelineShowAppResponseModel and assigns it to the App field. +func (o *V0PipelineShowResponseModel) SetApp(v V0PipelineShowAppResponseModel) { + o.App = &v +} + +// GetAttempts returns the Attempts field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetAttempts() []V0PipelineShowAttemptResponseModel { + if o == nil || IsNil(o.Attempts) { + var ret []V0PipelineShowAttemptResponseModel + return ret + } + return o.Attempts +} + +// GetAttemptsOk returns a tuple with the Attempts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetAttemptsOk() ([]V0PipelineShowAttemptResponseModel, bool) { + if o == nil || IsNil(o.Attempts) { + return nil, false + } + return o.Attempts, true +} + +// HasAttempts returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasAttempts() bool { + if o != nil && !IsNil(o.Attempts) { + return true + } + + return false +} + +// SetAttempts gets a reference to the given []V0PipelineShowAttemptResponseModel and assigns it to the Attempts field. +func (o *V0PipelineShowResponseModel) SetAttempts(v []V0PipelineShowAttemptResponseModel) { + o.Attempts = v +} + +// GetCreditCost returns the CreditCost field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetCreditCost() map[string]interface{} { + if o == nil || IsNil(o.CreditCost) { + var ret map[string]interface{} + return ret + } + return o.CreditCost +} + +// GetCreditCostOk returns a tuple with the CreditCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetCreditCostOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CreditCost) { + return map[string]interface{}{}, false + } + return o.CreditCost, true +} + +// HasCreditCost returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasCreditCost() bool { + if o != nil && !IsNil(o.CreditCost) { + return true + } + + return false +} + +// SetCreditCost gets a reference to the given map[string]interface{} and assigns it to the CreditCost field. +func (o *V0PipelineShowResponseModel) SetCreditCost(v map[string]interface{}) { + o.CreditCost = v +} + +// GetCurrentAttemptId returns the CurrentAttemptId field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetCurrentAttemptId() string { + if o == nil || IsNil(o.CurrentAttemptId) { + var ret string + return ret + } + return *o.CurrentAttemptId +} + +// GetCurrentAttemptIdOk returns a tuple with the CurrentAttemptId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetCurrentAttemptIdOk() (*string, bool) { + if o == nil || IsNil(o.CurrentAttemptId) { + return nil, false + } + return o.CurrentAttemptId, true +} + +// HasCurrentAttemptId returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasCurrentAttemptId() bool { + if o != nil && !IsNil(o.CurrentAttemptId) { + return true + } + + return false +} + +// SetCurrentAttemptId gets a reference to the given string and assigns it to the CurrentAttemptId field. +func (o *V0PipelineShowResponseModel) SetCurrentAttemptId(v string) { + o.CurrentAttemptId = &v +} + +// GetFinishedAt returns the FinishedAt field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetFinishedAt() string { + if o == nil || IsNil(o.FinishedAt) { + var ret string + return ret + } + return *o.FinishedAt +} + +// GetFinishedAtOk returns a tuple with the FinishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetFinishedAtOk() (*string, bool) { + if o == nil || IsNil(o.FinishedAt) { + return nil, false + } + return o.FinishedAt, true +} + +// HasFinishedAt returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasFinishedAt() bool { + if o != nil && !IsNil(o.FinishedAt) { + return true + } + + return false +} + +// SetFinishedAt gets a reference to the given string and assigns it to the FinishedAt field. +func (o *V0PipelineShowResponseModel) SetFinishedAt(v string) { + o.FinishedAt = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) 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 *V0PipelineShowResponseModel) 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 *V0PipelineShowResponseModel) 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 *V0PipelineShowResponseModel) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) 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 *V0PipelineShowResponseModel) 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 *V0PipelineShowResponseModel) 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 *V0PipelineShowResponseModel) SetName(v string) { + o.Name = &v +} + +// GetNumberInAppScope returns the NumberInAppScope field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetNumberInAppScope() int32 { + if o == nil || IsNil(o.NumberInAppScope) { + var ret int32 + return ret + } + return *o.NumberInAppScope +} + +// GetNumberInAppScopeOk returns a tuple with the NumberInAppScope field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetNumberInAppScopeOk() (*int32, bool) { + if o == nil || IsNil(o.NumberInAppScope) { + return nil, false + } + return o.NumberInAppScope, true +} + +// HasNumberInAppScope returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasNumberInAppScope() bool { + if o != nil && !IsNil(o.NumberInAppScope) { + return true + } + + return false +} + +// SetNumberInAppScope gets a reference to the given int32 and assigns it to the NumberInAppScope field. +func (o *V0PipelineShowResponseModel) SetNumberInAppScope(v int32) { + o.NumberInAppScope = &v +} + +// GetPutOnHoldAt returns the PutOnHoldAt field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetPutOnHoldAt() map[string]interface{} { + if o == nil || IsNil(o.PutOnHoldAt) { + var ret map[string]interface{} + return ret + } + return o.PutOnHoldAt +} + +// GetPutOnHoldAtOk returns a tuple with the PutOnHoldAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetPutOnHoldAtOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.PutOnHoldAt) { + return map[string]interface{}{}, false + } + return o.PutOnHoldAt, true +} + +// HasPutOnHoldAt returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasPutOnHoldAt() bool { + if o != nil && !IsNil(o.PutOnHoldAt) { + return true + } + + return false +} + +// SetPutOnHoldAt gets a reference to the given map[string]interface{} and assigns it to the PutOnHoldAt field. +func (o *V0PipelineShowResponseModel) SetPutOnHoldAt(v map[string]interface{}) { + o.PutOnHoldAt = v +} + +// GetStages returns the Stages field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetStages() []V0PipelineShowStageResponseModel { + if o == nil || IsNil(o.Stages) { + var ret []V0PipelineShowStageResponseModel + return ret + } + return o.Stages +} + +// GetStagesOk returns a tuple with the Stages field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetStagesOk() ([]V0PipelineShowStageResponseModel, bool) { + if o == nil || IsNil(o.Stages) { + return nil, false + } + return o.Stages, true +} + +// HasStages returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasStages() bool { + if o != nil && !IsNil(o.Stages) { + return true + } + + return false +} + +// SetStages gets a reference to the given []V0PipelineShowStageResponseModel and assigns it to the Stages field. +func (o *V0PipelineShowResponseModel) SetStages(v []V0PipelineShowStageResponseModel) { + o.Stages = v +} + +// GetStartedAt returns the StartedAt field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetStartedAt() string { + if o == nil || IsNil(o.StartedAt) { + var ret string + return ret + } + return *o.StartedAt +} + +// GetStartedAtOk returns a tuple with the StartedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetStartedAtOk() (*string, bool) { + if o == nil || IsNil(o.StartedAt) { + return nil, false + } + return o.StartedAt, true +} + +// HasStartedAt returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasStartedAt() bool { + if o != nil && !IsNil(o.StartedAt) { + return true + } + + return false +} + +// SetStartedAt gets a reference to the given string and assigns it to the StartedAt field. +func (o *V0PipelineShowResponseModel) SetStartedAt(v string) { + o.StartedAt = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V0PipelineShowResponseModel) SetStatus(v string) { + o.Status = &v +} + +// GetTriggerParams returns the TriggerParams field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetTriggerParams() V0PipelineShowTriggerParamsResponseModel { + if o == nil || IsNil(o.TriggerParams) { + var ret V0PipelineShowTriggerParamsResponseModel + return ret + } + return *o.TriggerParams +} + +// GetTriggerParamsOk returns a tuple with the TriggerParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetTriggerParamsOk() (*V0PipelineShowTriggerParamsResponseModel, bool) { + if o == nil || IsNil(o.TriggerParams) { + return nil, false + } + return o.TriggerParams, true +} + +// HasTriggerParams returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasTriggerParams() bool { + if o != nil && !IsNil(o.TriggerParams) { + return true + } + + return false +} + +// SetTriggerParams gets a reference to the given V0PipelineShowTriggerParamsResponseModel and assigns it to the TriggerParams field. +func (o *V0PipelineShowResponseModel) SetTriggerParams(v V0PipelineShowTriggerParamsResponseModel) { + o.TriggerParams = &v +} + +// GetTriggeredAt returns the TriggeredAt field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetTriggeredAt() string { + if o == nil || IsNil(o.TriggeredAt) { + var ret string + return ret + } + return *o.TriggeredAt +} + +// GetTriggeredAtOk returns a tuple with the TriggeredAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetTriggeredAtOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredAt) { + return nil, false + } + return o.TriggeredAt, true +} + +// HasTriggeredAt returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasTriggeredAt() bool { + if o != nil && !IsNil(o.TriggeredAt) { + return true + } + + return false +} + +// SetTriggeredAt gets a reference to the given string and assigns it to the TriggeredAt field. +func (o *V0PipelineShowResponseModel) SetTriggeredAt(v string) { + o.TriggeredAt = &v +} + +// GetTriggeredBy returns the TriggeredBy field value if set, zero value otherwise. +func (o *V0PipelineShowResponseModel) GetTriggeredBy() string { + if o == nil || IsNil(o.TriggeredBy) { + var ret string + return ret + } + return *o.TriggeredBy +} + +// GetTriggeredByOk returns a tuple with the TriggeredBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowResponseModel) GetTriggeredByOk() (*string, bool) { + if o == nil || IsNil(o.TriggeredBy) { + return nil, false + } + return o.TriggeredBy, true +} + +// HasTriggeredBy returns a boolean if a field has been set. +func (o *V0PipelineShowResponseModel) HasTriggeredBy() bool { + if o != nil && !IsNil(o.TriggeredBy) { + return true + } + + return false +} + +// SetTriggeredBy gets a reference to the given string and assigns it to the TriggeredBy field. +func (o *V0PipelineShowResponseModel) SetTriggeredBy(v string) { + o.TriggeredBy = &v +} + +func (o V0PipelineShowResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineShowResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AbortReason) { + toSerialize["abort_reason"] = o.AbortReason + } + if !IsNil(o.App) { + toSerialize["app"] = o.App + } + if !IsNil(o.Attempts) { + toSerialize["attempts"] = o.Attempts + } + if !IsNil(o.CreditCost) { + toSerialize["credit_cost"] = o.CreditCost + } + if !IsNil(o.CurrentAttemptId) { + toSerialize["current_attempt_id"] = o.CurrentAttemptId + } + if !IsNil(o.FinishedAt) { + toSerialize["finished_at"] = o.FinishedAt + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.NumberInAppScope) { + toSerialize["number_in_app_scope"] = o.NumberInAppScope + } + if !IsNil(o.PutOnHoldAt) { + toSerialize["put_on_hold_at"] = o.PutOnHoldAt + } + if !IsNil(o.Stages) { + toSerialize["stages"] = o.Stages + } + if !IsNil(o.StartedAt) { + toSerialize["started_at"] = o.StartedAt + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.TriggerParams) { + toSerialize["trigger_params"] = o.TriggerParams + } + if !IsNil(o.TriggeredAt) { + toSerialize["triggered_at"] = o.TriggeredAt + } + if !IsNil(o.TriggeredBy) { + toSerialize["triggered_by"] = o.TriggeredBy + } + return toSerialize, nil +} + +type NullableV0PipelineShowResponseModel struct { + value *V0PipelineShowResponseModel + isSet bool +} + +func (v NullableV0PipelineShowResponseModel) Get() *V0PipelineShowResponseModel { + return v.value +} + +func (v *NullableV0PipelineShowResponseModel) Set(val *V0PipelineShowResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineShowResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineShowResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineShowResponseModel(val *V0PipelineShowResponseModel) *NullableV0PipelineShowResponseModel { + return &NullableV0PipelineShowResponseModel{value: val, isSet: true} +} + +func (v NullableV0PipelineShowResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineShowResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_show_stage_response_model.go b/go2/model_v0_pipeline_show_stage_response_model.go new file mode 100644 index 0000000..7443f5a --- /dev/null +++ b/go2/model_v0_pipeline_show_stage_response_model.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PipelineShowStageResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineShowStageResponseModel{} + +// V0PipelineShowStageResponseModel struct for V0PipelineShowStageResponseModel +type V0PipelineShowStageResponseModel struct { + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Workflows []V0PipelineShowWorkflowResponseModel `json:"workflows,omitempty"` +} + +// NewV0PipelineShowStageResponseModel instantiates a new V0PipelineShowStageResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineShowStageResponseModel() *V0PipelineShowStageResponseModel { + this := V0PipelineShowStageResponseModel{} + return &this +} + +// NewV0PipelineShowStageResponseModelWithDefaults instantiates a new V0PipelineShowStageResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineShowStageResponseModelWithDefaults() *V0PipelineShowStageResponseModel { + this := V0PipelineShowStageResponseModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *V0PipelineShowStageResponseModel) 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 *V0PipelineShowStageResponseModel) 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 *V0PipelineShowStageResponseModel) 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 *V0PipelineShowStageResponseModel) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V0PipelineShowStageResponseModel) 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 *V0PipelineShowStageResponseModel) 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 *V0PipelineShowStageResponseModel) 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 *V0PipelineShowStageResponseModel) SetName(v string) { + o.Name = &v +} + +// GetWorkflows returns the Workflows field value if set, zero value otherwise. +func (o *V0PipelineShowStageResponseModel) GetWorkflows() []V0PipelineShowWorkflowResponseModel { + if o == nil || IsNil(o.Workflows) { + var ret []V0PipelineShowWorkflowResponseModel + return ret + } + return o.Workflows +} + +// GetWorkflowsOk returns a tuple with the Workflows field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowStageResponseModel) GetWorkflowsOk() ([]V0PipelineShowWorkflowResponseModel, bool) { + if o == nil || IsNil(o.Workflows) { + return nil, false + } + return o.Workflows, true +} + +// HasWorkflows returns a boolean if a field has been set. +func (o *V0PipelineShowStageResponseModel) HasWorkflows() bool { + if o != nil && !IsNil(o.Workflows) { + return true + } + + return false +} + +// SetWorkflows gets a reference to the given []V0PipelineShowWorkflowResponseModel and assigns it to the Workflows field. +func (o *V0PipelineShowStageResponseModel) SetWorkflows(v []V0PipelineShowWorkflowResponseModel) { + o.Workflows = v +} + +func (o V0PipelineShowStageResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineShowStageResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Workflows) { + toSerialize["workflows"] = o.Workflows + } + return toSerialize, nil +} + +type NullableV0PipelineShowStageResponseModel struct { + value *V0PipelineShowStageResponseModel + isSet bool +} + +func (v NullableV0PipelineShowStageResponseModel) Get() *V0PipelineShowStageResponseModel { + return v.value +} + +func (v *NullableV0PipelineShowStageResponseModel) Set(val *V0PipelineShowStageResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineShowStageResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineShowStageResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineShowStageResponseModel(val *V0PipelineShowStageResponseModel) *NullableV0PipelineShowStageResponseModel { + return &NullableV0PipelineShowStageResponseModel{value: val, isSet: true} +} + +func (v NullableV0PipelineShowStageResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineShowStageResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_show_trigger_params_response_model.go b/go2/model_v0_pipeline_show_trigger_params_response_model.go new file mode 100644 index 0000000..3e801eb --- /dev/null +++ b/go2/model_v0_pipeline_show_trigger_params_response_model.go @@ -0,0 +1,595 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PipelineShowTriggerParamsResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineShowTriggerParamsResponseModel{} + +// V0PipelineShowTriggerParamsResponseModel struct for V0PipelineShowTriggerParamsResponseModel +type V0PipelineShowTriggerParamsResponseModel struct { + Branch *string `json:"branch,omitempty"` + BranchDest *string `json:"branch_dest,omitempty"` + BranchDestRepoOwner *string `json:"branch_dest_repo_owner,omitempty"` + BranchRepoOwner *string `json:"branch_repo_owner,omitempty"` + CommitHash *string `json:"commit_hash,omitempty"` + CommitMessage *string `json:"commit_message,omitempty"` + Environments []V0PipelineShowEnvironmentsResponseModel `json:"environments,omitempty"` + PullRequestAuthor *string `json:"pull_request_author,omitempty"` + PullRequestHeadBranch *string `json:"pull_request_head_branch,omitempty"` + PullRequestId *string `json:"pull_request_id,omitempty"` + PullRequestMergeBranch *string `json:"pull_request_merge_branch,omitempty"` + PullRequestRepositoryUrl *string `json:"pull_request_repository_url,omitempty"` + PullRequestUnverifiedMergeBranch *string `json:"pull_request_unverified_merge_branch,omitempty"` + Tag *string `json:"tag,omitempty"` +} + +// NewV0PipelineShowTriggerParamsResponseModel instantiates a new V0PipelineShowTriggerParamsResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineShowTriggerParamsResponseModel() *V0PipelineShowTriggerParamsResponseModel { + this := V0PipelineShowTriggerParamsResponseModel{} + return &this +} + +// NewV0PipelineShowTriggerParamsResponseModelWithDefaults instantiates a new V0PipelineShowTriggerParamsResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineShowTriggerParamsResponseModelWithDefaults() *V0PipelineShowTriggerParamsResponseModel { + this := V0PipelineShowTriggerParamsResponseModel{} + return &this +} + +// GetBranch returns the Branch field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetBranch() string { + if o == nil || IsNil(o.Branch) { + var ret string + return ret + } + return *o.Branch +} + +// GetBranchOk returns a tuple with the Branch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchOk() (*string, bool) { + if o == nil || IsNil(o.Branch) { + return nil, false + } + return o.Branch, true +} + +// HasBranch returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasBranch() bool { + if o != nil && !IsNil(o.Branch) { + return true + } + + return false +} + +// SetBranch gets a reference to the given string and assigns it to the Branch field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetBranch(v string) { + o.Branch = &v +} + +// GetBranchDest returns the BranchDest field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchDest() string { + if o == nil || IsNil(o.BranchDest) { + var ret string + return ret + } + return *o.BranchDest +} + +// GetBranchDestOk returns a tuple with the BranchDest field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchDestOk() (*string, bool) { + if o == nil || IsNil(o.BranchDest) { + return nil, false + } + return o.BranchDest, true +} + +// HasBranchDest returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasBranchDest() bool { + if o != nil && !IsNil(o.BranchDest) { + return true + } + + return false +} + +// SetBranchDest gets a reference to the given string and assigns it to the BranchDest field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetBranchDest(v string) { + o.BranchDest = &v +} + +// GetBranchDestRepoOwner returns the BranchDestRepoOwner field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchDestRepoOwner() string { + if o == nil || IsNil(o.BranchDestRepoOwner) { + var ret string + return ret + } + return *o.BranchDestRepoOwner +} + +// GetBranchDestRepoOwnerOk returns a tuple with the BranchDestRepoOwner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchDestRepoOwnerOk() (*string, bool) { + if o == nil || IsNil(o.BranchDestRepoOwner) { + return nil, false + } + return o.BranchDestRepoOwner, true +} + +// HasBranchDestRepoOwner returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasBranchDestRepoOwner() bool { + if o != nil && !IsNil(o.BranchDestRepoOwner) { + return true + } + + return false +} + +// SetBranchDestRepoOwner gets a reference to the given string and assigns it to the BranchDestRepoOwner field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetBranchDestRepoOwner(v string) { + o.BranchDestRepoOwner = &v +} + +// GetBranchRepoOwner returns the BranchRepoOwner field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchRepoOwner() string { + if o == nil || IsNil(o.BranchRepoOwner) { + var ret string + return ret + } + return *o.BranchRepoOwner +} + +// GetBranchRepoOwnerOk returns a tuple with the BranchRepoOwner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetBranchRepoOwnerOk() (*string, bool) { + if o == nil || IsNil(o.BranchRepoOwner) { + return nil, false + } + return o.BranchRepoOwner, true +} + +// HasBranchRepoOwner returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasBranchRepoOwner() bool { + if o != nil && !IsNil(o.BranchRepoOwner) { + return true + } + + return false +} + +// SetBranchRepoOwner gets a reference to the given string and assigns it to the BranchRepoOwner field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetBranchRepoOwner(v string) { + o.BranchRepoOwner = &v +} + +// GetCommitHash returns the CommitHash field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetCommitHash() string { + if o == nil || IsNil(o.CommitHash) { + var ret string + return ret + } + return *o.CommitHash +} + +// GetCommitHashOk returns a tuple with the CommitHash field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetCommitHashOk() (*string, bool) { + if o == nil || IsNil(o.CommitHash) { + return nil, false + } + return o.CommitHash, true +} + +// HasCommitHash returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasCommitHash() bool { + if o != nil && !IsNil(o.CommitHash) { + return true + } + + return false +} + +// SetCommitHash gets a reference to the given string and assigns it to the CommitHash field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetCommitHash(v string) { + o.CommitHash = &v +} + +// GetCommitMessage returns the CommitMessage field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetCommitMessage() string { + if o == nil || IsNil(o.CommitMessage) { + var ret string + return ret + } + return *o.CommitMessage +} + +// GetCommitMessageOk returns a tuple with the CommitMessage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetCommitMessageOk() (*string, bool) { + if o == nil || IsNil(o.CommitMessage) { + return nil, false + } + return o.CommitMessage, true +} + +// HasCommitMessage returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasCommitMessage() bool { + if o != nil && !IsNil(o.CommitMessage) { + return true + } + + return false +} + +// SetCommitMessage gets a reference to the given string and assigns it to the CommitMessage field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetCommitMessage(v string) { + o.CommitMessage = &v +} + +// GetEnvironments returns the Environments field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetEnvironments() []V0PipelineShowEnvironmentsResponseModel { + if o == nil || IsNil(o.Environments) { + var ret []V0PipelineShowEnvironmentsResponseModel + return ret + } + return o.Environments +} + +// GetEnvironmentsOk returns a tuple with the Environments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetEnvironmentsOk() ([]V0PipelineShowEnvironmentsResponseModel, bool) { + if o == nil || IsNil(o.Environments) { + return nil, false + } + return o.Environments, true +} + +// HasEnvironments returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasEnvironments() bool { + if o != nil && !IsNil(o.Environments) { + return true + } + + return false +} + +// SetEnvironments gets a reference to the given []V0PipelineShowEnvironmentsResponseModel and assigns it to the Environments field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetEnvironments(v []V0PipelineShowEnvironmentsResponseModel) { + o.Environments = v +} + +// GetPullRequestAuthor returns the PullRequestAuthor field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestAuthor() string { + if o == nil || IsNil(o.PullRequestAuthor) { + var ret string + return ret + } + return *o.PullRequestAuthor +} + +// GetPullRequestAuthorOk returns a tuple with the PullRequestAuthor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestAuthorOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestAuthor) { + return nil, false + } + return o.PullRequestAuthor, true +} + +// HasPullRequestAuthor returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasPullRequestAuthor() bool { + if o != nil && !IsNil(o.PullRequestAuthor) { + return true + } + + return false +} + +// SetPullRequestAuthor gets a reference to the given string and assigns it to the PullRequestAuthor field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetPullRequestAuthor(v string) { + o.PullRequestAuthor = &v +} + +// GetPullRequestHeadBranch returns the PullRequestHeadBranch field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestHeadBranch() string { + if o == nil || IsNil(o.PullRequestHeadBranch) { + var ret string + return ret + } + return *o.PullRequestHeadBranch +} + +// GetPullRequestHeadBranchOk returns a tuple with the PullRequestHeadBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestHeadBranchOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestHeadBranch) { + return nil, false + } + return o.PullRequestHeadBranch, true +} + +// HasPullRequestHeadBranch returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasPullRequestHeadBranch() bool { + if o != nil && !IsNil(o.PullRequestHeadBranch) { + return true + } + + return false +} + +// SetPullRequestHeadBranch gets a reference to the given string and assigns it to the PullRequestHeadBranch field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetPullRequestHeadBranch(v string) { + o.PullRequestHeadBranch = &v +} + +// GetPullRequestId returns the PullRequestId field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestId() string { + if o == nil || IsNil(o.PullRequestId) { + var ret string + return ret + } + return *o.PullRequestId +} + +// GetPullRequestIdOk returns a tuple with the PullRequestId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestIdOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestId) { + return nil, false + } + return o.PullRequestId, true +} + +// HasPullRequestId returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasPullRequestId() bool { + if o != nil && !IsNil(o.PullRequestId) { + return true + } + + return false +} + +// SetPullRequestId gets a reference to the given string and assigns it to the PullRequestId field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetPullRequestId(v string) { + o.PullRequestId = &v +} + +// GetPullRequestMergeBranch returns the PullRequestMergeBranch field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestMergeBranch() string { + if o == nil || IsNil(o.PullRequestMergeBranch) { + var ret string + return ret + } + return *o.PullRequestMergeBranch +} + +// GetPullRequestMergeBranchOk returns a tuple with the PullRequestMergeBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestMergeBranchOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestMergeBranch) { + return nil, false + } + return o.PullRequestMergeBranch, true +} + +// HasPullRequestMergeBranch returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasPullRequestMergeBranch() bool { + if o != nil && !IsNil(o.PullRequestMergeBranch) { + return true + } + + return false +} + +// SetPullRequestMergeBranch gets a reference to the given string and assigns it to the PullRequestMergeBranch field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetPullRequestMergeBranch(v string) { + o.PullRequestMergeBranch = &v +} + +// GetPullRequestRepositoryUrl returns the PullRequestRepositoryUrl field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestRepositoryUrl() string { + if o == nil || IsNil(o.PullRequestRepositoryUrl) { + var ret string + return ret + } + return *o.PullRequestRepositoryUrl +} + +// GetPullRequestRepositoryUrlOk returns a tuple with the PullRequestRepositoryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestRepositoryUrlOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestRepositoryUrl) { + return nil, false + } + return o.PullRequestRepositoryUrl, true +} + +// HasPullRequestRepositoryUrl returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasPullRequestRepositoryUrl() bool { + if o != nil && !IsNil(o.PullRequestRepositoryUrl) { + return true + } + + return false +} + +// SetPullRequestRepositoryUrl gets a reference to the given string and assigns it to the PullRequestRepositoryUrl field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetPullRequestRepositoryUrl(v string) { + o.PullRequestRepositoryUrl = &v +} + +// GetPullRequestUnverifiedMergeBranch returns the PullRequestUnverifiedMergeBranch field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestUnverifiedMergeBranch() string { + if o == nil || IsNil(o.PullRequestUnverifiedMergeBranch) { + var ret string + return ret + } + return *o.PullRequestUnverifiedMergeBranch +} + +// GetPullRequestUnverifiedMergeBranchOk returns a tuple with the PullRequestUnverifiedMergeBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetPullRequestUnverifiedMergeBranchOk() (*string, bool) { + if o == nil || IsNil(o.PullRequestUnverifiedMergeBranch) { + return nil, false + } + return o.PullRequestUnverifiedMergeBranch, true +} + +// HasPullRequestUnverifiedMergeBranch returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasPullRequestUnverifiedMergeBranch() bool { + if o != nil && !IsNil(o.PullRequestUnverifiedMergeBranch) { + return true + } + + return false +} + +// SetPullRequestUnverifiedMergeBranch gets a reference to the given string and assigns it to the PullRequestUnverifiedMergeBranch field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetPullRequestUnverifiedMergeBranch(v string) { + o.PullRequestUnverifiedMergeBranch = &v +} + +// GetTag returns the Tag field value if set, zero value otherwise. +func (o *V0PipelineShowTriggerParamsResponseModel) GetTag() string { + if o == nil || IsNil(o.Tag) { + var ret string + return ret + } + return *o.Tag +} + +// GetTagOk returns a tuple with the Tag field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) GetTagOk() (*string, bool) { + if o == nil || IsNil(o.Tag) { + return nil, false + } + return o.Tag, true +} + +// HasTag returns a boolean if a field has been set. +func (o *V0PipelineShowTriggerParamsResponseModel) HasTag() bool { + if o != nil && !IsNil(o.Tag) { + return true + } + + return false +} + +// SetTag gets a reference to the given string and assigns it to the Tag field. +func (o *V0PipelineShowTriggerParamsResponseModel) SetTag(v string) { + o.Tag = &v +} + +func (o V0PipelineShowTriggerParamsResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineShowTriggerParamsResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Branch) { + toSerialize["branch"] = o.Branch + } + if !IsNil(o.BranchDest) { + toSerialize["branch_dest"] = o.BranchDest + } + if !IsNil(o.BranchDestRepoOwner) { + toSerialize["branch_dest_repo_owner"] = o.BranchDestRepoOwner + } + if !IsNil(o.BranchRepoOwner) { + toSerialize["branch_repo_owner"] = o.BranchRepoOwner + } + if !IsNil(o.CommitHash) { + toSerialize["commit_hash"] = o.CommitHash + } + if !IsNil(o.CommitMessage) { + toSerialize["commit_message"] = o.CommitMessage + } + if !IsNil(o.Environments) { + toSerialize["environments"] = o.Environments + } + if !IsNil(o.PullRequestAuthor) { + toSerialize["pull_request_author"] = o.PullRequestAuthor + } + if !IsNil(o.PullRequestHeadBranch) { + toSerialize["pull_request_head_branch"] = o.PullRequestHeadBranch + } + if !IsNil(o.PullRequestId) { + toSerialize["pull_request_id"] = o.PullRequestId + } + if !IsNil(o.PullRequestMergeBranch) { + toSerialize["pull_request_merge_branch"] = o.PullRequestMergeBranch + } + if !IsNil(o.PullRequestRepositoryUrl) { + toSerialize["pull_request_repository_url"] = o.PullRequestRepositoryUrl + } + if !IsNil(o.PullRequestUnverifiedMergeBranch) { + toSerialize["pull_request_unverified_merge_branch"] = o.PullRequestUnverifiedMergeBranch + } + if !IsNil(o.Tag) { + toSerialize["tag"] = o.Tag + } + return toSerialize, nil +} + +type NullableV0PipelineShowTriggerParamsResponseModel struct { + value *V0PipelineShowTriggerParamsResponseModel + isSet bool +} + +func (v NullableV0PipelineShowTriggerParamsResponseModel) Get() *V0PipelineShowTriggerParamsResponseModel { + return v.value +} + +func (v *NullableV0PipelineShowTriggerParamsResponseModel) Set(val *V0PipelineShowTriggerParamsResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineShowTriggerParamsResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineShowTriggerParamsResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineShowTriggerParamsResponseModel(val *V0PipelineShowTriggerParamsResponseModel) *NullableV0PipelineShowTriggerParamsResponseModel { + return &NullableV0PipelineShowTriggerParamsResponseModel{value: val, isSet: true} +} + +func (v NullableV0PipelineShowTriggerParamsResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineShowTriggerParamsResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_pipeline_show_workflow_response_model.go b/go2/model_v0_pipeline_show_workflow_response_model.go new file mode 100644 index 0000000..94d99f5 --- /dev/null +++ b/go2/model_v0_pipeline_show_workflow_response_model.go @@ -0,0 +1,379 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PipelineShowWorkflowResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PipelineShowWorkflowResponseModel{} + +// V0PipelineShowWorkflowResponseModel struct for V0PipelineShowWorkflowResponseModel +type V0PipelineShowWorkflowResponseModel struct { + CreditCost map[string]interface{} `json:"credit_cost,omitempty"` + ExternalId *string `json:"external_id,omitempty"` + FinishedAt *string `json:"finished_at,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + StartFailureReason *string `json:"startFailureReason,omitempty"` + StartedAt *string `json:"started_at,omitempty"` + Status *string `json:"status,omitempty"` +} + +// NewV0PipelineShowWorkflowResponseModel instantiates a new V0PipelineShowWorkflowResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PipelineShowWorkflowResponseModel() *V0PipelineShowWorkflowResponseModel { + this := V0PipelineShowWorkflowResponseModel{} + return &this +} + +// NewV0PipelineShowWorkflowResponseModelWithDefaults instantiates a new V0PipelineShowWorkflowResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PipelineShowWorkflowResponseModelWithDefaults() *V0PipelineShowWorkflowResponseModel { + this := V0PipelineShowWorkflowResponseModel{} + return &this +} + +// GetCreditCost returns the CreditCost field value if set, zero value otherwise. +func (o *V0PipelineShowWorkflowResponseModel) GetCreditCost() map[string]interface{} { + if o == nil || IsNil(o.CreditCost) { + var ret map[string]interface{} + return ret + } + return o.CreditCost +} + +// GetCreditCostOk returns a tuple with the CreditCost field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowWorkflowResponseModel) GetCreditCostOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CreditCost) { + return map[string]interface{}{}, false + } + return o.CreditCost, true +} + +// HasCreditCost returns a boolean if a field has been set. +func (o *V0PipelineShowWorkflowResponseModel) HasCreditCost() bool { + if o != nil && !IsNil(o.CreditCost) { + return true + } + + return false +} + +// SetCreditCost gets a reference to the given map[string]interface{} and assigns it to the CreditCost field. +func (o *V0PipelineShowWorkflowResponseModel) SetCreditCost(v map[string]interface{}) { + o.CreditCost = v +} + +// GetExternalId returns the ExternalId field value if set, zero value otherwise. +func (o *V0PipelineShowWorkflowResponseModel) GetExternalId() string { + if o == nil || IsNil(o.ExternalId) { + var ret string + return ret + } + return *o.ExternalId +} + +// GetExternalIdOk returns a tuple with the ExternalId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowWorkflowResponseModel) GetExternalIdOk() (*string, bool) { + if o == nil || IsNil(o.ExternalId) { + return nil, false + } + return o.ExternalId, true +} + +// HasExternalId returns a boolean if a field has been set. +func (o *V0PipelineShowWorkflowResponseModel) HasExternalId() bool { + if o != nil && !IsNil(o.ExternalId) { + return true + } + + return false +} + +// SetExternalId gets a reference to the given string and assigns it to the ExternalId field. +func (o *V0PipelineShowWorkflowResponseModel) SetExternalId(v string) { + o.ExternalId = &v +} + +// GetFinishedAt returns the FinishedAt field value if set, zero value otherwise. +func (o *V0PipelineShowWorkflowResponseModel) GetFinishedAt() string { + if o == nil || IsNil(o.FinishedAt) { + var ret string + return ret + } + return *o.FinishedAt +} + +// GetFinishedAtOk returns a tuple with the FinishedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowWorkflowResponseModel) GetFinishedAtOk() (*string, bool) { + if o == nil || IsNil(o.FinishedAt) { + return nil, false + } + return o.FinishedAt, true +} + +// HasFinishedAt returns a boolean if a field has been set. +func (o *V0PipelineShowWorkflowResponseModel) HasFinishedAt() bool { + if o != nil && !IsNil(o.FinishedAt) { + return true + } + + return false +} + +// SetFinishedAt gets a reference to the given string and assigns it to the FinishedAt field. +func (o *V0PipelineShowWorkflowResponseModel) SetFinishedAt(v string) { + o.FinishedAt = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *V0PipelineShowWorkflowResponseModel) 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 *V0PipelineShowWorkflowResponseModel) 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 *V0PipelineShowWorkflowResponseModel) 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 *V0PipelineShowWorkflowResponseModel) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V0PipelineShowWorkflowResponseModel) 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 *V0PipelineShowWorkflowResponseModel) 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 *V0PipelineShowWorkflowResponseModel) 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 *V0PipelineShowWorkflowResponseModel) SetName(v string) { + o.Name = &v +} + +// GetStartFailureReason returns the StartFailureReason field value if set, zero value otherwise. +func (o *V0PipelineShowWorkflowResponseModel) GetStartFailureReason() string { + if o == nil || IsNil(o.StartFailureReason) { + var ret string + return ret + } + return *o.StartFailureReason +} + +// GetStartFailureReasonOk returns a tuple with the StartFailureReason field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowWorkflowResponseModel) GetStartFailureReasonOk() (*string, bool) { + if o == nil || IsNil(o.StartFailureReason) { + return nil, false + } + return o.StartFailureReason, true +} + +// HasStartFailureReason returns a boolean if a field has been set. +func (o *V0PipelineShowWorkflowResponseModel) HasStartFailureReason() bool { + if o != nil && !IsNil(o.StartFailureReason) { + return true + } + + return false +} + +// SetStartFailureReason gets a reference to the given string and assigns it to the StartFailureReason field. +func (o *V0PipelineShowWorkflowResponseModel) SetStartFailureReason(v string) { + o.StartFailureReason = &v +} + +// GetStartedAt returns the StartedAt field value if set, zero value otherwise. +func (o *V0PipelineShowWorkflowResponseModel) GetStartedAt() string { + if o == nil || IsNil(o.StartedAt) { + var ret string + return ret + } + return *o.StartedAt +} + +// GetStartedAtOk returns a tuple with the StartedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowWorkflowResponseModel) GetStartedAtOk() (*string, bool) { + if o == nil || IsNil(o.StartedAt) { + return nil, false + } + return o.StartedAt, true +} + +// HasStartedAt returns a boolean if a field has been set. +func (o *V0PipelineShowWorkflowResponseModel) HasStartedAt() bool { + if o != nil && !IsNil(o.StartedAt) { + return true + } + + return false +} + +// SetStartedAt gets a reference to the given string and assigns it to the StartedAt field. +func (o *V0PipelineShowWorkflowResponseModel) SetStartedAt(v string) { + o.StartedAt = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0PipelineShowWorkflowResponseModel) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PipelineShowWorkflowResponseModel) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0PipelineShowWorkflowResponseModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V0PipelineShowWorkflowResponseModel) SetStatus(v string) { + o.Status = &v +} + +func (o V0PipelineShowWorkflowResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PipelineShowWorkflowResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreditCost) { + toSerialize["credit_cost"] = o.CreditCost + } + if !IsNil(o.ExternalId) { + toSerialize["external_id"] = o.ExternalId + } + if !IsNil(o.FinishedAt) { + toSerialize["finished_at"] = o.FinishedAt + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.StartFailureReason) { + toSerialize["startFailureReason"] = o.StartFailureReason + } + if !IsNil(o.StartedAt) { + toSerialize["started_at"] = o.StartedAt + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableV0PipelineShowWorkflowResponseModel struct { + value *V0PipelineShowWorkflowResponseModel + isSet bool +} + +func (v NullableV0PipelineShowWorkflowResponseModel) Get() *V0PipelineShowWorkflowResponseModel { + return v.value +} + +func (v *NullableV0PipelineShowWorkflowResponseModel) Set(val *V0PipelineShowWorkflowResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PipelineShowWorkflowResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PipelineShowWorkflowResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PipelineShowWorkflowResponseModel(val *V0PipelineShowWorkflowResponseModel) *NullableV0PipelineShowWorkflowResponseModel { + return &NullableV0PipelineShowWorkflowResponseModel{value: val, isSet: true} +} + +func (v NullableV0PipelineShowWorkflowResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PipelineShowWorkflowResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_plan_data_model.go b/go2/model_v0_plan_data_model.go new file mode 100644 index 0000000..f978fae --- /dev/null +++ b/go2/model_v0_plan_data_model.go @@ -0,0 +1,271 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0PlanDataModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0PlanDataModel{} + +// V0PlanDataModel struct for V0PlanDataModel +type V0PlanDataModel struct { + ContainerCount *int32 `json:"container_count,omitempty"` + ExpiresAt *string `json:"expires_at,omitempty"` + Id *string `json:"id,omitempty"` + Name *string `json:"name,omitempty"` + Price *NullsInt64 `json:"price,omitempty"` +} + +// NewV0PlanDataModel instantiates a new V0PlanDataModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0PlanDataModel() *V0PlanDataModel { + this := V0PlanDataModel{} + return &this +} + +// NewV0PlanDataModelWithDefaults instantiates a new V0PlanDataModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0PlanDataModelWithDefaults() *V0PlanDataModel { + this := V0PlanDataModel{} + return &this +} + +// GetContainerCount returns the ContainerCount field value if set, zero value otherwise. +func (o *V0PlanDataModel) GetContainerCount() int32 { + if o == nil || IsNil(o.ContainerCount) { + var ret int32 + return ret + } + return *o.ContainerCount +} + +// GetContainerCountOk returns a tuple with the ContainerCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PlanDataModel) GetContainerCountOk() (*int32, bool) { + if o == nil || IsNil(o.ContainerCount) { + return nil, false + } + return o.ContainerCount, true +} + +// HasContainerCount returns a boolean if a field has been set. +func (o *V0PlanDataModel) HasContainerCount() bool { + if o != nil && !IsNil(o.ContainerCount) { + return true + } + + return false +} + +// SetContainerCount gets a reference to the given int32 and assigns it to the ContainerCount field. +func (o *V0PlanDataModel) SetContainerCount(v int32) { + o.ContainerCount = &v +} + +// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. +func (o *V0PlanDataModel) GetExpiresAt() string { + if o == nil || IsNil(o.ExpiresAt) { + var ret string + return ret + } + return *o.ExpiresAt +} + +// GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PlanDataModel) GetExpiresAtOk() (*string, bool) { + if o == nil || IsNil(o.ExpiresAt) { + return nil, false + } + return o.ExpiresAt, true +} + +// HasExpiresAt returns a boolean if a field has been set. +func (o *V0PlanDataModel) HasExpiresAt() bool { + if o != nil && !IsNil(o.ExpiresAt) { + return true + } + + return false +} + +// SetExpiresAt gets a reference to the given string and assigns it to the ExpiresAt field. +func (o *V0PlanDataModel) SetExpiresAt(v string) { + o.ExpiresAt = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *V0PlanDataModel) 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 *V0PlanDataModel) 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 *V0PlanDataModel) 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 *V0PlanDataModel) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V0PlanDataModel) 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 *V0PlanDataModel) 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 *V0PlanDataModel) 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 *V0PlanDataModel) SetName(v string) { + o.Name = &v +} + +// GetPrice returns the Price field value if set, zero value otherwise. +func (o *V0PlanDataModel) GetPrice() NullsInt64 { + if o == nil || IsNil(o.Price) { + var ret NullsInt64 + return ret + } + return *o.Price +} + +// GetPriceOk returns a tuple with the Price field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0PlanDataModel) GetPriceOk() (*NullsInt64, bool) { + if o == nil || IsNil(o.Price) { + return nil, false + } + return o.Price, true +} + +// HasPrice returns a boolean if a field has been set. +func (o *V0PlanDataModel) HasPrice() bool { + if o != nil && !IsNil(o.Price) { + return true + } + + return false +} + +// SetPrice gets a reference to the given NullsInt64 and assigns it to the Price field. +func (o *V0PlanDataModel) SetPrice(v NullsInt64) { + o.Price = &v +} + +func (o V0PlanDataModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0PlanDataModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ContainerCount) { + toSerialize["container_count"] = o.ContainerCount + } + if !IsNil(o.ExpiresAt) { + toSerialize["expires_at"] = o.ExpiresAt + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Price) { + toSerialize["price"] = o.Price + } + return toSerialize, nil +} + +type NullableV0PlanDataModel struct { + value *V0PlanDataModel + isSet bool +} + +func (v NullableV0PlanDataModel) Get() *V0PlanDataModel { + return v.value +} + +func (v *NullableV0PlanDataModel) Set(val *V0PlanDataModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0PlanDataModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0PlanDataModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0PlanDataModel(val *V0PlanDataModel) *NullableV0PlanDataModel { + return &NullableV0PlanDataModel{value: val, isSet: true} +} + +func (v NullableV0PlanDataModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0PlanDataModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_project_file_storage_document_update_params.go b/go2/model_v0_project_file_storage_document_update_params.go new file mode 100644 index 0000000..2644124 --- /dev/null +++ b/go2/model_v0_project_file_storage_document_update_params.go @@ -0,0 +1,271 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ProjectFileStorageDocumentUpdateParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ProjectFileStorageDocumentUpdateParams{} + +// V0ProjectFileStorageDocumentUpdateParams struct for V0ProjectFileStorageDocumentUpdateParams +type V0ProjectFileStorageDocumentUpdateParams struct { + ExposedMetaDatastore []int32 `json:"exposed_meta_datastore,omitempty"` + IsExpose *bool `json:"is_expose,omitempty"` + IsProtected *bool `json:"is_protected,omitempty"` + Processed *bool `json:"processed,omitempty"` + UserEnvKey *string `json:"user_env_key,omitempty"` +} + +// NewV0ProjectFileStorageDocumentUpdateParams instantiates a new V0ProjectFileStorageDocumentUpdateParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ProjectFileStorageDocumentUpdateParams() *V0ProjectFileStorageDocumentUpdateParams { + this := V0ProjectFileStorageDocumentUpdateParams{} + return &this +} + +// NewV0ProjectFileStorageDocumentUpdateParamsWithDefaults instantiates a new V0ProjectFileStorageDocumentUpdateParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ProjectFileStorageDocumentUpdateParamsWithDefaults() *V0ProjectFileStorageDocumentUpdateParams { + this := V0ProjectFileStorageDocumentUpdateParams{} + return &this +} + +// GetExposedMetaDatastore returns the ExposedMetaDatastore field value if set, zero value otherwise. +func (o *V0ProjectFileStorageDocumentUpdateParams) GetExposedMetaDatastore() []int32 { + if o == nil || IsNil(o.ExposedMetaDatastore) { + var ret []int32 + return ret + } + return o.ExposedMetaDatastore +} + +// GetExposedMetaDatastoreOk returns a tuple with the ExposedMetaDatastore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageDocumentUpdateParams) GetExposedMetaDatastoreOk() ([]int32, bool) { + if o == nil || IsNil(o.ExposedMetaDatastore) { + return nil, false + } + return o.ExposedMetaDatastore, true +} + +// HasExposedMetaDatastore returns a boolean if a field has been set. +func (o *V0ProjectFileStorageDocumentUpdateParams) HasExposedMetaDatastore() bool { + if o != nil && !IsNil(o.ExposedMetaDatastore) { + return true + } + + return false +} + +// SetExposedMetaDatastore gets a reference to the given []int32 and assigns it to the ExposedMetaDatastore field. +func (o *V0ProjectFileStorageDocumentUpdateParams) SetExposedMetaDatastore(v []int32) { + o.ExposedMetaDatastore = v +} + +// GetIsExpose returns the IsExpose field value if set, zero value otherwise. +func (o *V0ProjectFileStorageDocumentUpdateParams) GetIsExpose() bool { + if o == nil || IsNil(o.IsExpose) { + var ret bool + return ret + } + return *o.IsExpose +} + +// GetIsExposeOk returns a tuple with the IsExpose field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageDocumentUpdateParams) GetIsExposeOk() (*bool, bool) { + if o == nil || IsNil(o.IsExpose) { + return nil, false + } + return o.IsExpose, true +} + +// HasIsExpose returns a boolean if a field has been set. +func (o *V0ProjectFileStorageDocumentUpdateParams) HasIsExpose() bool { + if o != nil && !IsNil(o.IsExpose) { + return true + } + + return false +} + +// SetIsExpose gets a reference to the given bool and assigns it to the IsExpose field. +func (o *V0ProjectFileStorageDocumentUpdateParams) SetIsExpose(v bool) { + o.IsExpose = &v +} + +// GetIsProtected returns the IsProtected field value if set, zero value otherwise. +func (o *V0ProjectFileStorageDocumentUpdateParams) GetIsProtected() bool { + if o == nil || IsNil(o.IsProtected) { + var ret bool + return ret + } + return *o.IsProtected +} + +// GetIsProtectedOk returns a tuple with the IsProtected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageDocumentUpdateParams) GetIsProtectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsProtected) { + return nil, false + } + return o.IsProtected, true +} + +// HasIsProtected returns a boolean if a field has been set. +func (o *V0ProjectFileStorageDocumentUpdateParams) HasIsProtected() bool { + if o != nil && !IsNil(o.IsProtected) { + return true + } + + return false +} + +// SetIsProtected gets a reference to the given bool and assigns it to the IsProtected field. +func (o *V0ProjectFileStorageDocumentUpdateParams) SetIsProtected(v bool) { + o.IsProtected = &v +} + +// GetProcessed returns the Processed field value if set, zero value otherwise. +func (o *V0ProjectFileStorageDocumentUpdateParams) GetProcessed() bool { + if o == nil || IsNil(o.Processed) { + var ret bool + return ret + } + return *o.Processed +} + +// GetProcessedOk returns a tuple with the Processed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageDocumentUpdateParams) GetProcessedOk() (*bool, bool) { + if o == nil || IsNil(o.Processed) { + return nil, false + } + return o.Processed, true +} + +// HasProcessed returns a boolean if a field has been set. +func (o *V0ProjectFileStorageDocumentUpdateParams) HasProcessed() bool { + if o != nil && !IsNil(o.Processed) { + return true + } + + return false +} + +// SetProcessed gets a reference to the given bool and assigns it to the Processed field. +func (o *V0ProjectFileStorageDocumentUpdateParams) SetProcessed(v bool) { + o.Processed = &v +} + +// GetUserEnvKey returns the UserEnvKey field value if set, zero value otherwise. +func (o *V0ProjectFileStorageDocumentUpdateParams) GetUserEnvKey() string { + if o == nil || IsNil(o.UserEnvKey) { + var ret string + return ret + } + return *o.UserEnvKey +} + +// GetUserEnvKeyOk returns a tuple with the UserEnvKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageDocumentUpdateParams) GetUserEnvKeyOk() (*string, bool) { + if o == nil || IsNil(o.UserEnvKey) { + return nil, false + } + return o.UserEnvKey, true +} + +// HasUserEnvKey returns a boolean if a field has been set. +func (o *V0ProjectFileStorageDocumentUpdateParams) HasUserEnvKey() bool { + if o != nil && !IsNil(o.UserEnvKey) { + return true + } + + return false +} + +// SetUserEnvKey gets a reference to the given string and assigns it to the UserEnvKey field. +func (o *V0ProjectFileStorageDocumentUpdateParams) SetUserEnvKey(v string) { + o.UserEnvKey = &v +} + +func (o V0ProjectFileStorageDocumentUpdateParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ProjectFileStorageDocumentUpdateParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ExposedMetaDatastore) { + toSerialize["exposed_meta_datastore"] = o.ExposedMetaDatastore + } + if !IsNil(o.IsExpose) { + toSerialize["is_expose"] = o.IsExpose + } + if !IsNil(o.IsProtected) { + toSerialize["is_protected"] = o.IsProtected + } + if !IsNil(o.Processed) { + toSerialize["processed"] = o.Processed + } + if !IsNil(o.UserEnvKey) { + toSerialize["user_env_key"] = o.UserEnvKey + } + return toSerialize, nil +} + +type NullableV0ProjectFileStorageDocumentUpdateParams struct { + value *V0ProjectFileStorageDocumentUpdateParams + isSet bool +} + +func (v NullableV0ProjectFileStorageDocumentUpdateParams) Get() *V0ProjectFileStorageDocumentUpdateParams { + return v.value +} + +func (v *NullableV0ProjectFileStorageDocumentUpdateParams) Set(val *V0ProjectFileStorageDocumentUpdateParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0ProjectFileStorageDocumentUpdateParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ProjectFileStorageDocumentUpdateParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ProjectFileStorageDocumentUpdateParams(val *V0ProjectFileStorageDocumentUpdateParams) *NullableV0ProjectFileStorageDocumentUpdateParams { + return &NullableV0ProjectFileStorageDocumentUpdateParams{value: val, isSet: true} +} + +func (v NullableV0ProjectFileStorageDocumentUpdateParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ProjectFileStorageDocumentUpdateParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_project_file_storage_list_response_model.go b/go2/model_v0_project_file_storage_list_response_model.go new file mode 100644 index 0000000..61aa2cd --- /dev/null +++ b/go2/model_v0_project_file_storage_list_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ProjectFileStorageListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ProjectFileStorageListResponseModel{} + +// V0ProjectFileStorageListResponseModel struct for V0ProjectFileStorageListResponseModel +type V0ProjectFileStorageListResponseModel struct { + Data []V0ProjectFileStorageResponseItemModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0ProjectFileStorageListResponseModel instantiates a new V0ProjectFileStorageListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ProjectFileStorageListResponseModel() *V0ProjectFileStorageListResponseModel { + this := V0ProjectFileStorageListResponseModel{} + return &this +} + +// NewV0ProjectFileStorageListResponseModelWithDefaults instantiates a new V0ProjectFileStorageListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ProjectFileStorageListResponseModelWithDefaults() *V0ProjectFileStorageListResponseModel { + this := V0ProjectFileStorageListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0ProjectFileStorageListResponseModel) GetData() []V0ProjectFileStorageResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0ProjectFileStorageResponseItemModel + 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 *V0ProjectFileStorageListResponseModel) GetDataOk() ([]V0ProjectFileStorageResponseItemModel, 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 *V0ProjectFileStorageListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0ProjectFileStorageResponseItemModel and assigns it to the Data field. +func (o *V0ProjectFileStorageListResponseModel) SetData(v []V0ProjectFileStorageResponseItemModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0ProjectFileStorageListResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0ProjectFileStorageListResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0ProjectFileStorageListResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0ProjectFileStorageListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ProjectFileStorageListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0ProjectFileStorageListResponseModel struct { + value *V0ProjectFileStorageListResponseModel + isSet bool +} + +func (v NullableV0ProjectFileStorageListResponseModel) Get() *V0ProjectFileStorageListResponseModel { + return v.value +} + +func (v *NullableV0ProjectFileStorageListResponseModel) Set(val *V0ProjectFileStorageListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ProjectFileStorageListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ProjectFileStorageListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ProjectFileStorageListResponseModel(val *V0ProjectFileStorageListResponseModel) *NullableV0ProjectFileStorageListResponseModel { + return &NullableV0ProjectFileStorageListResponseModel{value: val, isSet: true} +} + +func (v NullableV0ProjectFileStorageListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ProjectFileStorageListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_project_file_storage_response_item_model.go b/go2/model_v0_project_file_storage_response_item_model.go new file mode 100644 index 0000000..5d81cb6 --- /dev/null +++ b/go2/model_v0_project_file_storage_response_item_model.go @@ -0,0 +1,451 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ProjectFileStorageResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ProjectFileStorageResponseItemModel{} + +// V0ProjectFileStorageResponseItemModel struct for V0ProjectFileStorageResponseItemModel +type V0ProjectFileStorageResponseItemModel struct { + DownloadUrl *string `json:"download_url,omitempty"` + ExposedMetaDatastore []int32 `json:"exposed_meta_datastore,omitempty"` + IsExpose *bool `json:"is_expose,omitempty"` + IsProtected *bool `json:"is_protected,omitempty"` + Processed *bool `json:"processed,omitempty"` + Slug *string `json:"slug,omitempty"` + UploadFileName *string `json:"upload_file_name,omitempty"` + UploadFileSize *int32 `json:"upload_file_size,omitempty"` + UploadUrl *string `json:"upload_url,omitempty"` + UserEnvKey *string `json:"user_env_key,omitempty"` +} + +// NewV0ProjectFileStorageResponseItemModel instantiates a new V0ProjectFileStorageResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ProjectFileStorageResponseItemModel() *V0ProjectFileStorageResponseItemModel { + this := V0ProjectFileStorageResponseItemModel{} + return &this +} + +// NewV0ProjectFileStorageResponseItemModelWithDefaults instantiates a new V0ProjectFileStorageResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ProjectFileStorageResponseItemModelWithDefaults() *V0ProjectFileStorageResponseItemModel { + this := V0ProjectFileStorageResponseItemModel{} + return &this +} + +// GetDownloadUrl returns the DownloadUrl field value if set, zero value otherwise. +func (o *V0ProjectFileStorageResponseItemModel) GetDownloadUrl() string { + if o == nil || IsNil(o.DownloadUrl) { + var ret string + return ret + } + return *o.DownloadUrl +} + +// GetDownloadUrlOk returns a tuple with the DownloadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageResponseItemModel) GetDownloadUrlOk() (*string, bool) { + if o == nil || IsNil(o.DownloadUrl) { + return nil, false + } + return o.DownloadUrl, true +} + +// HasDownloadUrl returns a boolean if a field has been set. +func (o *V0ProjectFileStorageResponseItemModel) HasDownloadUrl() bool { + if o != nil && !IsNil(o.DownloadUrl) { + return true + } + + return false +} + +// SetDownloadUrl gets a reference to the given string and assigns it to the DownloadUrl field. +func (o *V0ProjectFileStorageResponseItemModel) SetDownloadUrl(v string) { + o.DownloadUrl = &v +} + +// GetExposedMetaDatastore returns the ExposedMetaDatastore field value if set, zero value otherwise. +func (o *V0ProjectFileStorageResponseItemModel) GetExposedMetaDatastore() []int32 { + if o == nil || IsNil(o.ExposedMetaDatastore) { + var ret []int32 + return ret + } + return o.ExposedMetaDatastore +} + +// GetExposedMetaDatastoreOk returns a tuple with the ExposedMetaDatastore field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageResponseItemModel) GetExposedMetaDatastoreOk() ([]int32, bool) { + if o == nil || IsNil(o.ExposedMetaDatastore) { + return nil, false + } + return o.ExposedMetaDatastore, true +} + +// HasExposedMetaDatastore returns a boolean if a field has been set. +func (o *V0ProjectFileStorageResponseItemModel) HasExposedMetaDatastore() bool { + if o != nil && !IsNil(o.ExposedMetaDatastore) { + return true + } + + return false +} + +// SetExposedMetaDatastore gets a reference to the given []int32 and assigns it to the ExposedMetaDatastore field. +func (o *V0ProjectFileStorageResponseItemModel) SetExposedMetaDatastore(v []int32) { + o.ExposedMetaDatastore = v +} + +// GetIsExpose returns the IsExpose field value if set, zero value otherwise. +func (o *V0ProjectFileStorageResponseItemModel) GetIsExpose() bool { + if o == nil || IsNil(o.IsExpose) { + var ret bool + return ret + } + return *o.IsExpose +} + +// GetIsExposeOk returns a tuple with the IsExpose field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageResponseItemModel) GetIsExposeOk() (*bool, bool) { + if o == nil || IsNil(o.IsExpose) { + return nil, false + } + return o.IsExpose, true +} + +// HasIsExpose returns a boolean if a field has been set. +func (o *V0ProjectFileStorageResponseItemModel) HasIsExpose() bool { + if o != nil && !IsNil(o.IsExpose) { + return true + } + + return false +} + +// SetIsExpose gets a reference to the given bool and assigns it to the IsExpose field. +func (o *V0ProjectFileStorageResponseItemModel) SetIsExpose(v bool) { + o.IsExpose = &v +} + +// GetIsProtected returns the IsProtected field value if set, zero value otherwise. +func (o *V0ProjectFileStorageResponseItemModel) GetIsProtected() bool { + if o == nil || IsNil(o.IsProtected) { + var ret bool + return ret + } + return *o.IsProtected +} + +// GetIsProtectedOk returns a tuple with the IsProtected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageResponseItemModel) GetIsProtectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsProtected) { + return nil, false + } + return o.IsProtected, true +} + +// HasIsProtected returns a boolean if a field has been set. +func (o *V0ProjectFileStorageResponseItemModel) HasIsProtected() bool { + if o != nil && !IsNil(o.IsProtected) { + return true + } + + return false +} + +// SetIsProtected gets a reference to the given bool and assigns it to the IsProtected field. +func (o *V0ProjectFileStorageResponseItemModel) SetIsProtected(v bool) { + o.IsProtected = &v +} + +// GetProcessed returns the Processed field value if set, zero value otherwise. +func (o *V0ProjectFileStorageResponseItemModel) GetProcessed() bool { + if o == nil || IsNil(o.Processed) { + var ret bool + return ret + } + return *o.Processed +} + +// GetProcessedOk returns a tuple with the Processed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageResponseItemModel) GetProcessedOk() (*bool, bool) { + if o == nil || IsNil(o.Processed) { + return nil, false + } + return o.Processed, true +} + +// HasProcessed returns a boolean if a field has been set. +func (o *V0ProjectFileStorageResponseItemModel) HasProcessed() bool { + if o != nil && !IsNil(o.Processed) { + return true + } + + return false +} + +// SetProcessed gets a reference to the given bool and assigns it to the Processed field. +func (o *V0ProjectFileStorageResponseItemModel) SetProcessed(v bool) { + o.Processed = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0ProjectFileStorageResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0ProjectFileStorageResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0ProjectFileStorageResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetUploadFileName returns the UploadFileName field value if set, zero value otherwise. +func (o *V0ProjectFileStorageResponseItemModel) GetUploadFileName() string { + if o == nil || IsNil(o.UploadFileName) { + var ret string + return ret + } + return *o.UploadFileName +} + +// GetUploadFileNameOk returns a tuple with the UploadFileName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageResponseItemModel) GetUploadFileNameOk() (*string, bool) { + if o == nil || IsNil(o.UploadFileName) { + return nil, false + } + return o.UploadFileName, true +} + +// HasUploadFileName returns a boolean if a field has been set. +func (o *V0ProjectFileStorageResponseItemModel) HasUploadFileName() bool { + if o != nil && !IsNil(o.UploadFileName) { + return true + } + + return false +} + +// SetUploadFileName gets a reference to the given string and assigns it to the UploadFileName field. +func (o *V0ProjectFileStorageResponseItemModel) SetUploadFileName(v string) { + o.UploadFileName = &v +} + +// GetUploadFileSize returns the UploadFileSize field value if set, zero value otherwise. +func (o *V0ProjectFileStorageResponseItemModel) GetUploadFileSize() int32 { + if o == nil || IsNil(o.UploadFileSize) { + var ret int32 + return ret + } + return *o.UploadFileSize +} + +// GetUploadFileSizeOk returns a tuple with the UploadFileSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageResponseItemModel) GetUploadFileSizeOk() (*int32, bool) { + if o == nil || IsNil(o.UploadFileSize) { + return nil, false + } + return o.UploadFileSize, true +} + +// HasUploadFileSize returns a boolean if a field has been set. +func (o *V0ProjectFileStorageResponseItemModel) HasUploadFileSize() bool { + if o != nil && !IsNil(o.UploadFileSize) { + return true + } + + return false +} + +// SetUploadFileSize gets a reference to the given int32 and assigns it to the UploadFileSize field. +func (o *V0ProjectFileStorageResponseItemModel) SetUploadFileSize(v int32) { + o.UploadFileSize = &v +} + +// GetUploadUrl returns the UploadUrl field value if set, zero value otherwise. +func (o *V0ProjectFileStorageResponseItemModel) GetUploadUrl() string { + if o == nil || IsNil(o.UploadUrl) { + var ret string + return ret + } + return *o.UploadUrl +} + +// GetUploadUrlOk returns a tuple with the UploadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageResponseItemModel) GetUploadUrlOk() (*string, bool) { + if o == nil || IsNil(o.UploadUrl) { + return nil, false + } + return o.UploadUrl, true +} + +// HasUploadUrl returns a boolean if a field has been set. +func (o *V0ProjectFileStorageResponseItemModel) HasUploadUrl() bool { + if o != nil && !IsNil(o.UploadUrl) { + return true + } + + return false +} + +// SetUploadUrl gets a reference to the given string and assigns it to the UploadUrl field. +func (o *V0ProjectFileStorageResponseItemModel) SetUploadUrl(v string) { + o.UploadUrl = &v +} + +// GetUserEnvKey returns the UserEnvKey field value if set, zero value otherwise. +func (o *V0ProjectFileStorageResponseItemModel) GetUserEnvKey() string { + if o == nil || IsNil(o.UserEnvKey) { + var ret string + return ret + } + return *o.UserEnvKey +} + +// GetUserEnvKeyOk returns a tuple with the UserEnvKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageResponseItemModel) GetUserEnvKeyOk() (*string, bool) { + if o == nil || IsNil(o.UserEnvKey) { + return nil, false + } + return o.UserEnvKey, true +} + +// HasUserEnvKey returns a boolean if a field has been set. +func (o *V0ProjectFileStorageResponseItemModel) HasUserEnvKey() bool { + if o != nil && !IsNil(o.UserEnvKey) { + return true + } + + return false +} + +// SetUserEnvKey gets a reference to the given string and assigns it to the UserEnvKey field. +func (o *V0ProjectFileStorageResponseItemModel) SetUserEnvKey(v string) { + o.UserEnvKey = &v +} + +func (o V0ProjectFileStorageResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ProjectFileStorageResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DownloadUrl) { + toSerialize["download_url"] = o.DownloadUrl + } + if !IsNil(o.ExposedMetaDatastore) { + toSerialize["exposed_meta_datastore"] = o.ExposedMetaDatastore + } + if !IsNil(o.IsExpose) { + toSerialize["is_expose"] = o.IsExpose + } + if !IsNil(o.IsProtected) { + toSerialize["is_protected"] = o.IsProtected + } + if !IsNil(o.Processed) { + toSerialize["processed"] = o.Processed + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.UploadFileName) { + toSerialize["upload_file_name"] = o.UploadFileName + } + if !IsNil(o.UploadFileSize) { + toSerialize["upload_file_size"] = o.UploadFileSize + } + if !IsNil(o.UploadUrl) { + toSerialize["upload_url"] = o.UploadUrl + } + if !IsNil(o.UserEnvKey) { + toSerialize["user_env_key"] = o.UserEnvKey + } + return toSerialize, nil +} + +type NullableV0ProjectFileStorageResponseItemModel struct { + value *V0ProjectFileStorageResponseItemModel + isSet bool +} + +func (v NullableV0ProjectFileStorageResponseItemModel) Get() *V0ProjectFileStorageResponseItemModel { + return v.value +} + +func (v *NullableV0ProjectFileStorageResponseItemModel) Set(val *V0ProjectFileStorageResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ProjectFileStorageResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ProjectFileStorageResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ProjectFileStorageResponseItemModel(val *V0ProjectFileStorageResponseItemModel) *NullableV0ProjectFileStorageResponseItemModel { + return &NullableV0ProjectFileStorageResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0ProjectFileStorageResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ProjectFileStorageResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_project_file_storage_response_model.go b/go2/model_v0_project_file_storage_response_model.go new file mode 100644 index 0000000..c087ad3 --- /dev/null +++ b/go2/model_v0_project_file_storage_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ProjectFileStorageResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ProjectFileStorageResponseModel{} + +// V0ProjectFileStorageResponseModel struct for V0ProjectFileStorageResponseModel +type V0ProjectFileStorageResponseModel struct { + Data *V0ProjectFileStorageResponseItemModel `json:"data,omitempty"` +} + +// NewV0ProjectFileStorageResponseModel instantiates a new V0ProjectFileStorageResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ProjectFileStorageResponseModel() *V0ProjectFileStorageResponseModel { + this := V0ProjectFileStorageResponseModel{} + return &this +} + +// NewV0ProjectFileStorageResponseModelWithDefaults instantiates a new V0ProjectFileStorageResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ProjectFileStorageResponseModelWithDefaults() *V0ProjectFileStorageResponseModel { + this := V0ProjectFileStorageResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0ProjectFileStorageResponseModel) GetData() V0ProjectFileStorageResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret V0ProjectFileStorageResponseItemModel + 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 *V0ProjectFileStorageResponseModel) GetDataOk() (*V0ProjectFileStorageResponseItemModel, 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 *V0ProjectFileStorageResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0ProjectFileStorageResponseItemModel and assigns it to the Data field. +func (o *V0ProjectFileStorageResponseModel) SetData(v V0ProjectFileStorageResponseItemModel) { + o.Data = &v +} + +func (o V0ProjectFileStorageResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ProjectFileStorageResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0ProjectFileStorageResponseModel struct { + value *V0ProjectFileStorageResponseModel + isSet bool +} + +func (v NullableV0ProjectFileStorageResponseModel) Get() *V0ProjectFileStorageResponseModel { + return v.value +} + +func (v *NullableV0ProjectFileStorageResponseModel) Set(val *V0ProjectFileStorageResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ProjectFileStorageResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ProjectFileStorageResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ProjectFileStorageResponseModel(val *V0ProjectFileStorageResponseModel) *NullableV0ProjectFileStorageResponseModel { + return &NullableV0ProjectFileStorageResponseModel{value: val, isSet: true} +} + +func (v NullableV0ProjectFileStorageResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ProjectFileStorageResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_project_file_storage_upload_params.go b/go2/model_v0_project_file_storage_upload_params.go new file mode 100644 index 0000000..982f816 --- /dev/null +++ b/go2/model_v0_project_file_storage_upload_params.go @@ -0,0 +1,212 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0ProjectFileStorageUploadParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ProjectFileStorageUploadParams{} + +// V0ProjectFileStorageUploadParams struct for V0ProjectFileStorageUploadParams +type V0ProjectFileStorageUploadParams struct { + UploadFileName string `json:"upload_file_name"` + UploadFileSize int32 `json:"upload_file_size"` + UserEnvKey string `json:"user_env_key"` +} + +type _V0ProjectFileStorageUploadParams V0ProjectFileStorageUploadParams + +// NewV0ProjectFileStorageUploadParams instantiates a new V0ProjectFileStorageUploadParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ProjectFileStorageUploadParams(uploadFileName string, uploadFileSize int32, userEnvKey string) *V0ProjectFileStorageUploadParams { + this := V0ProjectFileStorageUploadParams{} + this.UploadFileName = uploadFileName + this.UploadFileSize = uploadFileSize + this.UserEnvKey = userEnvKey + return &this +} + +// NewV0ProjectFileStorageUploadParamsWithDefaults instantiates a new V0ProjectFileStorageUploadParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ProjectFileStorageUploadParamsWithDefaults() *V0ProjectFileStorageUploadParams { + this := V0ProjectFileStorageUploadParams{} + return &this +} + +// GetUploadFileName returns the UploadFileName field value +func (o *V0ProjectFileStorageUploadParams) GetUploadFileName() string { + if o == nil { + var ret string + return ret + } + + return o.UploadFileName +} + +// GetUploadFileNameOk returns a tuple with the UploadFileName field value +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageUploadParams) GetUploadFileNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UploadFileName, true +} + +// SetUploadFileName sets field value +func (o *V0ProjectFileStorageUploadParams) SetUploadFileName(v string) { + o.UploadFileName = v +} + +// GetUploadFileSize returns the UploadFileSize field value +func (o *V0ProjectFileStorageUploadParams) GetUploadFileSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.UploadFileSize +} + +// GetUploadFileSizeOk returns a tuple with the UploadFileSize field value +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageUploadParams) GetUploadFileSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.UploadFileSize, true +} + +// SetUploadFileSize sets field value +func (o *V0ProjectFileStorageUploadParams) SetUploadFileSize(v int32) { + o.UploadFileSize = v +} + +// GetUserEnvKey returns the UserEnvKey field value +func (o *V0ProjectFileStorageUploadParams) GetUserEnvKey() string { + if o == nil { + var ret string + return ret + } + + return o.UserEnvKey +} + +// GetUserEnvKeyOk returns a tuple with the UserEnvKey field value +// and a boolean to check if the value has been set. +func (o *V0ProjectFileStorageUploadParams) GetUserEnvKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserEnvKey, true +} + +// SetUserEnvKey sets field value +func (o *V0ProjectFileStorageUploadParams) SetUserEnvKey(v string) { + o.UserEnvKey = v +} + +func (o V0ProjectFileStorageUploadParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ProjectFileStorageUploadParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["upload_file_name"] = o.UploadFileName + toSerialize["upload_file_size"] = o.UploadFileSize + toSerialize["user_env_key"] = o.UserEnvKey + return toSerialize, nil +} + +func (o *V0ProjectFileStorageUploadParams) UnmarshalJSON(bytes []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{ + "upload_file_name", + "upload_file_size", + "user_env_key", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0ProjectFileStorageUploadParams := _V0ProjectFileStorageUploadParams{} + + err = json.Unmarshal(bytes, &varV0ProjectFileStorageUploadParams) + + if err != nil { + return err + } + + *o = V0ProjectFileStorageUploadParams(varV0ProjectFileStorageUploadParams) + + return err +} + +type NullableV0ProjectFileStorageUploadParams struct { + value *V0ProjectFileStorageUploadParams + isSet bool +} + +func (v NullableV0ProjectFileStorageUploadParams) Get() *V0ProjectFileStorageUploadParams { + return v.value +} + +func (v *NullableV0ProjectFileStorageUploadParams) Set(val *V0ProjectFileStorageUploadParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0ProjectFileStorageUploadParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ProjectFileStorageUploadParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ProjectFileStorageUploadParams(val *V0ProjectFileStorageUploadParams) *NullableV0ProjectFileStorageUploadParams { + return &NullableV0ProjectFileStorageUploadParams{value: val, isSet: true} +} + +func (v NullableV0ProjectFileStorageUploadParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ProjectFileStorageUploadParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_prov_profile_document_update_params.go b/go2/model_v0_prov_profile_document_update_params.go new file mode 100644 index 0000000..b123757 --- /dev/null +++ b/go2/model_v0_prov_profile_document_update_params.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ProvProfileDocumentUpdateParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ProvProfileDocumentUpdateParams{} + +// V0ProvProfileDocumentUpdateParams struct for V0ProvProfileDocumentUpdateParams +type V0ProvProfileDocumentUpdateParams struct { + IsExpose *bool `json:"is_expose,omitempty"` + IsProtected *bool `json:"is_protected,omitempty"` + Processed *bool `json:"processed,omitempty"` +} + +// NewV0ProvProfileDocumentUpdateParams instantiates a new V0ProvProfileDocumentUpdateParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ProvProfileDocumentUpdateParams() *V0ProvProfileDocumentUpdateParams { + this := V0ProvProfileDocumentUpdateParams{} + return &this +} + +// NewV0ProvProfileDocumentUpdateParamsWithDefaults instantiates a new V0ProvProfileDocumentUpdateParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ProvProfileDocumentUpdateParamsWithDefaults() *V0ProvProfileDocumentUpdateParams { + this := V0ProvProfileDocumentUpdateParams{} + return &this +} + +// GetIsExpose returns the IsExpose field value if set, zero value otherwise. +func (o *V0ProvProfileDocumentUpdateParams) GetIsExpose() bool { + if o == nil || IsNil(o.IsExpose) { + var ret bool + return ret + } + return *o.IsExpose +} + +// GetIsExposeOk returns a tuple with the IsExpose field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProvProfileDocumentUpdateParams) GetIsExposeOk() (*bool, bool) { + if o == nil || IsNil(o.IsExpose) { + return nil, false + } + return o.IsExpose, true +} + +// HasIsExpose returns a boolean if a field has been set. +func (o *V0ProvProfileDocumentUpdateParams) HasIsExpose() bool { + if o != nil && !IsNil(o.IsExpose) { + return true + } + + return false +} + +// SetIsExpose gets a reference to the given bool and assigns it to the IsExpose field. +func (o *V0ProvProfileDocumentUpdateParams) SetIsExpose(v bool) { + o.IsExpose = &v +} + +// GetIsProtected returns the IsProtected field value if set, zero value otherwise. +func (o *V0ProvProfileDocumentUpdateParams) GetIsProtected() bool { + if o == nil || IsNil(o.IsProtected) { + var ret bool + return ret + } + return *o.IsProtected +} + +// GetIsProtectedOk returns a tuple with the IsProtected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProvProfileDocumentUpdateParams) GetIsProtectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsProtected) { + return nil, false + } + return o.IsProtected, true +} + +// HasIsProtected returns a boolean if a field has been set. +func (o *V0ProvProfileDocumentUpdateParams) HasIsProtected() bool { + if o != nil && !IsNil(o.IsProtected) { + return true + } + + return false +} + +// SetIsProtected gets a reference to the given bool and assigns it to the IsProtected field. +func (o *V0ProvProfileDocumentUpdateParams) SetIsProtected(v bool) { + o.IsProtected = &v +} + +// GetProcessed returns the Processed field value if set, zero value otherwise. +func (o *V0ProvProfileDocumentUpdateParams) GetProcessed() bool { + if o == nil || IsNil(o.Processed) { + var ret bool + return ret + } + return *o.Processed +} + +// GetProcessedOk returns a tuple with the Processed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProvProfileDocumentUpdateParams) GetProcessedOk() (*bool, bool) { + if o == nil || IsNil(o.Processed) { + return nil, false + } + return o.Processed, true +} + +// HasProcessed returns a boolean if a field has been set. +func (o *V0ProvProfileDocumentUpdateParams) HasProcessed() bool { + if o != nil && !IsNil(o.Processed) { + return true + } + + return false +} + +// SetProcessed gets a reference to the given bool and assigns it to the Processed field. +func (o *V0ProvProfileDocumentUpdateParams) SetProcessed(v bool) { + o.Processed = &v +} + +func (o V0ProvProfileDocumentUpdateParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ProvProfileDocumentUpdateParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.IsExpose) { + toSerialize["is_expose"] = o.IsExpose + } + if !IsNil(o.IsProtected) { + toSerialize["is_protected"] = o.IsProtected + } + if !IsNil(o.Processed) { + toSerialize["processed"] = o.Processed + } + return toSerialize, nil +} + +type NullableV0ProvProfileDocumentUpdateParams struct { + value *V0ProvProfileDocumentUpdateParams + isSet bool +} + +func (v NullableV0ProvProfileDocumentUpdateParams) Get() *V0ProvProfileDocumentUpdateParams { + return v.value +} + +func (v *NullableV0ProvProfileDocumentUpdateParams) Set(val *V0ProvProfileDocumentUpdateParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0ProvProfileDocumentUpdateParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ProvProfileDocumentUpdateParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ProvProfileDocumentUpdateParams(val *V0ProvProfileDocumentUpdateParams) *NullableV0ProvProfileDocumentUpdateParams { + return &NullableV0ProvProfileDocumentUpdateParams{value: val, isSet: true} +} + +func (v NullableV0ProvProfileDocumentUpdateParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ProvProfileDocumentUpdateParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_provision_profile_list_response_model.go b/go2/model_v0_provision_profile_list_response_model.go new file mode 100644 index 0000000..528ea92 --- /dev/null +++ b/go2/model_v0_provision_profile_list_response_model.go @@ -0,0 +1,163 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ProvisionProfileListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ProvisionProfileListResponseModel{} + +// V0ProvisionProfileListResponseModel struct for V0ProvisionProfileListResponseModel +type V0ProvisionProfileListResponseModel struct { + Data []V0ProvisionProfileResponseItemModel `json:"data,omitempty"` + Paging *V0PagingResponseModel `json:"paging,omitempty"` +} + +// NewV0ProvisionProfileListResponseModel instantiates a new V0ProvisionProfileListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ProvisionProfileListResponseModel() *V0ProvisionProfileListResponseModel { + this := V0ProvisionProfileListResponseModel{} + return &this +} + +// NewV0ProvisionProfileListResponseModelWithDefaults instantiates a new V0ProvisionProfileListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ProvisionProfileListResponseModelWithDefaults() *V0ProvisionProfileListResponseModel { + this := V0ProvisionProfileListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0ProvisionProfileListResponseModel) GetData() []V0ProvisionProfileResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0ProvisionProfileResponseItemModel + 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 *V0ProvisionProfileListResponseModel) GetDataOk() ([]V0ProvisionProfileResponseItemModel, 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 *V0ProvisionProfileListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0ProvisionProfileResponseItemModel and assigns it to the Data field. +func (o *V0ProvisionProfileListResponseModel) SetData(v []V0ProvisionProfileResponseItemModel) { + o.Data = v +} + +// GetPaging returns the Paging field value if set, zero value otherwise. +func (o *V0ProvisionProfileListResponseModel) GetPaging() V0PagingResponseModel { + if o == nil || IsNil(o.Paging) { + var ret V0PagingResponseModel + return ret + } + return *o.Paging +} + +// GetPagingOk returns a tuple with the Paging field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProvisionProfileListResponseModel) GetPagingOk() (*V0PagingResponseModel, bool) { + if o == nil || IsNil(o.Paging) { + return nil, false + } + return o.Paging, true +} + +// HasPaging returns a boolean if a field has been set. +func (o *V0ProvisionProfileListResponseModel) HasPaging() bool { + if o != nil && !IsNil(o.Paging) { + return true + } + + return false +} + +// SetPaging gets a reference to the given V0PagingResponseModel and assigns it to the Paging field. +func (o *V0ProvisionProfileListResponseModel) SetPaging(v V0PagingResponseModel) { + o.Paging = &v +} + +func (o V0ProvisionProfileListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ProvisionProfileListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + if !IsNil(o.Paging) { + toSerialize["paging"] = o.Paging + } + return toSerialize, nil +} + +type NullableV0ProvisionProfileListResponseModel struct { + value *V0ProvisionProfileListResponseModel + isSet bool +} + +func (v NullableV0ProvisionProfileListResponseModel) Get() *V0ProvisionProfileListResponseModel { + return v.value +} + +func (v *NullableV0ProvisionProfileListResponseModel) Set(val *V0ProvisionProfileListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ProvisionProfileListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ProvisionProfileListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ProvisionProfileListResponseModel(val *V0ProvisionProfileListResponseModel) *NullableV0ProvisionProfileListResponseModel { + return &NullableV0ProvisionProfileListResponseModel{value: val, isSet: true} +} + +func (v NullableV0ProvisionProfileListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ProvisionProfileListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_provision_profile_response_item_model.go b/go2/model_v0_provision_profile_response_item_model.go new file mode 100644 index 0000000..8c5ebb1 --- /dev/null +++ b/go2/model_v0_provision_profile_response_item_model.go @@ -0,0 +1,379 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ProvisionProfileResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ProvisionProfileResponseItemModel{} + +// V0ProvisionProfileResponseItemModel struct for V0ProvisionProfileResponseItemModel +type V0ProvisionProfileResponseItemModel struct { + DownloadUrl *string `json:"download_url,omitempty"` + IsExpose *bool `json:"is_expose,omitempty"` + IsProtected *bool `json:"is_protected,omitempty"` + Processed *bool `json:"processed,omitempty"` + Slug *string `json:"slug,omitempty"` + UploadFileName *string `json:"upload_file_name,omitempty"` + UploadFileSize *int32 `json:"upload_file_size,omitempty"` + UploadUrl *string `json:"upload_url,omitempty"` +} + +// NewV0ProvisionProfileResponseItemModel instantiates a new V0ProvisionProfileResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ProvisionProfileResponseItemModel() *V0ProvisionProfileResponseItemModel { + this := V0ProvisionProfileResponseItemModel{} + return &this +} + +// NewV0ProvisionProfileResponseItemModelWithDefaults instantiates a new V0ProvisionProfileResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ProvisionProfileResponseItemModelWithDefaults() *V0ProvisionProfileResponseItemModel { + this := V0ProvisionProfileResponseItemModel{} + return &this +} + +// GetDownloadUrl returns the DownloadUrl field value if set, zero value otherwise. +func (o *V0ProvisionProfileResponseItemModel) GetDownloadUrl() string { + if o == nil || IsNil(o.DownloadUrl) { + var ret string + return ret + } + return *o.DownloadUrl +} + +// GetDownloadUrlOk returns a tuple with the DownloadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProvisionProfileResponseItemModel) GetDownloadUrlOk() (*string, bool) { + if o == nil || IsNil(o.DownloadUrl) { + return nil, false + } + return o.DownloadUrl, true +} + +// HasDownloadUrl returns a boolean if a field has been set. +func (o *V0ProvisionProfileResponseItemModel) HasDownloadUrl() bool { + if o != nil && !IsNil(o.DownloadUrl) { + return true + } + + return false +} + +// SetDownloadUrl gets a reference to the given string and assigns it to the DownloadUrl field. +func (o *V0ProvisionProfileResponseItemModel) SetDownloadUrl(v string) { + o.DownloadUrl = &v +} + +// GetIsExpose returns the IsExpose field value if set, zero value otherwise. +func (o *V0ProvisionProfileResponseItemModel) GetIsExpose() bool { + if o == nil || IsNil(o.IsExpose) { + var ret bool + return ret + } + return *o.IsExpose +} + +// GetIsExposeOk returns a tuple with the IsExpose field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProvisionProfileResponseItemModel) GetIsExposeOk() (*bool, bool) { + if o == nil || IsNil(o.IsExpose) { + return nil, false + } + return o.IsExpose, true +} + +// HasIsExpose returns a boolean if a field has been set. +func (o *V0ProvisionProfileResponseItemModel) HasIsExpose() bool { + if o != nil && !IsNil(o.IsExpose) { + return true + } + + return false +} + +// SetIsExpose gets a reference to the given bool and assigns it to the IsExpose field. +func (o *V0ProvisionProfileResponseItemModel) SetIsExpose(v bool) { + o.IsExpose = &v +} + +// GetIsProtected returns the IsProtected field value if set, zero value otherwise. +func (o *V0ProvisionProfileResponseItemModel) GetIsProtected() bool { + if o == nil || IsNil(o.IsProtected) { + var ret bool + return ret + } + return *o.IsProtected +} + +// GetIsProtectedOk returns a tuple with the IsProtected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProvisionProfileResponseItemModel) GetIsProtectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsProtected) { + return nil, false + } + return o.IsProtected, true +} + +// HasIsProtected returns a boolean if a field has been set. +func (o *V0ProvisionProfileResponseItemModel) HasIsProtected() bool { + if o != nil && !IsNil(o.IsProtected) { + return true + } + + return false +} + +// SetIsProtected gets a reference to the given bool and assigns it to the IsProtected field. +func (o *V0ProvisionProfileResponseItemModel) SetIsProtected(v bool) { + o.IsProtected = &v +} + +// GetProcessed returns the Processed field value if set, zero value otherwise. +func (o *V0ProvisionProfileResponseItemModel) GetProcessed() bool { + if o == nil || IsNil(o.Processed) { + var ret bool + return ret + } + return *o.Processed +} + +// GetProcessedOk returns a tuple with the Processed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProvisionProfileResponseItemModel) GetProcessedOk() (*bool, bool) { + if o == nil || IsNil(o.Processed) { + return nil, false + } + return o.Processed, true +} + +// HasProcessed returns a boolean if a field has been set. +func (o *V0ProvisionProfileResponseItemModel) HasProcessed() bool { + if o != nil && !IsNil(o.Processed) { + return true + } + + return false +} + +// SetProcessed gets a reference to the given bool and assigns it to the Processed field. +func (o *V0ProvisionProfileResponseItemModel) SetProcessed(v bool) { + o.Processed = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0ProvisionProfileResponseItemModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProvisionProfileResponseItemModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0ProvisionProfileResponseItemModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0ProvisionProfileResponseItemModel) SetSlug(v string) { + o.Slug = &v +} + +// GetUploadFileName returns the UploadFileName field value if set, zero value otherwise. +func (o *V0ProvisionProfileResponseItemModel) GetUploadFileName() string { + if o == nil || IsNil(o.UploadFileName) { + var ret string + return ret + } + return *o.UploadFileName +} + +// GetUploadFileNameOk returns a tuple with the UploadFileName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProvisionProfileResponseItemModel) GetUploadFileNameOk() (*string, bool) { + if o == nil || IsNil(o.UploadFileName) { + return nil, false + } + return o.UploadFileName, true +} + +// HasUploadFileName returns a boolean if a field has been set. +func (o *V0ProvisionProfileResponseItemModel) HasUploadFileName() bool { + if o != nil && !IsNil(o.UploadFileName) { + return true + } + + return false +} + +// SetUploadFileName gets a reference to the given string and assigns it to the UploadFileName field. +func (o *V0ProvisionProfileResponseItemModel) SetUploadFileName(v string) { + o.UploadFileName = &v +} + +// GetUploadFileSize returns the UploadFileSize field value if set, zero value otherwise. +func (o *V0ProvisionProfileResponseItemModel) GetUploadFileSize() int32 { + if o == nil || IsNil(o.UploadFileSize) { + var ret int32 + return ret + } + return *o.UploadFileSize +} + +// GetUploadFileSizeOk returns a tuple with the UploadFileSize field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProvisionProfileResponseItemModel) GetUploadFileSizeOk() (*int32, bool) { + if o == nil || IsNil(o.UploadFileSize) { + return nil, false + } + return o.UploadFileSize, true +} + +// HasUploadFileSize returns a boolean if a field has been set. +func (o *V0ProvisionProfileResponseItemModel) HasUploadFileSize() bool { + if o != nil && !IsNil(o.UploadFileSize) { + return true + } + + return false +} + +// SetUploadFileSize gets a reference to the given int32 and assigns it to the UploadFileSize field. +func (o *V0ProvisionProfileResponseItemModel) SetUploadFileSize(v int32) { + o.UploadFileSize = &v +} + +// GetUploadUrl returns the UploadUrl field value if set, zero value otherwise. +func (o *V0ProvisionProfileResponseItemModel) GetUploadUrl() string { + if o == nil || IsNil(o.UploadUrl) { + var ret string + return ret + } + return *o.UploadUrl +} + +// GetUploadUrlOk returns a tuple with the UploadUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ProvisionProfileResponseItemModel) GetUploadUrlOk() (*string, bool) { + if o == nil || IsNil(o.UploadUrl) { + return nil, false + } + return o.UploadUrl, true +} + +// HasUploadUrl returns a boolean if a field has been set. +func (o *V0ProvisionProfileResponseItemModel) HasUploadUrl() bool { + if o != nil && !IsNil(o.UploadUrl) { + return true + } + + return false +} + +// SetUploadUrl gets a reference to the given string and assigns it to the UploadUrl field. +func (o *V0ProvisionProfileResponseItemModel) SetUploadUrl(v string) { + o.UploadUrl = &v +} + +func (o V0ProvisionProfileResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ProvisionProfileResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DownloadUrl) { + toSerialize["download_url"] = o.DownloadUrl + } + if !IsNil(o.IsExpose) { + toSerialize["is_expose"] = o.IsExpose + } + if !IsNil(o.IsProtected) { + toSerialize["is_protected"] = o.IsProtected + } + if !IsNil(o.Processed) { + toSerialize["processed"] = o.Processed + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.UploadFileName) { + toSerialize["upload_file_name"] = o.UploadFileName + } + if !IsNil(o.UploadFileSize) { + toSerialize["upload_file_size"] = o.UploadFileSize + } + if !IsNil(o.UploadUrl) { + toSerialize["upload_url"] = o.UploadUrl + } + return toSerialize, nil +} + +type NullableV0ProvisionProfileResponseItemModel struct { + value *V0ProvisionProfileResponseItemModel + isSet bool +} + +func (v NullableV0ProvisionProfileResponseItemModel) Get() *V0ProvisionProfileResponseItemModel { + return v.value +} + +func (v *NullableV0ProvisionProfileResponseItemModel) Set(val *V0ProvisionProfileResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ProvisionProfileResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ProvisionProfileResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ProvisionProfileResponseItemModel(val *V0ProvisionProfileResponseItemModel) *NullableV0ProvisionProfileResponseItemModel { + return &NullableV0ProvisionProfileResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0ProvisionProfileResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ProvisionProfileResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_provision_profile_response_model.go b/go2/model_v0_provision_profile_response_model.go new file mode 100644 index 0000000..53de7d4 --- /dev/null +++ b/go2/model_v0_provision_profile_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ProvisionProfileResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ProvisionProfileResponseModel{} + +// V0ProvisionProfileResponseModel struct for V0ProvisionProfileResponseModel +type V0ProvisionProfileResponseModel struct { + Data *V0ProvisionProfileResponseItemModel `json:"data,omitempty"` +} + +// NewV0ProvisionProfileResponseModel instantiates a new V0ProvisionProfileResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ProvisionProfileResponseModel() *V0ProvisionProfileResponseModel { + this := V0ProvisionProfileResponseModel{} + return &this +} + +// NewV0ProvisionProfileResponseModelWithDefaults instantiates a new V0ProvisionProfileResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ProvisionProfileResponseModelWithDefaults() *V0ProvisionProfileResponseModel { + this := V0ProvisionProfileResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0ProvisionProfileResponseModel) GetData() V0ProvisionProfileResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret V0ProvisionProfileResponseItemModel + 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 *V0ProvisionProfileResponseModel) GetDataOk() (*V0ProvisionProfileResponseItemModel, 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 *V0ProvisionProfileResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0ProvisionProfileResponseItemModel and assigns it to the Data field. +func (o *V0ProvisionProfileResponseModel) SetData(v V0ProvisionProfileResponseItemModel) { + o.Data = &v +} + +func (o V0ProvisionProfileResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ProvisionProfileResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0ProvisionProfileResponseModel struct { + value *V0ProvisionProfileResponseModel + isSet bool +} + +func (v NullableV0ProvisionProfileResponseModel) Get() *V0ProvisionProfileResponseModel { + return v.value +} + +func (v *NullableV0ProvisionProfileResponseModel) Set(val *V0ProvisionProfileResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ProvisionProfileResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ProvisionProfileResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ProvisionProfileResponseModel(val *V0ProvisionProfileResponseModel) *NullableV0ProvisionProfileResponseModel { + return &NullableV0ProvisionProfileResponseModel{value: val, isSet: true} +} + +func (v NullableV0ProvisionProfileResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ProvisionProfileResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_provision_profile_upload_params.go b/go2/model_v0_provision_profile_upload_params.go new file mode 100644 index 0000000..0873bca --- /dev/null +++ b/go2/model_v0_provision_profile_upload_params.go @@ -0,0 +1,184 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0ProvisionProfileUploadParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ProvisionProfileUploadParams{} + +// V0ProvisionProfileUploadParams struct for V0ProvisionProfileUploadParams +type V0ProvisionProfileUploadParams struct { + UploadFileName string `json:"upload_file_name"` + UploadFileSize int32 `json:"upload_file_size"` +} + +type _V0ProvisionProfileUploadParams V0ProvisionProfileUploadParams + +// NewV0ProvisionProfileUploadParams instantiates a new V0ProvisionProfileUploadParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ProvisionProfileUploadParams(uploadFileName string, uploadFileSize int32) *V0ProvisionProfileUploadParams { + this := V0ProvisionProfileUploadParams{} + this.UploadFileName = uploadFileName + this.UploadFileSize = uploadFileSize + return &this +} + +// NewV0ProvisionProfileUploadParamsWithDefaults instantiates a new V0ProvisionProfileUploadParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ProvisionProfileUploadParamsWithDefaults() *V0ProvisionProfileUploadParams { + this := V0ProvisionProfileUploadParams{} + return &this +} + +// GetUploadFileName returns the UploadFileName field value +func (o *V0ProvisionProfileUploadParams) GetUploadFileName() string { + if o == nil { + var ret string + return ret + } + + return o.UploadFileName +} + +// GetUploadFileNameOk returns a tuple with the UploadFileName field value +// and a boolean to check if the value has been set. +func (o *V0ProvisionProfileUploadParams) GetUploadFileNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UploadFileName, true +} + +// SetUploadFileName sets field value +func (o *V0ProvisionProfileUploadParams) SetUploadFileName(v string) { + o.UploadFileName = v +} + +// GetUploadFileSize returns the UploadFileSize field value +func (o *V0ProvisionProfileUploadParams) GetUploadFileSize() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.UploadFileSize +} + +// GetUploadFileSizeOk returns a tuple with the UploadFileSize field value +// and a boolean to check if the value has been set. +func (o *V0ProvisionProfileUploadParams) GetUploadFileSizeOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.UploadFileSize, true +} + +// SetUploadFileSize sets field value +func (o *V0ProvisionProfileUploadParams) SetUploadFileSize(v int32) { + o.UploadFileSize = v +} + +func (o V0ProvisionProfileUploadParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ProvisionProfileUploadParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["upload_file_name"] = o.UploadFileName + toSerialize["upload_file_size"] = o.UploadFileSize + return toSerialize, nil +} + +func (o *V0ProvisionProfileUploadParams) UnmarshalJSON(bytes []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{ + "upload_file_name", + "upload_file_size", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0ProvisionProfileUploadParams := _V0ProvisionProfileUploadParams{} + + err = json.Unmarshal(bytes, &varV0ProvisionProfileUploadParams) + + if err != nil { + return err + } + + *o = V0ProvisionProfileUploadParams(varV0ProvisionProfileUploadParams) + + return err +} + +type NullableV0ProvisionProfileUploadParams struct { + value *V0ProvisionProfileUploadParams + isSet bool +} + +func (v NullableV0ProvisionProfileUploadParams) Get() *V0ProvisionProfileUploadParams { + return v.value +} + +func (v *NullableV0ProvisionProfileUploadParams) Set(val *V0ProvisionProfileUploadParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0ProvisionProfileUploadParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ProvisionProfileUploadParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ProvisionProfileUploadParams(val *V0ProvisionProfileUploadParams) *NullableV0ProvisionProfileUploadParams { + return &NullableV0ProvisionProfileUploadParams{value: val, isSet: true} +} + +func (v NullableV0ProvisionProfileUploadParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ProvisionProfileUploadParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_release_create_app_store_params.go b/go2/model_v0_release_create_app_store_params.go new file mode 100644 index 0000000..5695bd7 --- /dev/null +++ b/go2/model_v0_release_create_app_store_params.go @@ -0,0 +1,408 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0ReleaseCreateAppStoreParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ReleaseCreateAppStoreParams{} + +// V0ReleaseCreateAppStoreParams struct for V0ReleaseCreateAppStoreParams +type V0ReleaseCreateAppStoreParams struct { + // @Deprecated use `automatic_store_upload` instead. Indicates whether or not to upload every release candidate build automatically to TestFlight (default: `false`) + AutomaticTestflightUpload *bool `json:"automatic_testflight_upload,omitempty"` + // The bundle ID of the app to be released + BundleId string `json:"bundle_id"` + // An internal description of the release; it won't be propagated to the App Store (default: empty) + Description *string `json:"description,omitempty"` + // The name/version of the release (e.g. `1.2`) + Name string `json:"name"` + // The branch used for building the release candidate (default: empty) + ReleaseBranch *string `json:"release_branch,omitempty"` + // The Slack webhook URL to use for sending Slack notifications (default: empty) + SlackWebhookUrl *string `json:"slack_webhook_url,omitempty"` + // The Teams webhook URL to use for sending MS Teams notifications (default: empty) + TeamsWebhookUrl *string `json:"teams_webhook_url,omitempty"` + // The workflow used for building the release candidate (default: empty) + Workflow *string `json:"workflow,omitempty"` +} + +type _V0ReleaseCreateAppStoreParams V0ReleaseCreateAppStoreParams + +// NewV0ReleaseCreateAppStoreParams instantiates a new V0ReleaseCreateAppStoreParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ReleaseCreateAppStoreParams(bundleId string, name string) *V0ReleaseCreateAppStoreParams { + this := V0ReleaseCreateAppStoreParams{} + this.BundleId = bundleId + this.Name = name + return &this +} + +// NewV0ReleaseCreateAppStoreParamsWithDefaults instantiates a new V0ReleaseCreateAppStoreParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ReleaseCreateAppStoreParamsWithDefaults() *V0ReleaseCreateAppStoreParams { + this := V0ReleaseCreateAppStoreParams{} + return &this +} + +// GetAutomaticTestflightUpload returns the AutomaticTestflightUpload field value if set, zero value otherwise. +func (o *V0ReleaseCreateAppStoreParams) GetAutomaticTestflightUpload() bool { + if o == nil || IsNil(o.AutomaticTestflightUpload) { + var ret bool + return ret + } + return *o.AutomaticTestflightUpload +} + +// GetAutomaticTestflightUploadOk returns a tuple with the AutomaticTestflightUpload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateAppStoreParams) GetAutomaticTestflightUploadOk() (*bool, bool) { + if o == nil || IsNil(o.AutomaticTestflightUpload) { + return nil, false + } + return o.AutomaticTestflightUpload, true +} + +// HasAutomaticTestflightUpload returns a boolean if a field has been set. +func (o *V0ReleaseCreateAppStoreParams) HasAutomaticTestflightUpload() bool { + if o != nil && !IsNil(o.AutomaticTestflightUpload) { + return true + } + + return false +} + +// SetAutomaticTestflightUpload gets a reference to the given bool and assigns it to the AutomaticTestflightUpload field. +func (o *V0ReleaseCreateAppStoreParams) SetAutomaticTestflightUpload(v bool) { + o.AutomaticTestflightUpload = &v +} + +// GetBundleId returns the BundleId field value +func (o *V0ReleaseCreateAppStoreParams) GetBundleId() string { + if o == nil { + var ret string + return ret + } + + return o.BundleId +} + +// GetBundleIdOk returns a tuple with the BundleId field value +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateAppStoreParams) GetBundleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BundleId, true +} + +// SetBundleId sets field value +func (o *V0ReleaseCreateAppStoreParams) SetBundleId(v string) { + o.BundleId = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *V0ReleaseCreateAppStoreParams) 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 *V0ReleaseCreateAppStoreParams) 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 *V0ReleaseCreateAppStoreParams) 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 *V0ReleaseCreateAppStoreParams) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value +func (o *V0ReleaseCreateAppStoreParams) 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 *V0ReleaseCreateAppStoreParams) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V0ReleaseCreateAppStoreParams) SetName(v string) { + o.Name = v +} + +// GetReleaseBranch returns the ReleaseBranch field value if set, zero value otherwise. +func (o *V0ReleaseCreateAppStoreParams) GetReleaseBranch() string { + if o == nil || IsNil(o.ReleaseBranch) { + var ret string + return ret + } + return *o.ReleaseBranch +} + +// GetReleaseBranchOk returns a tuple with the ReleaseBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateAppStoreParams) GetReleaseBranchOk() (*string, bool) { + if o == nil || IsNil(o.ReleaseBranch) { + return nil, false + } + return o.ReleaseBranch, true +} + +// HasReleaseBranch returns a boolean if a field has been set. +func (o *V0ReleaseCreateAppStoreParams) HasReleaseBranch() bool { + if o != nil && !IsNil(o.ReleaseBranch) { + return true + } + + return false +} + +// SetReleaseBranch gets a reference to the given string and assigns it to the ReleaseBranch field. +func (o *V0ReleaseCreateAppStoreParams) SetReleaseBranch(v string) { + o.ReleaseBranch = &v +} + +// GetSlackWebhookUrl returns the SlackWebhookUrl field value if set, zero value otherwise. +func (o *V0ReleaseCreateAppStoreParams) GetSlackWebhookUrl() string { + if o == nil || IsNil(o.SlackWebhookUrl) { + var ret string + return ret + } + return *o.SlackWebhookUrl +} + +// GetSlackWebhookUrlOk returns a tuple with the SlackWebhookUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateAppStoreParams) GetSlackWebhookUrlOk() (*string, bool) { + if o == nil || IsNil(o.SlackWebhookUrl) { + return nil, false + } + return o.SlackWebhookUrl, true +} + +// HasSlackWebhookUrl returns a boolean if a field has been set. +func (o *V0ReleaseCreateAppStoreParams) HasSlackWebhookUrl() bool { + if o != nil && !IsNil(o.SlackWebhookUrl) { + return true + } + + return false +} + +// SetSlackWebhookUrl gets a reference to the given string and assigns it to the SlackWebhookUrl field. +func (o *V0ReleaseCreateAppStoreParams) SetSlackWebhookUrl(v string) { + o.SlackWebhookUrl = &v +} + +// GetTeamsWebhookUrl returns the TeamsWebhookUrl field value if set, zero value otherwise. +func (o *V0ReleaseCreateAppStoreParams) GetTeamsWebhookUrl() string { + if o == nil || IsNil(o.TeamsWebhookUrl) { + var ret string + return ret + } + return *o.TeamsWebhookUrl +} + +// GetTeamsWebhookUrlOk returns a tuple with the TeamsWebhookUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateAppStoreParams) GetTeamsWebhookUrlOk() (*string, bool) { + if o == nil || IsNil(o.TeamsWebhookUrl) { + return nil, false + } + return o.TeamsWebhookUrl, true +} + +// HasTeamsWebhookUrl returns a boolean if a field has been set. +func (o *V0ReleaseCreateAppStoreParams) HasTeamsWebhookUrl() bool { + if o != nil && !IsNil(o.TeamsWebhookUrl) { + return true + } + + return false +} + +// SetTeamsWebhookUrl gets a reference to the given string and assigns it to the TeamsWebhookUrl field. +func (o *V0ReleaseCreateAppStoreParams) SetTeamsWebhookUrl(v string) { + o.TeamsWebhookUrl = &v +} + +// GetWorkflow returns the Workflow field value if set, zero value otherwise. +func (o *V0ReleaseCreateAppStoreParams) GetWorkflow() string { + if o == nil || IsNil(o.Workflow) { + var ret string + return ret + } + return *o.Workflow +} + +// GetWorkflowOk returns a tuple with the Workflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateAppStoreParams) GetWorkflowOk() (*string, bool) { + if o == nil || IsNil(o.Workflow) { + return nil, false + } + return o.Workflow, true +} + +// HasWorkflow returns a boolean if a field has been set. +func (o *V0ReleaseCreateAppStoreParams) HasWorkflow() bool { + if o != nil && !IsNil(o.Workflow) { + return true + } + + return false +} + +// SetWorkflow gets a reference to the given string and assigns it to the Workflow field. +func (o *V0ReleaseCreateAppStoreParams) SetWorkflow(v string) { + o.Workflow = &v +} + +func (o V0ReleaseCreateAppStoreParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ReleaseCreateAppStoreParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AutomaticTestflightUpload) { + toSerialize["automatic_testflight_upload"] = o.AutomaticTestflightUpload + } + toSerialize["bundle_id"] = o.BundleId + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["name"] = o.Name + if !IsNil(o.ReleaseBranch) { + toSerialize["release_branch"] = o.ReleaseBranch + } + if !IsNil(o.SlackWebhookUrl) { + toSerialize["slack_webhook_url"] = o.SlackWebhookUrl + } + if !IsNil(o.TeamsWebhookUrl) { + toSerialize["teams_webhook_url"] = o.TeamsWebhookUrl + } + if !IsNil(o.Workflow) { + toSerialize["workflow"] = o.Workflow + } + return toSerialize, nil +} + +func (o *V0ReleaseCreateAppStoreParams) UnmarshalJSON(bytes []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{ + "bundle_id", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0ReleaseCreateAppStoreParams := _V0ReleaseCreateAppStoreParams{} + + err = json.Unmarshal(bytes, &varV0ReleaseCreateAppStoreParams) + + if err != nil { + return err + } + + *o = V0ReleaseCreateAppStoreParams(varV0ReleaseCreateAppStoreParams) + + return err +} + +type NullableV0ReleaseCreateAppStoreParams struct { + value *V0ReleaseCreateAppStoreParams + isSet bool +} + +func (v NullableV0ReleaseCreateAppStoreParams) Get() *V0ReleaseCreateAppStoreParams { + return v.value +} + +func (v *NullableV0ReleaseCreateAppStoreParams) Set(val *V0ReleaseCreateAppStoreParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0ReleaseCreateAppStoreParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ReleaseCreateAppStoreParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ReleaseCreateAppStoreParams(val *V0ReleaseCreateAppStoreParams) *NullableV0ReleaseCreateAppStoreParams { + return &NullableV0ReleaseCreateAppStoreParams{value: val, isSet: true} +} + +func (v NullableV0ReleaseCreateAppStoreParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ReleaseCreateAppStoreParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_release_create_app_store_resp_model.go b/go2/model_v0_release_create_app_store_resp_model.go new file mode 100644 index 0000000..483606b --- /dev/null +++ b/go2/model_v0_release_create_app_store_resp_model.go @@ -0,0 +1,276 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ReleaseCreateAppStoreRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ReleaseCreateAppStoreRespModel{} + +// V0ReleaseCreateAppStoreRespModel struct for V0ReleaseCreateAppStoreRespModel +type V0ReleaseCreateAppStoreRespModel struct { + // The bundle ID of the app + BundleId *string `json:"bundle_id,omitempty"` + // The ID of the newly created release + Id *string `json:"id,omitempty"` + // The name/version of the release (e.g. `1.2`) + Name *string `json:"name,omitempty"` + // The platform of the release (`ios`) + Platform *string `json:"platform,omitempty"` + // The status of the newly created release (`scheduled` or `in-progress`, depending on whether or not the release candidate settings were specified) + Status *string `json:"status,omitempty"` +} + +// NewV0ReleaseCreateAppStoreRespModel instantiates a new V0ReleaseCreateAppStoreRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ReleaseCreateAppStoreRespModel() *V0ReleaseCreateAppStoreRespModel { + this := V0ReleaseCreateAppStoreRespModel{} + return &this +} + +// NewV0ReleaseCreateAppStoreRespModelWithDefaults instantiates a new V0ReleaseCreateAppStoreRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ReleaseCreateAppStoreRespModelWithDefaults() *V0ReleaseCreateAppStoreRespModel { + this := V0ReleaseCreateAppStoreRespModel{} + return &this +} + +// GetBundleId returns the BundleId field value if set, zero value otherwise. +func (o *V0ReleaseCreateAppStoreRespModel) GetBundleId() string { + if o == nil || IsNil(o.BundleId) { + var ret string + return ret + } + return *o.BundleId +} + +// GetBundleIdOk returns a tuple with the BundleId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateAppStoreRespModel) GetBundleIdOk() (*string, bool) { + if o == nil || IsNil(o.BundleId) { + return nil, false + } + return o.BundleId, true +} + +// HasBundleId returns a boolean if a field has been set. +func (o *V0ReleaseCreateAppStoreRespModel) HasBundleId() bool { + if o != nil && !IsNil(o.BundleId) { + return true + } + + return false +} + +// SetBundleId gets a reference to the given string and assigns it to the BundleId field. +func (o *V0ReleaseCreateAppStoreRespModel) SetBundleId(v string) { + o.BundleId = &v +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *V0ReleaseCreateAppStoreRespModel) 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 *V0ReleaseCreateAppStoreRespModel) 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 *V0ReleaseCreateAppStoreRespModel) 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 *V0ReleaseCreateAppStoreRespModel) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V0ReleaseCreateAppStoreRespModel) 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 *V0ReleaseCreateAppStoreRespModel) 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 *V0ReleaseCreateAppStoreRespModel) 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 *V0ReleaseCreateAppStoreRespModel) SetName(v string) { + o.Name = &v +} + +// GetPlatform returns the Platform field value if set, zero value otherwise. +func (o *V0ReleaseCreateAppStoreRespModel) GetPlatform() string { + if o == nil || IsNil(o.Platform) { + var ret string + return ret + } + return *o.Platform +} + +// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateAppStoreRespModel) GetPlatformOk() (*string, bool) { + if o == nil || IsNil(o.Platform) { + return nil, false + } + return o.Platform, true +} + +// HasPlatform returns a boolean if a field has been set. +func (o *V0ReleaseCreateAppStoreRespModel) HasPlatform() bool { + if o != nil && !IsNil(o.Platform) { + return true + } + + return false +} + +// SetPlatform gets a reference to the given string and assigns it to the Platform field. +func (o *V0ReleaseCreateAppStoreRespModel) SetPlatform(v string) { + o.Platform = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0ReleaseCreateAppStoreRespModel) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateAppStoreRespModel) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0ReleaseCreateAppStoreRespModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V0ReleaseCreateAppStoreRespModel) SetStatus(v string) { + o.Status = &v +} + +func (o V0ReleaseCreateAppStoreRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ReleaseCreateAppStoreRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.BundleId) { + toSerialize["bundle_id"] = o.BundleId + } + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Platform) { + toSerialize["platform"] = o.Platform + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableV0ReleaseCreateAppStoreRespModel struct { + value *V0ReleaseCreateAppStoreRespModel + isSet bool +} + +func (v NullableV0ReleaseCreateAppStoreRespModel) Get() *V0ReleaseCreateAppStoreRespModel { + return v.value +} + +func (v *NullableV0ReleaseCreateAppStoreRespModel) Set(val *V0ReleaseCreateAppStoreRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ReleaseCreateAppStoreRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ReleaseCreateAppStoreRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ReleaseCreateAppStoreRespModel(val *V0ReleaseCreateAppStoreRespModel) *NullableV0ReleaseCreateAppStoreRespModel { + return &NullableV0ReleaseCreateAppStoreRespModel{value: val, isSet: true} +} + +func (v NullableV0ReleaseCreateAppStoreRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ReleaseCreateAppStoreRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_release_create_google_play_params.go b/go2/model_v0_release_create_google_play_params.go new file mode 100644 index 0000000..40a198c --- /dev/null +++ b/go2/model_v0_release_create_google_play_params.go @@ -0,0 +1,408 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0ReleaseCreateGooglePlayParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ReleaseCreateGooglePlayParams{} + +// V0ReleaseCreateGooglePlayParams struct for V0ReleaseCreateGooglePlayParams +type V0ReleaseCreateGooglePlayParams struct { + // Indicates whether or not to upload every release candidate build automatically to the Google Play Console (default: `false`) + AutomaticPlayConsoleUpload *bool `json:"automatic_play_console_upload,omitempty"` + // An internal description of the release; it won't be propagated to the App Store (default: empty) + Description *string `json:"description,omitempty"` + // The name/version of the release (e.g. `1.2`) + Name string `json:"name"` + // The package name of the app to be released + PackageName string `json:"package_name"` + // The branch used for building the release candidate (default: empty) + ReleaseBranch *string `json:"release_branch,omitempty"` + // The Slack webhook URL to use for sending Slack notifications (default: empty) + SlackWebhookUrl *string `json:"slack_webhook_url,omitempty"` + // The Teams webhook URL to use for sending MS Teams notifications (default: empty) + TeamsWebhookUrl *string `json:"teams_webhook_url,omitempty"` + // The workflow used for building the release candidate (default: empty) + Workflow *string `json:"workflow,omitempty"` +} + +type _V0ReleaseCreateGooglePlayParams V0ReleaseCreateGooglePlayParams + +// NewV0ReleaseCreateGooglePlayParams instantiates a new V0ReleaseCreateGooglePlayParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ReleaseCreateGooglePlayParams(name string, packageName string) *V0ReleaseCreateGooglePlayParams { + this := V0ReleaseCreateGooglePlayParams{} + this.Name = name + this.PackageName = packageName + return &this +} + +// NewV0ReleaseCreateGooglePlayParamsWithDefaults instantiates a new V0ReleaseCreateGooglePlayParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ReleaseCreateGooglePlayParamsWithDefaults() *V0ReleaseCreateGooglePlayParams { + this := V0ReleaseCreateGooglePlayParams{} + return &this +} + +// GetAutomaticPlayConsoleUpload returns the AutomaticPlayConsoleUpload field value if set, zero value otherwise. +func (o *V0ReleaseCreateGooglePlayParams) GetAutomaticPlayConsoleUpload() bool { + if o == nil || IsNil(o.AutomaticPlayConsoleUpload) { + var ret bool + return ret + } + return *o.AutomaticPlayConsoleUpload +} + +// GetAutomaticPlayConsoleUploadOk returns a tuple with the AutomaticPlayConsoleUpload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateGooglePlayParams) GetAutomaticPlayConsoleUploadOk() (*bool, bool) { + if o == nil || IsNil(o.AutomaticPlayConsoleUpload) { + return nil, false + } + return o.AutomaticPlayConsoleUpload, true +} + +// HasAutomaticPlayConsoleUpload returns a boolean if a field has been set. +func (o *V0ReleaseCreateGooglePlayParams) HasAutomaticPlayConsoleUpload() bool { + if o != nil && !IsNil(o.AutomaticPlayConsoleUpload) { + return true + } + + return false +} + +// SetAutomaticPlayConsoleUpload gets a reference to the given bool and assigns it to the AutomaticPlayConsoleUpload field. +func (o *V0ReleaseCreateGooglePlayParams) SetAutomaticPlayConsoleUpload(v bool) { + o.AutomaticPlayConsoleUpload = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *V0ReleaseCreateGooglePlayParams) 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 *V0ReleaseCreateGooglePlayParams) 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 *V0ReleaseCreateGooglePlayParams) 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 *V0ReleaseCreateGooglePlayParams) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value +func (o *V0ReleaseCreateGooglePlayParams) 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 *V0ReleaseCreateGooglePlayParams) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *V0ReleaseCreateGooglePlayParams) SetName(v string) { + o.Name = v +} + +// GetPackageName returns the PackageName field value +func (o *V0ReleaseCreateGooglePlayParams) GetPackageName() string { + if o == nil { + var ret string + return ret + } + + return o.PackageName +} + +// GetPackageNameOk returns a tuple with the PackageName field value +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateGooglePlayParams) GetPackageNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.PackageName, true +} + +// SetPackageName sets field value +func (o *V0ReleaseCreateGooglePlayParams) SetPackageName(v string) { + o.PackageName = v +} + +// GetReleaseBranch returns the ReleaseBranch field value if set, zero value otherwise. +func (o *V0ReleaseCreateGooglePlayParams) GetReleaseBranch() string { + if o == nil || IsNil(o.ReleaseBranch) { + var ret string + return ret + } + return *o.ReleaseBranch +} + +// GetReleaseBranchOk returns a tuple with the ReleaseBranch field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateGooglePlayParams) GetReleaseBranchOk() (*string, bool) { + if o == nil || IsNil(o.ReleaseBranch) { + return nil, false + } + return o.ReleaseBranch, true +} + +// HasReleaseBranch returns a boolean if a field has been set. +func (o *V0ReleaseCreateGooglePlayParams) HasReleaseBranch() bool { + if o != nil && !IsNil(o.ReleaseBranch) { + return true + } + + return false +} + +// SetReleaseBranch gets a reference to the given string and assigns it to the ReleaseBranch field. +func (o *V0ReleaseCreateGooglePlayParams) SetReleaseBranch(v string) { + o.ReleaseBranch = &v +} + +// GetSlackWebhookUrl returns the SlackWebhookUrl field value if set, zero value otherwise. +func (o *V0ReleaseCreateGooglePlayParams) GetSlackWebhookUrl() string { + if o == nil || IsNil(o.SlackWebhookUrl) { + var ret string + return ret + } + return *o.SlackWebhookUrl +} + +// GetSlackWebhookUrlOk returns a tuple with the SlackWebhookUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateGooglePlayParams) GetSlackWebhookUrlOk() (*string, bool) { + if o == nil || IsNil(o.SlackWebhookUrl) { + return nil, false + } + return o.SlackWebhookUrl, true +} + +// HasSlackWebhookUrl returns a boolean if a field has been set. +func (o *V0ReleaseCreateGooglePlayParams) HasSlackWebhookUrl() bool { + if o != nil && !IsNil(o.SlackWebhookUrl) { + return true + } + + return false +} + +// SetSlackWebhookUrl gets a reference to the given string and assigns it to the SlackWebhookUrl field. +func (o *V0ReleaseCreateGooglePlayParams) SetSlackWebhookUrl(v string) { + o.SlackWebhookUrl = &v +} + +// GetTeamsWebhookUrl returns the TeamsWebhookUrl field value if set, zero value otherwise. +func (o *V0ReleaseCreateGooglePlayParams) GetTeamsWebhookUrl() string { + if o == nil || IsNil(o.TeamsWebhookUrl) { + var ret string + return ret + } + return *o.TeamsWebhookUrl +} + +// GetTeamsWebhookUrlOk returns a tuple with the TeamsWebhookUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateGooglePlayParams) GetTeamsWebhookUrlOk() (*string, bool) { + if o == nil || IsNil(o.TeamsWebhookUrl) { + return nil, false + } + return o.TeamsWebhookUrl, true +} + +// HasTeamsWebhookUrl returns a boolean if a field has been set. +func (o *V0ReleaseCreateGooglePlayParams) HasTeamsWebhookUrl() bool { + if o != nil && !IsNil(o.TeamsWebhookUrl) { + return true + } + + return false +} + +// SetTeamsWebhookUrl gets a reference to the given string and assigns it to the TeamsWebhookUrl field. +func (o *V0ReleaseCreateGooglePlayParams) SetTeamsWebhookUrl(v string) { + o.TeamsWebhookUrl = &v +} + +// GetWorkflow returns the Workflow field value if set, zero value otherwise. +func (o *V0ReleaseCreateGooglePlayParams) GetWorkflow() string { + if o == nil || IsNil(o.Workflow) { + var ret string + return ret + } + return *o.Workflow +} + +// GetWorkflowOk returns a tuple with the Workflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateGooglePlayParams) GetWorkflowOk() (*string, bool) { + if o == nil || IsNil(o.Workflow) { + return nil, false + } + return o.Workflow, true +} + +// HasWorkflow returns a boolean if a field has been set. +func (o *V0ReleaseCreateGooglePlayParams) HasWorkflow() bool { + if o != nil && !IsNil(o.Workflow) { + return true + } + + return false +} + +// SetWorkflow gets a reference to the given string and assigns it to the Workflow field. +func (o *V0ReleaseCreateGooglePlayParams) SetWorkflow(v string) { + o.Workflow = &v +} + +func (o V0ReleaseCreateGooglePlayParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ReleaseCreateGooglePlayParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AutomaticPlayConsoleUpload) { + toSerialize["automatic_play_console_upload"] = o.AutomaticPlayConsoleUpload + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["name"] = o.Name + toSerialize["package_name"] = o.PackageName + if !IsNil(o.ReleaseBranch) { + toSerialize["release_branch"] = o.ReleaseBranch + } + if !IsNil(o.SlackWebhookUrl) { + toSerialize["slack_webhook_url"] = o.SlackWebhookUrl + } + if !IsNil(o.TeamsWebhookUrl) { + toSerialize["teams_webhook_url"] = o.TeamsWebhookUrl + } + if !IsNil(o.Workflow) { + toSerialize["workflow"] = o.Workflow + } + return toSerialize, nil +} + +func (o *V0ReleaseCreateGooglePlayParams) UnmarshalJSON(bytes []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", + "package_name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0ReleaseCreateGooglePlayParams := _V0ReleaseCreateGooglePlayParams{} + + err = json.Unmarshal(bytes, &varV0ReleaseCreateGooglePlayParams) + + if err != nil { + return err + } + + *o = V0ReleaseCreateGooglePlayParams(varV0ReleaseCreateGooglePlayParams) + + return err +} + +type NullableV0ReleaseCreateGooglePlayParams struct { + value *V0ReleaseCreateGooglePlayParams + isSet bool +} + +func (v NullableV0ReleaseCreateGooglePlayParams) Get() *V0ReleaseCreateGooglePlayParams { + return v.value +} + +func (v *NullableV0ReleaseCreateGooglePlayParams) Set(val *V0ReleaseCreateGooglePlayParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0ReleaseCreateGooglePlayParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ReleaseCreateGooglePlayParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ReleaseCreateGooglePlayParams(val *V0ReleaseCreateGooglePlayParams) *NullableV0ReleaseCreateGooglePlayParams { + return &NullableV0ReleaseCreateGooglePlayParams{value: val, isSet: true} +} + +func (v NullableV0ReleaseCreateGooglePlayParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ReleaseCreateGooglePlayParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_release_create_google_play_resp_model.go b/go2/model_v0_release_create_google_play_resp_model.go new file mode 100644 index 0000000..1357cb4 --- /dev/null +++ b/go2/model_v0_release_create_google_play_resp_model.go @@ -0,0 +1,276 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0ReleaseCreateGooglePlayRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0ReleaseCreateGooglePlayRespModel{} + +// V0ReleaseCreateGooglePlayRespModel struct for V0ReleaseCreateGooglePlayRespModel +type V0ReleaseCreateGooglePlayRespModel struct { + // The ID of the newly created release + Id *string `json:"id,omitempty"` + // The name/version of the release (e.g. `1.2`) + Name *string `json:"name,omitempty"` + // The package name of the app + PackageName *string `json:"package_name,omitempty"` + // The platform of the release (`android`) + Platform *string `json:"platform,omitempty"` + // The status of the newly created release (`scheduled` or `in-progress`, depending on whether or not the release candidate settings were specified) + Status *string `json:"status,omitempty"` +} + +// NewV0ReleaseCreateGooglePlayRespModel instantiates a new V0ReleaseCreateGooglePlayRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0ReleaseCreateGooglePlayRespModel() *V0ReleaseCreateGooglePlayRespModel { + this := V0ReleaseCreateGooglePlayRespModel{} + return &this +} + +// NewV0ReleaseCreateGooglePlayRespModelWithDefaults instantiates a new V0ReleaseCreateGooglePlayRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0ReleaseCreateGooglePlayRespModelWithDefaults() *V0ReleaseCreateGooglePlayRespModel { + this := V0ReleaseCreateGooglePlayRespModel{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *V0ReleaseCreateGooglePlayRespModel) 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 *V0ReleaseCreateGooglePlayRespModel) 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 *V0ReleaseCreateGooglePlayRespModel) 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 *V0ReleaseCreateGooglePlayRespModel) SetId(v string) { + o.Id = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *V0ReleaseCreateGooglePlayRespModel) 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 *V0ReleaseCreateGooglePlayRespModel) 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 *V0ReleaseCreateGooglePlayRespModel) 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 *V0ReleaseCreateGooglePlayRespModel) SetName(v string) { + o.Name = &v +} + +// GetPackageName returns the PackageName field value if set, zero value otherwise. +func (o *V0ReleaseCreateGooglePlayRespModel) GetPackageName() string { + if o == nil || IsNil(o.PackageName) { + var ret string + return ret + } + return *o.PackageName +} + +// GetPackageNameOk returns a tuple with the PackageName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateGooglePlayRespModel) GetPackageNameOk() (*string, bool) { + if o == nil || IsNil(o.PackageName) { + return nil, false + } + return o.PackageName, true +} + +// HasPackageName returns a boolean if a field has been set. +func (o *V0ReleaseCreateGooglePlayRespModel) HasPackageName() bool { + if o != nil && !IsNil(o.PackageName) { + return true + } + + return false +} + +// SetPackageName gets a reference to the given string and assigns it to the PackageName field. +func (o *V0ReleaseCreateGooglePlayRespModel) SetPackageName(v string) { + o.PackageName = &v +} + +// GetPlatform returns the Platform field value if set, zero value otherwise. +func (o *V0ReleaseCreateGooglePlayRespModel) GetPlatform() string { + if o == nil || IsNil(o.Platform) { + var ret string + return ret + } + return *o.Platform +} + +// GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateGooglePlayRespModel) GetPlatformOk() (*string, bool) { + if o == nil || IsNil(o.Platform) { + return nil, false + } + return o.Platform, true +} + +// HasPlatform returns a boolean if a field has been set. +func (o *V0ReleaseCreateGooglePlayRespModel) HasPlatform() bool { + if o != nil && !IsNil(o.Platform) { + return true + } + + return false +} + +// SetPlatform gets a reference to the given string and assigns it to the Platform field. +func (o *V0ReleaseCreateGooglePlayRespModel) SetPlatform(v string) { + o.Platform = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0ReleaseCreateGooglePlayRespModel) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0ReleaseCreateGooglePlayRespModel) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0ReleaseCreateGooglePlayRespModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V0ReleaseCreateGooglePlayRespModel) SetStatus(v string) { + o.Status = &v +} + +func (o V0ReleaseCreateGooglePlayRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0ReleaseCreateGooglePlayRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.PackageName) { + toSerialize["package_name"] = o.PackageName + } + if !IsNil(o.Platform) { + toSerialize["platform"] = o.Platform + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableV0ReleaseCreateGooglePlayRespModel struct { + value *V0ReleaseCreateGooglePlayRespModel + isSet bool +} + +func (v NullableV0ReleaseCreateGooglePlayRespModel) Get() *V0ReleaseCreateGooglePlayRespModel { + return v.value +} + +func (v *NullableV0ReleaseCreateGooglePlayRespModel) Set(val *V0ReleaseCreateGooglePlayRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0ReleaseCreateGooglePlayRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0ReleaseCreateGooglePlayRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0ReleaseCreateGooglePlayRespModel(val *V0ReleaseCreateGooglePlayRespModel) *NullableV0ReleaseCreateGooglePlayRespModel { + return &NullableV0ReleaseCreateGooglePlayRespModel{value: val, isSet: true} +} + +func (v NullableV0ReleaseCreateGooglePlayRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0ReleaseCreateGooglePlayRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_ssh_key_resp_model.go b/go2/model_v0_ssh_key_resp_model.go new file mode 100644 index 0000000..f60b9e5 --- /dev/null +++ b/go2/model_v0_ssh_key_resp_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0SSHKeyRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0SSHKeyRespModel{} + +// V0SSHKeyRespModel struct for V0SSHKeyRespModel +type V0SSHKeyRespModel struct { + Status *string `json:"status,omitempty"` +} + +// NewV0SSHKeyRespModel instantiates a new V0SSHKeyRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0SSHKeyRespModel() *V0SSHKeyRespModel { + this := V0SSHKeyRespModel{} + return &this +} + +// NewV0SSHKeyRespModelWithDefaults instantiates a new V0SSHKeyRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0SSHKeyRespModelWithDefaults() *V0SSHKeyRespModel { + this := V0SSHKeyRespModel{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0SSHKeyRespModel) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0SSHKeyRespModel) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0SSHKeyRespModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V0SSHKeyRespModel) SetStatus(v string) { + o.Status = &v +} + +func (o V0SSHKeyRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0SSHKeyRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableV0SSHKeyRespModel struct { + value *V0SSHKeyRespModel + isSet bool +} + +func (v NullableV0SSHKeyRespModel) Get() *V0SSHKeyRespModel { + return v.value +} + +func (v *NullableV0SSHKeyRespModel) Set(val *V0SSHKeyRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0SSHKeyRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0SSHKeyRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0SSHKeyRespModel(val *V0SSHKeyRespModel) *NullableV0SSHKeyRespModel { + return &NullableV0SSHKeyRespModel{value: val, isSet: true} +} + +func (v NullableV0SSHKeyRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0SSHKeyRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_ssh_key_upload_params.go b/go2/model_v0_ssh_key_upload_params.go new file mode 100644 index 0000000..ea1dcdd --- /dev/null +++ b/go2/model_v0_ssh_key_upload_params.go @@ -0,0 +1,223 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// checks if the V0SSHKeyUploadParams type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0SSHKeyUploadParams{} + +// V0SSHKeyUploadParams struct for V0SSHKeyUploadParams +type V0SSHKeyUploadParams struct { + // The private part of the SSH key you would like to use + AuthSshPrivateKey string `json:"auth_ssh_private_key"` + // The public part of the SSH key you would like to use + AuthSshPublicKey string `json:"auth_ssh_public_key"` + // If it's set to true, the provided SSH key will be registered at the provider of the application + IsRegisterKeyIntoProviderService *bool `json:"is_register_key_into_provider_service,omitempty"` +} + +type _V0SSHKeyUploadParams V0SSHKeyUploadParams + +// NewV0SSHKeyUploadParams instantiates a new V0SSHKeyUploadParams object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0SSHKeyUploadParams(authSshPrivateKey string, authSshPublicKey string) *V0SSHKeyUploadParams { + this := V0SSHKeyUploadParams{} + this.AuthSshPrivateKey = authSshPrivateKey + this.AuthSshPublicKey = authSshPublicKey + return &this +} + +// NewV0SSHKeyUploadParamsWithDefaults instantiates a new V0SSHKeyUploadParams object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0SSHKeyUploadParamsWithDefaults() *V0SSHKeyUploadParams { + this := V0SSHKeyUploadParams{} + return &this +} + +// GetAuthSshPrivateKey returns the AuthSshPrivateKey field value +func (o *V0SSHKeyUploadParams) GetAuthSshPrivateKey() string { + if o == nil { + var ret string + return ret + } + + return o.AuthSshPrivateKey +} + +// GetAuthSshPrivateKeyOk returns a tuple with the AuthSshPrivateKey field value +// and a boolean to check if the value has been set. +func (o *V0SSHKeyUploadParams) GetAuthSshPrivateKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AuthSshPrivateKey, true +} + +// SetAuthSshPrivateKey sets field value +func (o *V0SSHKeyUploadParams) SetAuthSshPrivateKey(v string) { + o.AuthSshPrivateKey = v +} + +// GetAuthSshPublicKey returns the AuthSshPublicKey field value +func (o *V0SSHKeyUploadParams) GetAuthSshPublicKey() string { + if o == nil { + var ret string + return ret + } + + return o.AuthSshPublicKey +} + +// GetAuthSshPublicKeyOk returns a tuple with the AuthSshPublicKey field value +// and a boolean to check if the value has been set. +func (o *V0SSHKeyUploadParams) GetAuthSshPublicKeyOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AuthSshPublicKey, true +} + +// SetAuthSshPublicKey sets field value +func (o *V0SSHKeyUploadParams) SetAuthSshPublicKey(v string) { + o.AuthSshPublicKey = v +} + +// GetIsRegisterKeyIntoProviderService returns the IsRegisterKeyIntoProviderService field value if set, zero value otherwise. +func (o *V0SSHKeyUploadParams) GetIsRegisterKeyIntoProviderService() bool { + if o == nil || IsNil(o.IsRegisterKeyIntoProviderService) { + var ret bool + return ret + } + return *o.IsRegisterKeyIntoProviderService +} + +// GetIsRegisterKeyIntoProviderServiceOk returns a tuple with the IsRegisterKeyIntoProviderService field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0SSHKeyUploadParams) GetIsRegisterKeyIntoProviderServiceOk() (*bool, bool) { + if o == nil || IsNil(o.IsRegisterKeyIntoProviderService) { + return nil, false + } + return o.IsRegisterKeyIntoProviderService, true +} + +// HasIsRegisterKeyIntoProviderService returns a boolean if a field has been set. +func (o *V0SSHKeyUploadParams) HasIsRegisterKeyIntoProviderService() bool { + if o != nil && !IsNil(o.IsRegisterKeyIntoProviderService) { + return true + } + + return false +} + +// SetIsRegisterKeyIntoProviderService gets a reference to the given bool and assigns it to the IsRegisterKeyIntoProviderService field. +func (o *V0SSHKeyUploadParams) SetIsRegisterKeyIntoProviderService(v bool) { + o.IsRegisterKeyIntoProviderService = &v +} + +func (o V0SSHKeyUploadParams) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0SSHKeyUploadParams) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["auth_ssh_private_key"] = o.AuthSshPrivateKey + toSerialize["auth_ssh_public_key"] = o.AuthSshPublicKey + if !IsNil(o.IsRegisterKeyIntoProviderService) { + toSerialize["is_register_key_into_provider_service"] = o.IsRegisterKeyIntoProviderService + } + return toSerialize, nil +} + +func (o *V0SSHKeyUploadParams) UnmarshalJSON(bytes []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{ + "auth_ssh_private_key", + "auth_ssh_public_key", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &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) + } + } + + varV0SSHKeyUploadParams := _V0SSHKeyUploadParams{} + + err = json.Unmarshal(bytes, &varV0SSHKeyUploadParams) + + if err != nil { + return err + } + + *o = V0SSHKeyUploadParams(varV0SSHKeyUploadParams) + + return err +} + +type NullableV0SSHKeyUploadParams struct { + value *V0SSHKeyUploadParams + isSet bool +} + +func (v NullableV0SSHKeyUploadParams) Get() *V0SSHKeyUploadParams { + return v.value +} + +func (v *NullableV0SSHKeyUploadParams) Set(val *V0SSHKeyUploadParams) { + v.value = val + v.isSet = true +} + +func (v NullableV0SSHKeyUploadParams) IsSet() bool { + return v.isSet +} + +func (v *NullableV0SSHKeyUploadParams) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0SSHKeyUploadParams(val *V0SSHKeyUploadParams) *NullableV0SSHKeyUploadParams { + return &NullableV0SSHKeyUploadParams{value: val, isSet: true} +} + +func (v NullableV0SSHKeyUploadParams) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0SSHKeyUploadParams) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_test_device_list_response_model.go b/go2/model_v0_test_device_list_response_model.go new file mode 100644 index 0000000..4ff8262 --- /dev/null +++ b/go2/model_v0_test_device_list_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0TestDeviceListResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0TestDeviceListResponseModel{} + +// V0TestDeviceListResponseModel struct for V0TestDeviceListResponseModel +type V0TestDeviceListResponseModel struct { + Data []V0TestDeviceResponseItemModel `json:"data,omitempty"` +} + +// NewV0TestDeviceListResponseModel instantiates a new V0TestDeviceListResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0TestDeviceListResponseModel() *V0TestDeviceListResponseModel { + this := V0TestDeviceListResponseModel{} + return &this +} + +// NewV0TestDeviceListResponseModelWithDefaults instantiates a new V0TestDeviceListResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0TestDeviceListResponseModelWithDefaults() *V0TestDeviceListResponseModel { + this := V0TestDeviceListResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0TestDeviceListResponseModel) GetData() []V0TestDeviceResponseItemModel { + if o == nil || IsNil(o.Data) { + var ret []V0TestDeviceResponseItemModel + 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 *V0TestDeviceListResponseModel) GetDataOk() ([]V0TestDeviceResponseItemModel, 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 *V0TestDeviceListResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given []V0TestDeviceResponseItemModel and assigns it to the Data field. +func (o *V0TestDeviceListResponseModel) SetData(v []V0TestDeviceResponseItemModel) { + o.Data = v +} + +func (o V0TestDeviceListResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0TestDeviceListResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0TestDeviceListResponseModel struct { + value *V0TestDeviceListResponseModel + isSet bool +} + +func (v NullableV0TestDeviceListResponseModel) Get() *V0TestDeviceListResponseModel { + return v.value +} + +func (v *NullableV0TestDeviceListResponseModel) Set(val *V0TestDeviceListResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0TestDeviceListResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0TestDeviceListResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0TestDeviceListResponseModel(val *V0TestDeviceListResponseModel) *NullableV0TestDeviceListResponseModel { + return &NullableV0TestDeviceListResponseModel{value: val, isSet: true} +} + +func (v NullableV0TestDeviceListResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0TestDeviceListResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_test_device_response_item_model.go b/go2/model_v0_test_device_response_item_model.go new file mode 100644 index 0000000..35292d6 --- /dev/null +++ b/go2/model_v0_test_device_response_item_model.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0TestDeviceResponseItemModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0TestDeviceResponseItemModel{} + +// V0TestDeviceResponseItemModel struct for V0TestDeviceResponseItemModel +type V0TestDeviceResponseItemModel struct { + DeviceId *string `json:"device_id,omitempty"` + DeviceType *string `json:"device_type,omitempty"` + Owner *string `json:"owner,omitempty"` +} + +// NewV0TestDeviceResponseItemModel instantiates a new V0TestDeviceResponseItemModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0TestDeviceResponseItemModel() *V0TestDeviceResponseItemModel { + this := V0TestDeviceResponseItemModel{} + return &this +} + +// NewV0TestDeviceResponseItemModelWithDefaults instantiates a new V0TestDeviceResponseItemModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0TestDeviceResponseItemModelWithDefaults() *V0TestDeviceResponseItemModel { + this := V0TestDeviceResponseItemModel{} + return &this +} + +// GetDeviceId returns the DeviceId field value if set, zero value otherwise. +func (o *V0TestDeviceResponseItemModel) GetDeviceId() string { + if o == nil || IsNil(o.DeviceId) { + var ret string + return ret + } + return *o.DeviceId +} + +// GetDeviceIdOk returns a tuple with the DeviceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0TestDeviceResponseItemModel) GetDeviceIdOk() (*string, bool) { + if o == nil || IsNil(o.DeviceId) { + return nil, false + } + return o.DeviceId, true +} + +// HasDeviceId returns a boolean if a field has been set. +func (o *V0TestDeviceResponseItemModel) HasDeviceId() bool { + if o != nil && !IsNil(o.DeviceId) { + return true + } + + return false +} + +// SetDeviceId gets a reference to the given string and assigns it to the DeviceId field. +func (o *V0TestDeviceResponseItemModel) SetDeviceId(v string) { + o.DeviceId = &v +} + +// GetDeviceType returns the DeviceType field value if set, zero value otherwise. +func (o *V0TestDeviceResponseItemModel) GetDeviceType() string { + if o == nil || IsNil(o.DeviceType) { + var ret string + return ret + } + return *o.DeviceType +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0TestDeviceResponseItemModel) GetDeviceTypeOk() (*string, bool) { + if o == nil || IsNil(o.DeviceType) { + return nil, false + } + return o.DeviceType, true +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *V0TestDeviceResponseItemModel) HasDeviceType() bool { + if o != nil && !IsNil(o.DeviceType) { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given string and assigns it to the DeviceType field. +func (o *V0TestDeviceResponseItemModel) SetDeviceType(v string) { + o.DeviceType = &v +} + +// GetOwner returns the Owner field value if set, zero value otherwise. +func (o *V0TestDeviceResponseItemModel) GetOwner() string { + if o == nil || IsNil(o.Owner) { + var ret string + return ret + } + return *o.Owner +} + +// GetOwnerOk returns a tuple with the Owner field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0TestDeviceResponseItemModel) GetOwnerOk() (*string, bool) { + if o == nil || IsNil(o.Owner) { + return nil, false + } + return o.Owner, true +} + +// HasOwner returns a boolean if a field has been set. +func (o *V0TestDeviceResponseItemModel) HasOwner() bool { + if o != nil && !IsNil(o.Owner) { + return true + } + + return false +} + +// SetOwner gets a reference to the given string and assigns it to the Owner field. +func (o *V0TestDeviceResponseItemModel) SetOwner(v string) { + o.Owner = &v +} + +func (o V0TestDeviceResponseItemModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0TestDeviceResponseItemModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.DeviceId) { + toSerialize["device_id"] = o.DeviceId + } + if !IsNil(o.DeviceType) { + toSerialize["device_type"] = o.DeviceType + } + if !IsNil(o.Owner) { + toSerialize["owner"] = o.Owner + } + return toSerialize, nil +} + +type NullableV0TestDeviceResponseItemModel struct { + value *V0TestDeviceResponseItemModel + isSet bool +} + +func (v NullableV0TestDeviceResponseItemModel) Get() *V0TestDeviceResponseItemModel { + return v.value +} + +func (v *NullableV0TestDeviceResponseItemModel) Set(val *V0TestDeviceResponseItemModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0TestDeviceResponseItemModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0TestDeviceResponseItemModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0TestDeviceResponseItemModel(val *V0TestDeviceResponseItemModel) *NullableV0TestDeviceResponseItemModel { + return &NullableV0TestDeviceResponseItemModel{value: val, isSet: true} +} + +func (v NullableV0TestDeviceResponseItemModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0TestDeviceResponseItemModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_user_plan_data_model.go b/go2/model_v0_user_plan_data_model.go new file mode 100644 index 0000000..e93415c --- /dev/null +++ b/go2/model_v0_user_plan_data_model.go @@ -0,0 +1,199 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0UserPlanDataModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0UserPlanDataModel{} + +// V0UserPlanDataModel struct for V0UserPlanDataModel +type V0UserPlanDataModel struct { + CurrentPlan *V0PlanDataModel `json:"current_plan,omitempty"` + PendingPlan *V0PlanDataModel `json:"pending_plan,omitempty"` + TrialExpiresAt *string `json:"trial_expires_at,omitempty"` +} + +// NewV0UserPlanDataModel instantiates a new V0UserPlanDataModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0UserPlanDataModel() *V0UserPlanDataModel { + this := V0UserPlanDataModel{} + return &this +} + +// NewV0UserPlanDataModelWithDefaults instantiates a new V0UserPlanDataModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0UserPlanDataModelWithDefaults() *V0UserPlanDataModel { + this := V0UserPlanDataModel{} + return &this +} + +// GetCurrentPlan returns the CurrentPlan field value if set, zero value otherwise. +func (o *V0UserPlanDataModel) GetCurrentPlan() V0PlanDataModel { + if o == nil || IsNil(o.CurrentPlan) { + var ret V0PlanDataModel + return ret + } + return *o.CurrentPlan +} + +// GetCurrentPlanOk returns a tuple with the CurrentPlan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0UserPlanDataModel) GetCurrentPlanOk() (*V0PlanDataModel, bool) { + if o == nil || IsNil(o.CurrentPlan) { + return nil, false + } + return o.CurrentPlan, true +} + +// HasCurrentPlan returns a boolean if a field has been set. +func (o *V0UserPlanDataModel) HasCurrentPlan() bool { + if o != nil && !IsNil(o.CurrentPlan) { + return true + } + + return false +} + +// SetCurrentPlan gets a reference to the given V0PlanDataModel and assigns it to the CurrentPlan field. +func (o *V0UserPlanDataModel) SetCurrentPlan(v V0PlanDataModel) { + o.CurrentPlan = &v +} + +// GetPendingPlan returns the PendingPlan field value if set, zero value otherwise. +func (o *V0UserPlanDataModel) GetPendingPlan() V0PlanDataModel { + if o == nil || IsNil(o.PendingPlan) { + var ret V0PlanDataModel + return ret + } + return *o.PendingPlan +} + +// GetPendingPlanOk returns a tuple with the PendingPlan field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0UserPlanDataModel) GetPendingPlanOk() (*V0PlanDataModel, bool) { + if o == nil || IsNil(o.PendingPlan) { + return nil, false + } + return o.PendingPlan, true +} + +// HasPendingPlan returns a boolean if a field has been set. +func (o *V0UserPlanDataModel) HasPendingPlan() bool { + if o != nil && !IsNil(o.PendingPlan) { + return true + } + + return false +} + +// SetPendingPlan gets a reference to the given V0PlanDataModel and assigns it to the PendingPlan field. +func (o *V0UserPlanDataModel) SetPendingPlan(v V0PlanDataModel) { + o.PendingPlan = &v +} + +// GetTrialExpiresAt returns the TrialExpiresAt field value if set, zero value otherwise. +func (o *V0UserPlanDataModel) GetTrialExpiresAt() string { + if o == nil || IsNil(o.TrialExpiresAt) { + var ret string + return ret + } + return *o.TrialExpiresAt +} + +// GetTrialExpiresAtOk returns a tuple with the TrialExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0UserPlanDataModel) GetTrialExpiresAtOk() (*string, bool) { + if o == nil || IsNil(o.TrialExpiresAt) { + return nil, false + } + return o.TrialExpiresAt, true +} + +// HasTrialExpiresAt returns a boolean if a field has been set. +func (o *V0UserPlanDataModel) HasTrialExpiresAt() bool { + if o != nil && !IsNil(o.TrialExpiresAt) { + return true + } + + return false +} + +// SetTrialExpiresAt gets a reference to the given string and assigns it to the TrialExpiresAt field. +func (o *V0UserPlanDataModel) SetTrialExpiresAt(v string) { + o.TrialExpiresAt = &v +} + +func (o V0UserPlanDataModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0UserPlanDataModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CurrentPlan) { + toSerialize["current_plan"] = o.CurrentPlan + } + if !IsNil(o.PendingPlan) { + toSerialize["pending_plan"] = o.PendingPlan + } + if !IsNil(o.TrialExpiresAt) { + toSerialize["trial_expires_at"] = o.TrialExpiresAt + } + return toSerialize, nil +} + +type NullableV0UserPlanDataModel struct { + value *V0UserPlanDataModel + isSet bool +} + +func (v NullableV0UserPlanDataModel) Get() *V0UserPlanDataModel { + return v.value +} + +func (v *NullableV0UserPlanDataModel) Set(val *V0UserPlanDataModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0UserPlanDataModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0UserPlanDataModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0UserPlanDataModel(val *V0UserPlanDataModel) *NullableV0UserPlanDataModel { + return &NullableV0UserPlanDataModel{value: val, isSet: true} +} + +func (v NullableV0UserPlanDataModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0UserPlanDataModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_user_plan_resp_model.go b/go2/model_v0_user_plan_resp_model.go new file mode 100644 index 0000000..714fb41 --- /dev/null +++ b/go2/model_v0_user_plan_resp_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0UserPlanRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0UserPlanRespModel{} + +// V0UserPlanRespModel struct for V0UserPlanRespModel +type V0UserPlanRespModel struct { + Data *V0UserPlanDataModel `json:"data,omitempty"` +} + +// NewV0UserPlanRespModel instantiates a new V0UserPlanRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0UserPlanRespModel() *V0UserPlanRespModel { + this := V0UserPlanRespModel{} + return &this +} + +// NewV0UserPlanRespModelWithDefaults instantiates a new V0UserPlanRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0UserPlanRespModelWithDefaults() *V0UserPlanRespModel { + this := V0UserPlanRespModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0UserPlanRespModel) GetData() V0UserPlanDataModel { + if o == nil || IsNil(o.Data) { + var ret V0UserPlanDataModel + 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 *V0UserPlanRespModel) GetDataOk() (*V0UserPlanDataModel, 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 *V0UserPlanRespModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0UserPlanDataModel and assigns it to the Data field. +func (o *V0UserPlanRespModel) SetData(v V0UserPlanDataModel) { + o.Data = &v +} + +func (o V0UserPlanRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0UserPlanRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0UserPlanRespModel struct { + value *V0UserPlanRespModel + isSet bool +} + +func (v NullableV0UserPlanRespModel) Get() *V0UserPlanRespModel { + return v.value +} + +func (v *NullableV0UserPlanRespModel) Set(val *V0UserPlanRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0UserPlanRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0UserPlanRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0UserPlanRespModel(val *V0UserPlanRespModel) *NullableV0UserPlanRespModel { + return &NullableV0UserPlanRespModel{value: val, isSet: true} +} + +func (v NullableV0UserPlanRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0UserPlanRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_user_profile_data_model.go b/go2/model_v0_user_profile_data_model.go new file mode 100644 index 0000000..0bffbfd --- /dev/null +++ b/go2/model_v0_user_profile_data_model.go @@ -0,0 +1,415 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0UserProfileDataModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0UserProfileDataModel{} + +// V0UserProfileDataModel struct for V0UserProfileDataModel +type V0UserProfileDataModel struct { + AvatarUrl *string `json:"avatar_url,omitempty"` + CreatedAt *string `json:"created_at,omitempty"` + DataId *int32 `json:"data_id,omitempty"` + Email *string `json:"email,omitempty"` + HasUsedOrganizationTrial *bool `json:"has_used_organization_trial,omitempty"` + PaymentProcessor *string `json:"payment_processor,omitempty"` + Slug *string `json:"slug,omitempty"` + UnconfirmedEmail *string `json:"unconfirmed_email,omitempty"` + Username *string `json:"username,omitempty"` +} + +// NewV0UserProfileDataModel instantiates a new V0UserProfileDataModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0UserProfileDataModel() *V0UserProfileDataModel { + this := V0UserProfileDataModel{} + return &this +} + +// NewV0UserProfileDataModelWithDefaults instantiates a new V0UserProfileDataModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0UserProfileDataModelWithDefaults() *V0UserProfileDataModel { + this := V0UserProfileDataModel{} + return &this +} + +// GetAvatarUrl returns the AvatarUrl field value if set, zero value otherwise. +func (o *V0UserProfileDataModel) GetAvatarUrl() string { + if o == nil || IsNil(o.AvatarUrl) { + var ret string + return ret + } + return *o.AvatarUrl +} + +// GetAvatarUrlOk returns a tuple with the AvatarUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0UserProfileDataModel) GetAvatarUrlOk() (*string, bool) { + if o == nil || IsNil(o.AvatarUrl) { + return nil, false + } + return o.AvatarUrl, true +} + +// HasAvatarUrl returns a boolean if a field has been set. +func (o *V0UserProfileDataModel) HasAvatarUrl() bool { + if o != nil && !IsNil(o.AvatarUrl) { + return true + } + + return false +} + +// SetAvatarUrl gets a reference to the given string and assigns it to the AvatarUrl field. +func (o *V0UserProfileDataModel) SetAvatarUrl(v string) { + o.AvatarUrl = &v +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *V0UserProfileDataModel) GetCreatedAt() string { + if o == nil || IsNil(o.CreatedAt) { + var ret string + 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 *V0UserProfileDataModel) GetCreatedAtOk() (*string, 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 *V0UserProfileDataModel) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. +func (o *V0UserProfileDataModel) SetCreatedAt(v string) { + o.CreatedAt = &v +} + +// GetDataId returns the DataId field value if set, zero value otherwise. +func (o *V0UserProfileDataModel) GetDataId() int32 { + if o == nil || IsNil(o.DataId) { + var ret int32 + return ret + } + return *o.DataId +} + +// GetDataIdOk returns a tuple with the DataId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0UserProfileDataModel) GetDataIdOk() (*int32, bool) { + if o == nil || IsNil(o.DataId) { + return nil, false + } + return o.DataId, true +} + +// HasDataId returns a boolean if a field has been set. +func (o *V0UserProfileDataModel) HasDataId() bool { + if o != nil && !IsNil(o.DataId) { + return true + } + + return false +} + +// SetDataId gets a reference to the given int32 and assigns it to the DataId field. +func (o *V0UserProfileDataModel) SetDataId(v int32) { + o.DataId = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *V0UserProfileDataModel) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0UserProfileDataModel) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *V0UserProfileDataModel) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *V0UserProfileDataModel) SetEmail(v string) { + o.Email = &v +} + +// GetHasUsedOrganizationTrial returns the HasUsedOrganizationTrial field value if set, zero value otherwise. +func (o *V0UserProfileDataModel) GetHasUsedOrganizationTrial() bool { + if o == nil || IsNil(o.HasUsedOrganizationTrial) { + var ret bool + return ret + } + return *o.HasUsedOrganizationTrial +} + +// GetHasUsedOrganizationTrialOk returns a tuple with the HasUsedOrganizationTrial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0UserProfileDataModel) GetHasUsedOrganizationTrialOk() (*bool, bool) { + if o == nil || IsNil(o.HasUsedOrganizationTrial) { + return nil, false + } + return o.HasUsedOrganizationTrial, true +} + +// HasHasUsedOrganizationTrial returns a boolean if a field has been set. +func (o *V0UserProfileDataModel) HasHasUsedOrganizationTrial() bool { + if o != nil && !IsNil(o.HasUsedOrganizationTrial) { + return true + } + + return false +} + +// SetHasUsedOrganizationTrial gets a reference to the given bool and assigns it to the HasUsedOrganizationTrial field. +func (o *V0UserProfileDataModel) SetHasUsedOrganizationTrial(v bool) { + o.HasUsedOrganizationTrial = &v +} + +// GetPaymentProcessor returns the PaymentProcessor field value if set, zero value otherwise. +func (o *V0UserProfileDataModel) GetPaymentProcessor() string { + if o == nil || IsNil(o.PaymentProcessor) { + var ret string + return ret + } + return *o.PaymentProcessor +} + +// GetPaymentProcessorOk returns a tuple with the PaymentProcessor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0UserProfileDataModel) GetPaymentProcessorOk() (*string, bool) { + if o == nil || IsNil(o.PaymentProcessor) { + return nil, false + } + return o.PaymentProcessor, true +} + +// HasPaymentProcessor returns a boolean if a field has been set. +func (o *V0UserProfileDataModel) HasPaymentProcessor() bool { + if o != nil && !IsNil(o.PaymentProcessor) { + return true + } + + return false +} + +// SetPaymentProcessor gets a reference to the given string and assigns it to the PaymentProcessor field. +func (o *V0UserProfileDataModel) SetPaymentProcessor(v string) { + o.PaymentProcessor = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0UserProfileDataModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0UserProfileDataModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0UserProfileDataModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0UserProfileDataModel) SetSlug(v string) { + o.Slug = &v +} + +// GetUnconfirmedEmail returns the UnconfirmedEmail field value if set, zero value otherwise. +func (o *V0UserProfileDataModel) GetUnconfirmedEmail() string { + if o == nil || IsNil(o.UnconfirmedEmail) { + var ret string + return ret + } + return *o.UnconfirmedEmail +} + +// GetUnconfirmedEmailOk returns a tuple with the UnconfirmedEmail field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0UserProfileDataModel) GetUnconfirmedEmailOk() (*string, bool) { + if o == nil || IsNil(o.UnconfirmedEmail) { + return nil, false + } + return o.UnconfirmedEmail, true +} + +// HasUnconfirmedEmail returns a boolean if a field has been set. +func (o *V0UserProfileDataModel) HasUnconfirmedEmail() bool { + if o != nil && !IsNil(o.UnconfirmedEmail) { + return true + } + + return false +} + +// SetUnconfirmedEmail gets a reference to the given string and assigns it to the UnconfirmedEmail field. +func (o *V0UserProfileDataModel) SetUnconfirmedEmail(v string) { + o.UnconfirmedEmail = &v +} + +// GetUsername returns the Username field value if set, zero value otherwise. +func (o *V0UserProfileDataModel) 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 *V0UserProfileDataModel) 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 *V0UserProfileDataModel) 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 *V0UserProfileDataModel) SetUsername(v string) { + o.Username = &v +} + +func (o V0UserProfileDataModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0UserProfileDataModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.AvatarUrl) { + toSerialize["avatar_url"] = o.AvatarUrl + } + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.DataId) { + toSerialize["data_id"] = o.DataId + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.HasUsedOrganizationTrial) { + toSerialize["has_used_organization_trial"] = o.HasUsedOrganizationTrial + } + if !IsNil(o.PaymentProcessor) { + toSerialize["payment_processor"] = o.PaymentProcessor + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.UnconfirmedEmail) { + toSerialize["unconfirmed_email"] = o.UnconfirmedEmail + } + if !IsNil(o.Username) { + toSerialize["username"] = o.Username + } + return toSerialize, nil +} + +type NullableV0UserProfileDataModel struct { + value *V0UserProfileDataModel + isSet bool +} + +func (v NullableV0UserProfileDataModel) Get() *V0UserProfileDataModel { + return v.value +} + +func (v *NullableV0UserProfileDataModel) Set(val *V0UserProfileDataModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0UserProfileDataModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0UserProfileDataModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0UserProfileDataModel(val *V0UserProfileDataModel) *NullableV0UserProfileDataModel { + return &NullableV0UserProfileDataModel{value: val, isSet: true} +} + +func (v NullableV0UserProfileDataModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0UserProfileDataModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_user_profile_resp_model.go b/go2/model_v0_user_profile_resp_model.go new file mode 100644 index 0000000..fd3ecd0 --- /dev/null +++ b/go2/model_v0_user_profile_resp_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0UserProfileRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0UserProfileRespModel{} + +// V0UserProfileRespModel struct for V0UserProfileRespModel +type V0UserProfileRespModel struct { + Data *V0UserProfileDataModel `json:"data,omitempty"` +} + +// NewV0UserProfileRespModel instantiates a new V0UserProfileRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0UserProfileRespModel() *V0UserProfileRespModel { + this := V0UserProfileRespModel{} + return &this +} + +// NewV0UserProfileRespModelWithDefaults instantiates a new V0UserProfileRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0UserProfileRespModelWithDefaults() *V0UserProfileRespModel { + this := V0UserProfileRespModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0UserProfileRespModel) GetData() V0UserProfileDataModel { + if o == nil || IsNil(o.Data) { + var ret V0UserProfileDataModel + 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 *V0UserProfileRespModel) GetDataOk() (*V0UserProfileDataModel, 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 *V0UserProfileRespModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0UserProfileDataModel and assigns it to the Data field. +func (o *V0UserProfileRespModel) SetData(v V0UserProfileDataModel) { + o.Data = &v +} + +func (o V0UserProfileRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0UserProfileRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0UserProfileRespModel struct { + value *V0UserProfileRespModel + isSet bool +} + +func (v NullableV0UserProfileRespModel) Get() *V0UserProfileRespModel { + return v.value +} + +func (v *NullableV0UserProfileRespModel) Set(val *V0UserProfileRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0UserProfileRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0UserProfileRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0UserProfileRespModel(val *V0UserProfileRespModel) *NullableV0UserProfileRespModel { + return &NullableV0UserProfileRespModel{value: val, isSet: true} +} + +func (v NullableV0UserProfileRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0UserProfileRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_webhook_delivery_item_response_model.go b/go2/model_v0_webhook_delivery_item_response_model.go new file mode 100644 index 0000000..2623cf0 --- /dev/null +++ b/go2/model_v0_webhook_delivery_item_response_model.go @@ -0,0 +1,451 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0WebhookDeliveryItemResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0WebhookDeliveryItemResponseModel{} + +// V0WebhookDeliveryItemResponseModel struct for V0WebhookDeliveryItemResponseModel +type V0WebhookDeliveryItemResponseModel struct { + CreatedAt *string `json:"created_at,omitempty"` + RequestHeaders *string `json:"request_headers,omitempty"` + RequestPayload *string `json:"request_payload,omitempty"` + RequestUrl *string `json:"request_url,omitempty"` + ResponseBody *NullsString `json:"response_body,omitempty"` + ResponseHeaders *NullsString `json:"response_headers,omitempty"` + ResponseHttpStatus *NullsInt64 `json:"response_http_status,omitempty"` + ResponseSeconds *NullsInt64 `json:"response_seconds,omitempty"` + Slug *string `json:"slug,omitempty"` + UpdatedAt *string `json:"updated_at,omitempty"` +} + +// NewV0WebhookDeliveryItemResponseModel instantiates a new V0WebhookDeliveryItemResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0WebhookDeliveryItemResponseModel() *V0WebhookDeliveryItemResponseModel { + this := V0WebhookDeliveryItemResponseModel{} + return &this +} + +// NewV0WebhookDeliveryItemResponseModelWithDefaults instantiates a new V0WebhookDeliveryItemResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0WebhookDeliveryItemResponseModelWithDefaults() *V0WebhookDeliveryItemResponseModel { + this := V0WebhookDeliveryItemResponseModel{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *V0WebhookDeliveryItemResponseModel) GetCreatedAt() string { + if o == nil || IsNil(o.CreatedAt) { + var ret string + 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 *V0WebhookDeliveryItemResponseModel) GetCreatedAtOk() (*string, 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 *V0WebhookDeliveryItemResponseModel) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given string and assigns it to the CreatedAt field. +func (o *V0WebhookDeliveryItemResponseModel) SetCreatedAt(v string) { + o.CreatedAt = &v +} + +// GetRequestHeaders returns the RequestHeaders field value if set, zero value otherwise. +func (o *V0WebhookDeliveryItemResponseModel) GetRequestHeaders() string { + if o == nil || IsNil(o.RequestHeaders) { + var ret string + return ret + } + return *o.RequestHeaders +} + +// GetRequestHeadersOk returns a tuple with the RequestHeaders field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0WebhookDeliveryItemResponseModel) GetRequestHeadersOk() (*string, bool) { + if o == nil || IsNil(o.RequestHeaders) { + return nil, false + } + return o.RequestHeaders, true +} + +// HasRequestHeaders returns a boolean if a field has been set. +func (o *V0WebhookDeliveryItemResponseModel) HasRequestHeaders() bool { + if o != nil && !IsNil(o.RequestHeaders) { + return true + } + + return false +} + +// SetRequestHeaders gets a reference to the given string and assigns it to the RequestHeaders field. +func (o *V0WebhookDeliveryItemResponseModel) SetRequestHeaders(v string) { + o.RequestHeaders = &v +} + +// GetRequestPayload returns the RequestPayload field value if set, zero value otherwise. +func (o *V0WebhookDeliveryItemResponseModel) GetRequestPayload() string { + if o == nil || IsNil(o.RequestPayload) { + var ret string + return ret + } + return *o.RequestPayload +} + +// GetRequestPayloadOk returns a tuple with the RequestPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0WebhookDeliveryItemResponseModel) GetRequestPayloadOk() (*string, bool) { + if o == nil || IsNil(o.RequestPayload) { + return nil, false + } + return o.RequestPayload, true +} + +// HasRequestPayload returns a boolean if a field has been set. +func (o *V0WebhookDeliveryItemResponseModel) HasRequestPayload() bool { + if o != nil && !IsNil(o.RequestPayload) { + return true + } + + return false +} + +// SetRequestPayload gets a reference to the given string and assigns it to the RequestPayload field. +func (o *V0WebhookDeliveryItemResponseModel) SetRequestPayload(v string) { + o.RequestPayload = &v +} + +// GetRequestUrl returns the RequestUrl field value if set, zero value otherwise. +func (o *V0WebhookDeliveryItemResponseModel) GetRequestUrl() string { + if o == nil || IsNil(o.RequestUrl) { + var ret string + return ret + } + return *o.RequestUrl +} + +// GetRequestUrlOk returns a tuple with the RequestUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0WebhookDeliveryItemResponseModel) GetRequestUrlOk() (*string, bool) { + if o == nil || IsNil(o.RequestUrl) { + return nil, false + } + return o.RequestUrl, true +} + +// HasRequestUrl returns a boolean if a field has been set. +func (o *V0WebhookDeliveryItemResponseModel) HasRequestUrl() bool { + if o != nil && !IsNil(o.RequestUrl) { + return true + } + + return false +} + +// SetRequestUrl gets a reference to the given string and assigns it to the RequestUrl field. +func (o *V0WebhookDeliveryItemResponseModel) SetRequestUrl(v string) { + o.RequestUrl = &v +} + +// GetResponseBody returns the ResponseBody field value if set, zero value otherwise. +func (o *V0WebhookDeliveryItemResponseModel) GetResponseBody() NullsString { + if o == nil || IsNil(o.ResponseBody) { + var ret NullsString + return ret + } + return *o.ResponseBody +} + +// GetResponseBodyOk returns a tuple with the ResponseBody field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0WebhookDeliveryItemResponseModel) GetResponseBodyOk() (*NullsString, bool) { + if o == nil || IsNil(o.ResponseBody) { + return nil, false + } + return o.ResponseBody, true +} + +// HasResponseBody returns a boolean if a field has been set. +func (o *V0WebhookDeliveryItemResponseModel) HasResponseBody() bool { + if o != nil && !IsNil(o.ResponseBody) { + return true + } + + return false +} + +// SetResponseBody gets a reference to the given NullsString and assigns it to the ResponseBody field. +func (o *V0WebhookDeliveryItemResponseModel) SetResponseBody(v NullsString) { + o.ResponseBody = &v +} + +// GetResponseHeaders returns the ResponseHeaders field value if set, zero value otherwise. +func (o *V0WebhookDeliveryItemResponseModel) GetResponseHeaders() NullsString { + if o == nil || IsNil(o.ResponseHeaders) { + var ret NullsString + return ret + } + return *o.ResponseHeaders +} + +// GetResponseHeadersOk returns a tuple with the ResponseHeaders field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0WebhookDeliveryItemResponseModel) GetResponseHeadersOk() (*NullsString, bool) { + if o == nil || IsNil(o.ResponseHeaders) { + return nil, false + } + return o.ResponseHeaders, true +} + +// HasResponseHeaders returns a boolean if a field has been set. +func (o *V0WebhookDeliveryItemResponseModel) HasResponseHeaders() bool { + if o != nil && !IsNil(o.ResponseHeaders) { + return true + } + + return false +} + +// SetResponseHeaders gets a reference to the given NullsString and assigns it to the ResponseHeaders field. +func (o *V0WebhookDeliveryItemResponseModel) SetResponseHeaders(v NullsString) { + o.ResponseHeaders = &v +} + +// GetResponseHttpStatus returns the ResponseHttpStatus field value if set, zero value otherwise. +func (o *V0WebhookDeliveryItemResponseModel) GetResponseHttpStatus() NullsInt64 { + if o == nil || IsNil(o.ResponseHttpStatus) { + var ret NullsInt64 + return ret + } + return *o.ResponseHttpStatus +} + +// GetResponseHttpStatusOk returns a tuple with the ResponseHttpStatus field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0WebhookDeliveryItemResponseModel) GetResponseHttpStatusOk() (*NullsInt64, bool) { + if o == nil || IsNil(o.ResponseHttpStatus) { + return nil, false + } + return o.ResponseHttpStatus, true +} + +// HasResponseHttpStatus returns a boolean if a field has been set. +func (o *V0WebhookDeliveryItemResponseModel) HasResponseHttpStatus() bool { + if o != nil && !IsNil(o.ResponseHttpStatus) { + return true + } + + return false +} + +// SetResponseHttpStatus gets a reference to the given NullsInt64 and assigns it to the ResponseHttpStatus field. +func (o *V0WebhookDeliveryItemResponseModel) SetResponseHttpStatus(v NullsInt64) { + o.ResponseHttpStatus = &v +} + +// GetResponseSeconds returns the ResponseSeconds field value if set, zero value otherwise. +func (o *V0WebhookDeliveryItemResponseModel) GetResponseSeconds() NullsInt64 { + if o == nil || IsNil(o.ResponseSeconds) { + var ret NullsInt64 + return ret + } + return *o.ResponseSeconds +} + +// GetResponseSecondsOk returns a tuple with the ResponseSeconds field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0WebhookDeliveryItemResponseModel) GetResponseSecondsOk() (*NullsInt64, bool) { + if o == nil || IsNil(o.ResponseSeconds) { + return nil, false + } + return o.ResponseSeconds, true +} + +// HasResponseSeconds returns a boolean if a field has been set. +func (o *V0WebhookDeliveryItemResponseModel) HasResponseSeconds() bool { + if o != nil && !IsNil(o.ResponseSeconds) { + return true + } + + return false +} + +// SetResponseSeconds gets a reference to the given NullsInt64 and assigns it to the ResponseSeconds field. +func (o *V0WebhookDeliveryItemResponseModel) SetResponseSeconds(v NullsInt64) { + o.ResponseSeconds = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *V0WebhookDeliveryItemResponseModel) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0WebhookDeliveryItemResponseModel) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *V0WebhookDeliveryItemResponseModel) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *V0WebhookDeliveryItemResponseModel) SetSlug(v string) { + o.Slug = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *V0WebhookDeliveryItemResponseModel) GetUpdatedAt() string { + if o == nil || IsNil(o.UpdatedAt) { + var ret string + 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 *V0WebhookDeliveryItemResponseModel) GetUpdatedAtOk() (*string, 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 *V0WebhookDeliveryItemResponseModel) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given string and assigns it to the UpdatedAt field. +func (o *V0WebhookDeliveryItemResponseModel) SetUpdatedAt(v string) { + o.UpdatedAt = &v +} + +func (o V0WebhookDeliveryItemResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0WebhookDeliveryItemResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["created_at"] = o.CreatedAt + } + if !IsNil(o.RequestHeaders) { + toSerialize["request_headers"] = o.RequestHeaders + } + if !IsNil(o.RequestPayload) { + toSerialize["request_payload"] = o.RequestPayload + } + if !IsNil(o.RequestUrl) { + toSerialize["request_url"] = o.RequestUrl + } + if !IsNil(o.ResponseBody) { + toSerialize["response_body"] = o.ResponseBody + } + if !IsNil(o.ResponseHeaders) { + toSerialize["response_headers"] = o.ResponseHeaders + } + if !IsNil(o.ResponseHttpStatus) { + toSerialize["response_http_status"] = o.ResponseHttpStatus + } + if !IsNil(o.ResponseSeconds) { + toSerialize["response_seconds"] = o.ResponseSeconds + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.UpdatedAt) { + toSerialize["updated_at"] = o.UpdatedAt + } + return toSerialize, nil +} + +type NullableV0WebhookDeliveryItemResponseModel struct { + value *V0WebhookDeliveryItemResponseModel + isSet bool +} + +func (v NullableV0WebhookDeliveryItemResponseModel) Get() *V0WebhookDeliveryItemResponseModel { + return v.value +} + +func (v *NullableV0WebhookDeliveryItemResponseModel) Set(val *V0WebhookDeliveryItemResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0WebhookDeliveryItemResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0WebhookDeliveryItemResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0WebhookDeliveryItemResponseModel(val *V0WebhookDeliveryItemResponseModel) *NullableV0WebhookDeliveryItemResponseModel { + return &NullableV0WebhookDeliveryItemResponseModel{value: val, isSet: true} +} + +func (v NullableV0WebhookDeliveryItemResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0WebhookDeliveryItemResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_webhook_delivery_item_show_response_model.go b/go2/model_v0_webhook_delivery_item_show_response_model.go new file mode 100644 index 0000000..161c024 --- /dev/null +++ b/go2/model_v0_webhook_delivery_item_show_response_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0WebhookDeliveryItemShowResponseModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0WebhookDeliveryItemShowResponseModel{} + +// V0WebhookDeliveryItemShowResponseModel struct for V0WebhookDeliveryItemShowResponseModel +type V0WebhookDeliveryItemShowResponseModel struct { + Data *V0WebhookDeliveryItemResponseModel `json:"data,omitempty"` +} + +// NewV0WebhookDeliveryItemShowResponseModel instantiates a new V0WebhookDeliveryItemShowResponseModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0WebhookDeliveryItemShowResponseModel() *V0WebhookDeliveryItemShowResponseModel { + this := V0WebhookDeliveryItemShowResponseModel{} + return &this +} + +// NewV0WebhookDeliveryItemShowResponseModelWithDefaults instantiates a new V0WebhookDeliveryItemShowResponseModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0WebhookDeliveryItemShowResponseModelWithDefaults() *V0WebhookDeliveryItemShowResponseModel { + this := V0WebhookDeliveryItemShowResponseModel{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise. +func (o *V0WebhookDeliveryItemShowResponseModel) GetData() V0WebhookDeliveryItemResponseModel { + if o == nil || IsNil(o.Data) { + var ret V0WebhookDeliveryItemResponseModel + 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 *V0WebhookDeliveryItemShowResponseModel) GetDataOk() (*V0WebhookDeliveryItemResponseModel, 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 *V0WebhookDeliveryItemShowResponseModel) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given V0WebhookDeliveryItemResponseModel and assigns it to the Data field. +func (o *V0WebhookDeliveryItemShowResponseModel) SetData(v V0WebhookDeliveryItemResponseModel) { + o.Data = &v +} + +func (o V0WebhookDeliveryItemShowResponseModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0WebhookDeliveryItemShowResponseModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Data) { + toSerialize["data"] = o.Data + } + return toSerialize, nil +} + +type NullableV0WebhookDeliveryItemShowResponseModel struct { + value *V0WebhookDeliveryItemShowResponseModel + isSet bool +} + +func (v NullableV0WebhookDeliveryItemShowResponseModel) Get() *V0WebhookDeliveryItemShowResponseModel { + return v.value +} + +func (v *NullableV0WebhookDeliveryItemShowResponseModel) Set(val *V0WebhookDeliveryItemShowResponseModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0WebhookDeliveryItemShowResponseModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0WebhookDeliveryItemShowResponseModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0WebhookDeliveryItemShowResponseModel(val *V0WebhookDeliveryItemShowResponseModel) *NullableV0WebhookDeliveryItemShowResponseModel { + return &NullableV0WebhookDeliveryItemShowResponseModel{value: val, isSet: true} +} + +func (v NullableV0WebhookDeliveryItemShowResponseModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0WebhookDeliveryItemShowResponseModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_v0_webhook_resp_model.go b/go2/model_v0_webhook_resp_model.go new file mode 100644 index 0000000..7185d60 --- /dev/null +++ b/go2/model_v0_webhook_resp_model.go @@ -0,0 +1,127 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" +) + +// checks if the V0WebhookRespModel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V0WebhookRespModel{} + +// V0WebhookRespModel struct for V0WebhookRespModel +type V0WebhookRespModel struct { + Status *string `json:"status,omitempty"` +} + +// NewV0WebhookRespModel instantiates a new V0WebhookRespModel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV0WebhookRespModel() *V0WebhookRespModel { + this := V0WebhookRespModel{} + return &this +} + +// NewV0WebhookRespModelWithDefaults instantiates a new V0WebhookRespModel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV0WebhookRespModelWithDefaults() *V0WebhookRespModel { + this := V0WebhookRespModel{} + return &this +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *V0WebhookRespModel) GetStatus() string { + if o == nil || IsNil(o.Status) { + var ret string + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *V0WebhookRespModel) GetStatusOk() (*string, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *V0WebhookRespModel) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given string and assigns it to the Status field. +func (o *V0WebhookRespModel) SetStatus(v string) { + o.Status = &v +} + +func (o V0WebhookRespModel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V0WebhookRespModel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + return toSerialize, nil +} + +type NullableV0WebhookRespModel struct { + value *V0WebhookRespModel + isSet bool +} + +func (v NullableV0WebhookRespModel) Get() *V0WebhookRespModel { + return v.value +} + +func (v *NullableV0WebhookRespModel) Set(val *V0WebhookRespModel) { + v.value = val + v.isSet = true +} + +func (v NullableV0WebhookRespModel) IsSet() bool { + return v.isSet +} + +func (v *NullableV0WebhookRespModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV0WebhookRespModel(val *V0WebhookRespModel) *NullableV0WebhookRespModel { + return &NullableV0WebhookRespModel{value: val, isSet: true} +} + +func (v NullableV0WebhookRespModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV0WebhookRespModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/go2/model_website_bitrise_yml_location.go b/go2/model_website_bitrise_yml_location.go new file mode 100644 index 0000000..c36c131 --- /dev/null +++ b/go2/model_website_bitrise_yml_location.go @@ -0,0 +1,112 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "fmt" +) + +// WebsiteBitriseYMLLocation the model 'WebsiteBitriseYMLLocation' +type WebsiteBitriseYMLLocation string + +// List of website.BitriseYMLLocation +const ( + LocationBitriseIo WebsiteBitriseYMLLocation = "bitrise.io" + LocationRepository WebsiteBitriseYMLLocation = "repository" +) + +// All allowed values of WebsiteBitriseYMLLocation enum +var AllowedWebsiteBitriseYMLLocationEnumValues = []WebsiteBitriseYMLLocation{ + "bitrise.io", + "repository", +} + +func (v *WebsiteBitriseYMLLocation) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WebsiteBitriseYMLLocation(value) + for _, existing := range AllowedWebsiteBitriseYMLLocationEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WebsiteBitriseYMLLocation", value) +} + +// NewWebsiteBitriseYMLLocationFromValue returns a pointer to a valid WebsiteBitriseYMLLocation +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWebsiteBitriseYMLLocationFromValue(v string) (*WebsiteBitriseYMLLocation, error) { + ev := WebsiteBitriseYMLLocation(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WebsiteBitriseYMLLocation: valid values are %v", v, AllowedWebsiteBitriseYMLLocationEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WebsiteBitriseYMLLocation) IsValid() bool { + for _, existing := range AllowedWebsiteBitriseYMLLocationEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to website.BitriseYMLLocation value +func (v WebsiteBitriseYMLLocation) Ptr() *WebsiteBitriseYMLLocation { + return &v +} + +type NullableWebsiteBitriseYMLLocation struct { + value *WebsiteBitriseYMLLocation + isSet bool +} + +func (v NullableWebsiteBitriseYMLLocation) Get() *WebsiteBitriseYMLLocation { + return v.value +} + +func (v *NullableWebsiteBitriseYMLLocation) Set(val *WebsiteBitriseYMLLocation) { + v.value = val + v.isSet = true +} + +func (v NullableWebsiteBitriseYMLLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableWebsiteBitriseYMLLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWebsiteBitriseYMLLocation(val *WebsiteBitriseYMLLocation) *NullableWebsiteBitriseYMLLocation { + return &NullableWebsiteBitriseYMLLocation{value: val, isSet: true} +} + +func (v NullableWebsiteBitriseYMLLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWebsiteBitriseYMLLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/go2/response.go b/go2/response.go new file mode 100644 index 0000000..0ea5dfc --- /dev/null +++ b/go2/response.go @@ -0,0 +1,48 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +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/go2/test/api_activity_test.go b/go2/test/api_activity_test.go new file mode 100644 index 0000000..a83ec1b --- /dev/null +++ b/go2/test/api_activity_test.go @@ -0,0 +1,37 @@ +/* +Bitrise API + +Testing ActivityAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_ActivityAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ActivityAPIService ActivityList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ActivityAPI.ActivityList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_addons_test.go b/go2/test/api_addons_test.go new file mode 100644 index 0000000..051f4ca --- /dev/null +++ b/go2/test/api_addons_test.go @@ -0,0 +1,93 @@ +/* +Bitrise API + +Testing AddonsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_AddonsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AddonsAPIService AddonListByApp", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.AddonsAPI.AddonListByApp(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AddonsAPIService AddonListByOrganization", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var organizationSlug string + + resp, httpRes, err := apiClient.AddonsAPI.AddonListByOrganization(context.Background(), organizationSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AddonsAPIService AddonListByUser", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var userSlug string + + resp, httpRes, err := apiClient.AddonsAPI.AddonListByUser(context.Background(), userSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AddonsAPIService AddonsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AddonsAPI.AddonsList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AddonsAPIService AddonsShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var addonId string + + resp, httpRes, err := apiClient.AddonsAPI.AddonsShow(context.Background(), addonId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_android_keystore_file_test.go b/go2/test/api_android_keystore_file_test.go new file mode 100644 index 0000000..e618748 --- /dev/null +++ b/go2/test/api_android_keystore_file_test.go @@ -0,0 +1,83 @@ +/* +Bitrise API + +Testing AndroidKeystoreFileAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_AndroidKeystoreFileAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AndroidKeystoreFileAPIService AndroidKeystoreFileConfirm", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var androidKeystoreFileSlug string + + resp, httpRes, err := apiClient.AndroidKeystoreFileAPI.AndroidKeystoreFileConfirm(context.Background(), appSlug, androidKeystoreFileSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AndroidKeystoreFileAPIService AndroidKeystoreFileCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.AndroidKeystoreFileAPI.AndroidKeystoreFileCreate(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AndroidKeystoreFileAPIService AndroidKeystoreFileDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var androidKeystoreFileSlug string + + resp, httpRes, err := apiClient.AndroidKeystoreFileAPI.AndroidKeystoreFileDelete(context.Background(), appSlug, androidKeystoreFileSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AndroidKeystoreFileAPIService AndroidKeystoreFileList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.AndroidKeystoreFileAPI.AndroidKeystoreFileList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_app_setup_test.go b/go2/test/api_app_setup_test.go new file mode 100644 index 0000000..062131b --- /dev/null +++ b/go2/test/api_app_setup_test.go @@ -0,0 +1,120 @@ +/* +Bitrise API + +Testing AppSetupAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_AppSetupAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AppSetupAPIService AppConfigCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.AppSetupAPI.AppConfigCreate(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AppSetupAPIService AppCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.AppSetupAPI.AppCreate(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AppSetupAPIService AppFinish", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.AppSetupAPI.AppFinish(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AppSetupAPIService AppSetupBitriseYmlConfigGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.AppSetupAPI.AppSetupBitriseYmlConfigGet(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AppSetupAPIService AppSetupBitriseYmlConfigUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + httpRes, err := apiClient.AppSetupAPI.AppSetupBitriseYmlConfigUpdate(context.Background(), appSlug).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AppSetupAPIService AppWebhookCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.AppSetupAPI.AppWebhookCreate(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test AppSetupAPIService SshKeyCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.AppSetupAPI.SshKeyCreate(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_apple_api_credentials_test.go b/go2/test/api_apple_api_credentials_test.go new file mode 100644 index 0000000..8040f8e --- /dev/null +++ b/go2/test/api_apple_api_credentials_test.go @@ -0,0 +1,39 @@ +/* +Bitrise API + +Testing AppleApiCredentialsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_AppleApiCredentialsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test AppleApiCredentialsAPIService AppleApiCredentialList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var userSlug string + + resp, httpRes, err := apiClient.AppleApiCredentialsAPI.AppleApiCredentialList(context.Background(), userSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_application_test.go b/go2/test/api_application_test.go new file mode 100644 index 0000000..6f20542 --- /dev/null +++ b/go2/test/api_application_test.go @@ -0,0 +1,179 @@ +/* +Bitrise API + +Testing ApplicationAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_ApplicationAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ApplicationAPIService AppConfigDatastoreShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.ApplicationAPI.AppConfigDatastoreShow(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApplicationAPIService AppDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.ApplicationAPI.AppDelete(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApplicationAPIService AppList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.ApplicationAPI.AppList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApplicationAPIService AppListByOrganization", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgSlug string + + resp, httpRes, err := apiClient.ApplicationAPI.AppListByOrganization(context.Background(), orgSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApplicationAPIService AppListByUser", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var userSlug string + + resp, httpRes, err := apiClient.ApplicationAPI.AppListByUser(context.Background(), userSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApplicationAPIService AppNotifications", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.ApplicationAPI.AppNotifications(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApplicationAPIService AppRolesQuery", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var roleName string + + resp, httpRes, err := apiClient.ApplicationAPI.AppRolesQuery(context.Background(), appSlug, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApplicationAPIService AppRolesUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var roleName string + + resp, httpRes, err := apiClient.ApplicationAPI.AppRolesUpdate(context.Background(), appSlug, roleName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApplicationAPIService AppShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.ApplicationAPI.AppShow(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApplicationAPIService AppUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.ApplicationAPI.AppUpdate(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ApplicationAPIService BranchList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.ApplicationAPI.BranchList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_build_artifact_test.go b/go2/test/api_build_artifact_test.go new file mode 100644 index 0000000..57ef82e --- /dev/null +++ b/go2/test/api_build_artifact_test.go @@ -0,0 +1,88 @@ +/* +Bitrise API + +Testing BuildArtifactAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_BuildArtifactAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test BuildArtifactAPIService ArtifactDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildSlug string + var artifactSlug string + + resp, httpRes, err := apiClient.BuildArtifactAPI.ArtifactDelete(context.Background(), appSlug, buildSlug, artifactSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildArtifactAPIService ArtifactList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildSlug string + + resp, httpRes, err := apiClient.BuildArtifactAPI.ArtifactList(context.Background(), appSlug, buildSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildArtifactAPIService ArtifactShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildSlug string + var artifactSlug string + + resp, httpRes, err := apiClient.BuildArtifactAPI.ArtifactShow(context.Background(), appSlug, buildSlug, artifactSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildArtifactAPIService ArtifactUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildSlug string + var artifactSlug string + + resp, httpRes, err := apiClient.BuildArtifactAPI.ArtifactUpdate(context.Background(), appSlug, buildSlug, artifactSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_build_certificate_test.go b/go2/test/api_build_certificate_test.go new file mode 100644 index 0000000..e451eca --- /dev/null +++ b/go2/test/api_build_certificate_test.go @@ -0,0 +1,113 @@ +/* +Bitrise API + +Testing BuildCertificateAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_BuildCertificateAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test BuildCertificateAPIService BuildCertificateConfirm", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildCertificateSlug string + + resp, httpRes, err := apiClient.BuildCertificateAPI.BuildCertificateConfirm(context.Background(), appSlug, buildCertificateSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildCertificateAPIService BuildCertificateCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.BuildCertificateAPI.BuildCertificateCreate(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildCertificateAPIService BuildCertificateDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildCertificateSlug string + + resp, httpRes, err := apiClient.BuildCertificateAPI.BuildCertificateDelete(context.Background(), appSlug, buildCertificateSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildCertificateAPIService BuildCertificateList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.BuildCertificateAPI.BuildCertificateList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildCertificateAPIService BuildCertificateShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildCertificateSlug string + + resp, httpRes, err := apiClient.BuildCertificateAPI.BuildCertificateShow(context.Background(), appSlug, buildCertificateSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildCertificateAPIService BuildCertificateUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildCertificateSlug string + + resp, httpRes, err := apiClient.BuildCertificateAPI.BuildCertificateUpdate(context.Background(), appSlug, buildCertificateSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_build_request_test.go b/go2/test/api_build_request_test.go new file mode 100644 index 0000000..b8de6a2 --- /dev/null +++ b/go2/test/api_build_request_test.go @@ -0,0 +1,54 @@ +/* +Bitrise API + +Testing BuildRequestAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_BuildRequestAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test BuildRequestAPIService BuildRequestList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.BuildRequestAPI.BuildRequestList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildRequestAPIService BuildRequestUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildRequestSlug string + + resp, httpRes, err := apiClient.BuildRequestAPI.BuildRequestUpdate(context.Background(), appSlug, buildRequestSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_builds_test.go b/go2/test/api_builds_test.go new file mode 100644 index 0000000..9faa696 --- /dev/null +++ b/go2/test/api_builds_test.go @@ -0,0 +1,152 @@ +/* +Bitrise API + +Testing BuildsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_BuildsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test BuildsAPIService ArchivedBuildsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.BuildsAPI.ArchivedBuildsList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildsAPIService BuildAbort", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildSlug string + + resp, httpRes, err := apiClient.BuildsAPI.BuildAbort(context.Background(), appSlug, buildSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildsAPIService BuildBitriseYmlShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildSlug string + + resp, httpRes, err := apiClient.BuildsAPI.BuildBitriseYmlShow(context.Background(), appSlug, buildSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildsAPIService BuildList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.BuildsAPI.BuildList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildsAPIService BuildListAll", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.BuildsAPI.BuildListAll(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildsAPIService BuildLog", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildSlug string + + httpRes, err := apiClient.BuildsAPI.BuildLog(context.Background(), appSlug, buildSlug).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildsAPIService BuildShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var buildSlug string + + resp, httpRes, err := apiClient.BuildsAPI.BuildShow(context.Background(), appSlug, buildSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildsAPIService BuildTrigger", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.BuildsAPI.BuildTrigger(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test BuildsAPIService BuildWorkflowList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.BuildsAPI.BuildWorkflowList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_generic_project_file_test.go b/go2/test/api_generic_project_file_test.go new file mode 100644 index 0000000..8a2f84e --- /dev/null +++ b/go2/test/api_generic_project_file_test.go @@ -0,0 +1,113 @@ +/* +Bitrise API + +Testing GenericProjectFileAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_GenericProjectFileAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test GenericProjectFileAPIService GenericProjectFileConfirm", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var genericProjectFileSlug string + + resp, httpRes, err := apiClient.GenericProjectFileAPI.GenericProjectFileConfirm(context.Background(), appSlug, genericProjectFileSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GenericProjectFileAPIService GenericProjectFileDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var genericProjectFileSlug string + + resp, httpRes, err := apiClient.GenericProjectFileAPI.GenericProjectFileDelete(context.Background(), appSlug, genericProjectFileSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GenericProjectFileAPIService GenericProjectFileList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.GenericProjectFileAPI.GenericProjectFileList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GenericProjectFileAPIService GenericProjectFileShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var genericProjectFileSlug string + + resp, httpRes, err := apiClient.GenericProjectFileAPI.GenericProjectFileShow(context.Background(), appSlug, genericProjectFileSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GenericProjectFileAPIService GenericProjectFileUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var genericProjectFileSlug string + + resp, httpRes, err := apiClient.GenericProjectFileAPI.GenericProjectFileUpdate(context.Background(), appSlug, genericProjectFileSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test GenericProjectFileAPIService GenericProjectFilesCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.GenericProjectFileAPI.GenericProjectFilesCreate(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_key_value_cache_test.go b/go2/test/api_key_value_cache_test.go new file mode 100644 index 0000000..6a09088 --- /dev/null +++ b/go2/test/api_key_value_cache_test.go @@ -0,0 +1,81 @@ +/* +Bitrise API + +Testing KeyValueCacheAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_KeyValueCacheAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test KeyValueCacheAPIService CacheItemDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var cacheItemId string + + httpRes, err := apiClient.KeyValueCacheAPI.CacheItemDelete(context.Background(), appSlug, cacheItemId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test KeyValueCacheAPIService CacheItemDeleteAll", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + httpRes, err := apiClient.KeyValueCacheAPI.CacheItemDeleteAll(context.Background(), appSlug).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test KeyValueCacheAPIService CacheItemDownload", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var cacheItemId string + + resp, httpRes, err := apiClient.KeyValueCacheAPI.CacheItemDownload(context.Background(), appSlug, cacheItemId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test KeyValueCacheAPIService CacheList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.KeyValueCacheAPI.CacheList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_local_builds_test.go b/go2/test/api_local_builds_test.go new file mode 100644 index 0000000..6b4ae06 --- /dev/null +++ b/go2/test/api_local_builds_test.go @@ -0,0 +1,39 @@ +/* +Bitrise API + +Testing LocalBuildsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_LocalBuildsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test LocalBuildsAPIService LocalBuildList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.LocalBuildsAPI.LocalBuildList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_organizations_test.go b/go2/test/api_organizations_test.go new file mode 100644 index 0000000..9c861ea --- /dev/null +++ b/go2/test/api_organizations_test.go @@ -0,0 +1,79 @@ +/* +Bitrise API + +Testing OrganizationsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_OrganizationsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test OrganizationsAPIService OrgList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OrganizationsAPI.OrgList(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService OrgShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgSlug string + + resp, httpRes, err := apiClient.OrganizationsAPI.OrgShow(context.Background(), orgSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService OrganizationMachineTypeUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgSlug string + + resp, httpRes, err := apiClient.OrganizationsAPI.OrganizationMachineTypeUpdate(context.Background(), orgSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OrganizationsAPIService OrganzationGroupsList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var orgSlug string + + resp, httpRes, err := apiClient.OrganizationsAPI.OrganzationGroupsList(context.Background(), orgSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_outgoing_webhook_test.go b/go2/test/api_outgoing_webhook_test.go new file mode 100644 index 0000000..ccb16e7 --- /dev/null +++ b/go2/test/api_outgoing_webhook_test.go @@ -0,0 +1,83 @@ +/* +Bitrise API + +Testing OutgoingWebhookAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_OutgoingWebhookAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test OutgoingWebhookAPIService OutgoingWebhookCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.OutgoingWebhookAPI.OutgoingWebhookCreate(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OutgoingWebhookAPIService OutgoingWebhookDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var appWebhookSlug string + + resp, httpRes, err := apiClient.OutgoingWebhookAPI.OutgoingWebhookDelete(context.Background(), appSlug, appWebhookSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OutgoingWebhookAPIService OutgoingWebhookList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.OutgoingWebhookAPI.OutgoingWebhookList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OutgoingWebhookAPIService OutgoingWebhookUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var appWebhookSlug string + + resp, httpRes, err := apiClient.OutgoingWebhookAPI.OutgoingWebhookUpdate(context.Background(), appSlug, appWebhookSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_pipelines_test.go b/go2/test/api_pipelines_test.go new file mode 100644 index 0000000..eea4b51 --- /dev/null +++ b/go2/test/api_pipelines_test.go @@ -0,0 +1,94 @@ +/* +Bitrise API + +Testing PipelinesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_PipelinesAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test PipelinesAPIService PipelineAbort", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var pipelineId string + + httpRes, err := apiClient.PipelinesAPI.PipelineAbort(context.Background(), appSlug, pipelineId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PipelinesAPIService PipelineList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.PipelinesAPI.PipelineList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PipelinesAPIService PipelineListAll", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.PipelinesAPI.PipelineListAll(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PipelinesAPIService PipelineRebuild", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var pipelineId string + + httpRes, err := apiClient.PipelinesAPI.PipelineRebuild(context.Background(), appSlug, pipelineId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test PipelinesAPIService PipelineShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var pipelineId string + + resp, httpRes, err := apiClient.PipelinesAPI.PipelineShow(context.Background(), appSlug, pipelineId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_provisioning_profile_test.go b/go2/test/api_provisioning_profile_test.go new file mode 100644 index 0000000..563d2de --- /dev/null +++ b/go2/test/api_provisioning_profile_test.go @@ -0,0 +1,113 @@ +/* +Bitrise API + +Testing ProvisioningProfileAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_ProvisioningProfileAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ProvisioningProfileAPIService ProvisioningProfileConfirm", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var provisioningProfileSlug string + + resp, httpRes, err := apiClient.ProvisioningProfileAPI.ProvisioningProfileConfirm(context.Background(), appSlug, provisioningProfileSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProvisioningProfileAPIService ProvisioningProfileCreate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.ProvisioningProfileAPI.ProvisioningProfileCreate(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProvisioningProfileAPIService ProvisioningProfileDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var provisioningProfileSlug string + + resp, httpRes, err := apiClient.ProvisioningProfileAPI.ProvisioningProfileDelete(context.Background(), appSlug, provisioningProfileSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProvisioningProfileAPIService ProvisioningProfileList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.ProvisioningProfileAPI.ProvisioningProfileList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProvisioningProfileAPIService ProvisioningProfileShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var provisioningProfileSlug string + + resp, httpRes, err := apiClient.ProvisioningProfileAPI.ProvisioningProfileShow(context.Background(), appSlug, provisioningProfileSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ProvisioningProfileAPIService ProvisioningProfileUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var provisioningProfileSlug string + + resp, httpRes, err := apiClient.ProvisioningProfileAPI.ProvisioningProfileUpdate(context.Background(), appSlug, provisioningProfileSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_releases_test.go b/go2/test/api_releases_test.go new file mode 100644 index 0000000..721dc21 --- /dev/null +++ b/go2/test/api_releases_test.go @@ -0,0 +1,53 @@ +/* +Bitrise API + +Testing ReleasesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_ReleasesAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test ReleasesAPIService ReleaseCreateAppStore", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.ReleasesAPI.ReleaseCreateAppStore(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test ReleasesAPIService ReleaseCreateGooglePlay", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.ReleasesAPI.ReleaseCreateGooglePlay(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_secrets_test.go b/go2/test/api_secrets_test.go new file mode 100644 index 0000000..873f95d --- /dev/null +++ b/go2/test/api_secrets_test.go @@ -0,0 +1,82 @@ +/* +Bitrise API + +Testing SecretsAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_SecretsAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SecretsAPIService SecretDelete", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var secretName string + + httpRes, err := apiClient.SecretsAPI.SecretDelete(context.Background(), appSlug, secretName).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecretsAPIService SecretList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.SecretsAPI.SecretList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecretsAPIService SecretUpsert", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var secretName string + + httpRes, err := apiClient.SecretsAPI.SecretUpsert(context.Background(), appSlug, secretName).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SecretsAPIService SecretValueGet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var secretName string + + resp, httpRes, err := apiClient.SecretsAPI.SecretValueGet(context.Background(), appSlug, secretName).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_test_devices_test.go b/go2/test/api_test_devices_test.go new file mode 100644 index 0000000..25702e9 --- /dev/null +++ b/go2/test/api_test_devices_test.go @@ -0,0 +1,39 @@ +/* +Bitrise API + +Testing TestDevicesAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_TestDevicesAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test TestDevicesAPIService TestDeviceList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + + resp, httpRes, err := apiClient.TestDevicesAPI.TestDeviceList(context.Background(), appSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_user_test.go b/go2/test/api_user_test.go new file mode 100644 index 0000000..47e8942 --- /dev/null +++ b/go2/test/api_user_test.go @@ -0,0 +1,77 @@ +/* +Bitrise API + +Testing UserAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_UserAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test UserAPIService UserMachineTypeUpdate", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var userSlug string + + resp, httpRes, err := apiClient.UserAPI.UserMachineTypeUpdate(context.Background(), userSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserAPIService UserPlan", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserAPI.UserPlan(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserAPIService UserProfile", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.UserAPI.UserProfile(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test UserAPIService UserShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var userSlug string + + resp, httpRes, err := apiClient.UserAPI.UserShow(context.Background(), userSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/test/api_webhook_delivery_item_test.go b/go2/test/api_webhook_delivery_item_test.go new file mode 100644 index 0000000..184723b --- /dev/null +++ b/go2/test/api_webhook_delivery_item_test.go @@ -0,0 +1,72 @@ +/* +Bitrise API + +Testing WebhookDeliveryItemAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package openapi + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/staffbase/bitrise-api" +) + +func Test_openapi_WebhookDeliveryItemAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test WebhookDeliveryItemAPIService WebhookDeliveryItemList", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var appWebhookSlug string + + resp, httpRes, err := apiClient.WebhookDeliveryItemAPI.WebhookDeliveryItemList(context.Background(), appSlug, appWebhookSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WebhookDeliveryItemAPIService WebhookDeliveryItemRedeliver", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var appWebhookSlug string + var webhookDeliveryItemSlug string + + resp, httpRes, err := apiClient.WebhookDeliveryItemAPI.WebhookDeliveryItemRedeliver(context.Background(), appSlug, appWebhookSlug, webhookDeliveryItemSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WebhookDeliveryItemAPIService WebhookDeliveryItemShow", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var appSlug string + var appWebhookSlug string + var webhookDeliveryItemSlug string + + resp, httpRes, err := apiClient.WebhookDeliveryItemAPI.WebhookDeliveryItemShow(context.Background(), appSlug, appWebhookSlug, webhookDeliveryItemSlug).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/go2/utils.go b/go2/utils.go new file mode 100644 index 0000000..ce7b7c2 --- /dev/null +++ b/go2/utils.go @@ -0,0 +1,348 @@ +/* +Bitrise API + +Official REST API for Bitrise.io + +API version: 0.1 +Contact: letsconnect@bitrise.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package openapi + +import ( + "encoding/json" + "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 v.value.MarshalJSON() +} + +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) +}