interactions:
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-type:
      - application/json
      PRIVATE-TOKEN:
      - glpat-RA2UQwTsyWGQMKooerWL
      User-Agent:
      - gitlabracadabra/2.3.0
    method: GET
    uri: http://gitlab.example.com/api/v4/projects/test%2Fprotected-branches2
  response:
    body:
      string: '{"id":3,"description":null,"name":"Protected Branches2","name_with_namespace":"Test
        / Protected Branches2","path":"protected-branches2","path_with_namespace":"test/protected-branches2","created_at":"2024-10-17T06:02:10.158Z","default_branch":"main","tag_list":[],"topics":[],"ssh_url_to_repo":"git@gitlab.example.com:test/protected-branches2.git","http_url_to_repo":"http://gitlab.example.com/test/protected-branches2.git","web_url":"http://gitlab.example.com/test/protected-branches2","readme_url":"http://gitlab.example.com/test/protected-branches2/-/blob/main/README.md","forks_count":0,"avatar_url":null,"star_count":0,"last_activity_at":"2024-10-17T06:02:10.092Z","namespace":{"id":4,"name":"Test","path":"test","kind":"group","full_path":"test","parent_id":null,"avatar_url":null,"web_url":"http://gitlab.example.com/groups/test"},"repository_storage":"default","container_registry_image_prefix":"gitlab-registry.example.com/test/protected-branches2","_links":{"self":"http://gitlab.example.com/api/v4/projects/3","issues":"http://gitlab.example.com/api/v4/projects/3/issues","merge_requests":"http://gitlab.example.com/api/v4/projects/3/merge_requests","repo_branches":"http://gitlab.example.com/api/v4/projects/3/repository/branches","labels":"http://gitlab.example.com/api/v4/projects/3/labels","events":"http://gitlab.example.com/api/v4/projects/3/events","members":"http://gitlab.example.com/api/v4/projects/3/members","cluster_agents":"http://gitlab.example.com/api/v4/projects/3/cluster_agents"},"packages_enabled":true,"empty_repo":false,"archived":false,"visibility":"private","resolve_outdated_diff_discussions":false,"container_expiration_policy":{"cadence":"1d","enabled":false,"keep_n":10,"older_than":"90d","name_regex":".*","name_regex_keep":null,"next_run_at":"2024-10-18T06:02:10.213Z"},"repository_object_format":"sha1","issues_enabled":true,"merge_requests_enabled":true,"wiki_enabled":true,"jobs_enabled":true,"snippets_enabled":true,"container_registry_enabled":true,"service_desk_enabled":false,"service_desk_address":null,"can_create_merge_request_in":true,"issues_access_level":"enabled","repository_access_level":"enabled","merge_requests_access_level":"enabled","forking_access_level":"enabled","wiki_access_level":"enabled","builds_access_level":"enabled","snippets_access_level":"enabled","pages_access_level":"private","analytics_access_level":"enabled","container_registry_access_level":"enabled","security_and_compliance_access_level":"private","releases_access_level":"enabled","environments_access_level":"enabled","feature_flags_access_level":"enabled","infrastructure_access_level":"enabled","monitor_access_level":"enabled","model_experiments_access_level":"enabled","model_registry_access_level":"enabled","emails_disabled":false,"emails_enabled":true,"shared_runners_enabled":true,"lfs_enabled":true,"creator_id":1,"import_url":null,"import_type":null,"import_status":"none","import_error":null,"open_issues_count":0,"description_html":"","updated_at":"2024-10-17T06:02:13.564Z","ci_default_git_depth":20,"ci_forward_deployment_enabled":true,"ci_forward_deployment_rollback_allowed":true,"ci_job_token_scope_enabled":false,"ci_separated_caches":true,"ci_allow_fork_pipelines_to_run_in_parent_project":true,"ci_id_token_sub_claim_components":["project_path","ref_type","ref"],"build_git_strategy":"fetch","keep_latest_artifact":true,"restrict_user_defined_variables":false,"ci_pipeline_variables_minimum_override_role":"maintainer","runners_token":"GR1348941Q9FQwGsoZ1BQZFbtgky-","runner_token_expiration_interval":null,"group_runners_enabled":true,"auto_cancel_pending_pipelines":"enabled","build_timeout":3600,"auto_devops_enabled":true,"auto_devops_deploy_strategy":"continuous","ci_push_repository_for_job_token_allowed":false,"ci_config_path":null,"public_jobs":true,"shared_with_groups":[],"only_allow_merge_if_pipeline_succeeds":false,"allow_merge_on_skipped_pipeline":null,"request_access_enabled":true,"only_allow_merge_if_all_discussions_are_resolved":false,"remove_source_branch_after_merge":true,"printing_merge_request_link_enabled":true,"merge_method":"merge","squash_option":"default_off","enforce_auth_checks_on_uploads":true,"suggestion_commit_message":null,"merge_commit_template":null,"squash_commit_template":null,"issue_branch_template":null,"warn_about_potentially_unwanted_characters":true,"autoclose_referenced_issues":true,"requirements_enabled":false,"requirements_access_level":"enabled","security_and_compliance_enabled":true,"compliance_frameworks":[],"permissions":{"project_access":null,"group_access":{"access_level":50,"notification_level":3}}}'
    headers:
      Cache-Control:
      - max-age=0, private, must-revalidate
      Connection:
      - keep-alive
      Content-Type:
      - application/json
      Date:
      - Thu, 17 Oct 2024 06:02:45 GMT
      Etag:
      - W/"408d241de915b6cd427ab523c5c2ef74"
      Referrer-Policy:
      - strict-origin-when-cross-origin
      Server:
      - nginx
      Strict-Transport-Security:
      - max-age=63072000
      Transfer-Encoding:
      - chunked
      Vary:
      - Accept-Encoding
      - Origin
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - SAMEORIGIN
      X-Gitlab-Meta:
      - '{"correlation_id":"01JACH4HWK6GZ15TYG1MQ8FXKF","version":"1"}'
      X-Request-Id:
      - 01JACH4HWK6GZ15TYG1MQ8FXKF
      X-Runtime:
      - '0.342415'
      content-length:
      - '4620'
    status:
      code: 200
      message: OK
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-type:
      - application/json
      PRIVATE-TOKEN:
      - glpat-RA2UQwTsyWGQMKooerWL
      User-Agent:
      - gitlabracadabra/2.3.0
    method: GET
    uri: http://gitlab.example.com/api/v4/projects/3/protected_branches
  response:
    body:
      string: '[{"id":5,"name":"main","push_access_levels":[{"id":8,"access_level":40,"access_level_description":"Maintainers","deploy_key_id":null,"user_id":null,"group_id":null}],"merge_access_levels":[{"id":5,"access_level":40,"access_level_description":"Maintainers","user_id":null,"group_id":null}],"allow_force_push":false,"unprotect_access_levels":[],"code_owner_approval_required":false,"inherited":false}]'
    headers:
      Cache-Control:
      - max-age=0, private, must-revalidate
      Connection:
      - keep-alive
      Content-Type:
      - application/json
      Date:
      - Thu, 17 Oct 2024 06:02:45 GMT
      Etag:
      - W/"c5cb4bb0e24f79c7c8124035301a4831"
      Link:
      - <http://gitlab.example.com/api/v4/projects/3/protected_branches?id=3&page=1&per_page=20>;
        rel="first", <http://gitlab.example.com/api/v4/projects/3/protected_branches?id=3&page=1&per_page=20>;
        rel="last"
      Referrer-Policy:
      - strict-origin-when-cross-origin
      Server:
      - nginx
      Strict-Transport-Security:
      - max-age=63072000
      Transfer-Encoding:
      - chunked
      Vary:
      - Accept-Encoding
      - Origin
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - SAMEORIGIN
      X-Gitlab-Meta:
      - '{"correlation_id":"01JACH4J7N6BEV9EK46EZYSKP5","version":"1"}'
      X-Next-Page:
      - ''
      X-Page:
      - '1'
      X-Per-Page:
      - '20'
      X-Prev-Page:
      - ''
      X-Request-Id:
      - 01JACH4J7N6BEV9EK46EZYSKP5
      X-Runtime:
      - '0.236192'
      X-Total:
      - '1'
      X-Total-Pages:
      - '1'
      content-length:
      - '399'
    status:
      code: 200
      message: OK
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-Length:
      - '0'
      Content-type:
      - application/json
      PRIVATE-TOKEN:
      - glpat-RA2UQwTsyWGQMKooerWL
      User-Agent:
      - gitlabracadabra/2.3.0
    method: DELETE
    uri: http://gitlab.example.com/api/v4/projects/3/protected_branches/main
  response:
    body:
      string: ''
    headers:
      Cache-Control:
      - no-cache
      Connection:
      - keep-alive
      Date:
      - Thu, 17 Oct 2024 06:02:46 GMT
      Referrer-Policy:
      - strict-origin-when-cross-origin
      Server:
      - nginx
      Strict-Transport-Security:
      - max-age=63072000
      Vary:
      - Origin
      X-Content-Type-Options:
      - nosniff
      X-Frame-Options:
      - SAMEORIGIN
      X-Gitlab-Meta:
      - '{"correlation_id":"01JACH4JFE3DY9RYRNA12W042V","version":"1"}'
      X-Request-Id:
      - 01JACH4JFE3DY9RYRNA12W042V
      X-Runtime:
      - '0.566136'
    status:
      code: 204
      message: No Content
version: 1
