Remove unused field (#194084)

## Summary

The API
[model](https://github.com/elastic/kibana/blob/main/x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L48)
(points
[here](https://github.com/elastic/kibana/blob/main/x-pack/plugins/fleet/common/types/rest_spec/package_policy.ts#L40-L42))
doesn't actually define this field and it's not returned by the server.

Related to
https://github.com/elastic/terraform-provider-elasticstack/pull/787#discussion_r1772562187


### Checklist

Delete any items that are not applicable to this PR.

- [x] Any text added follows [EUI's writing
guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses
sentence case text and includes [i18n
support](https://github.com/elastic/kibana/blob/main/packages/kbn-i18n/README.md)
- [x]
[Documentation](https://www.elastic.co/guide/en/kibana/master/development-documentation.html)
was added for features that require explanation or tutorials
- [x] [Unit or functional
tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)
were updated or added to match the most common scenarios
- [x] [Flaky Test
Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was
used on any tests changed
- [x] Any UI touched in this PR is usable by keyboard only (learn more
about [keyboard accessibility](https://webaim.org/techniques/keyboard/))
- [x] Any UI touched in this PR does not create any new axe failures
(run axe in browser:
[FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/),
[Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US))
- [x] If a plugin configuration key changed, check if it needs to be
allowlisted in the cloud and added to the [docker
list](https://github.com/elastic/kibana/blob/main/src/dev/build/tasks/os_packages/docker_generator/resources/base/bin/kibana-docker)
- [x] This renders correctly on smaller devices using a responsive
layout. (You can test this [in your
browser](https://www.browserstack.com/guide/responsive-testing-on-local-server))
- [x] This was checked for [cross-browser
compatibility](https://www.elastic.co/support/matrix#matrix_browsers)

### For maintainers

- [ ] This was checked for breaking API changes and was [labeled
appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Toby Brain 2024-09-26 21:05:44 +10:00 committed by GitHub
parent 2217337c5d
commit be9dd06f74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 2 additions and 24 deletions

View file

@ -13012,11 +13012,8 @@ paths:
properties:
item:
$ref: '#/components/schemas/Fleet_package_policy'
sucess:
type: boolean
required:
- item
- sucess
description: OK
'400':
$ref: '#/components/responses/Fleet_error'

View file

@ -9123,11 +9123,8 @@ paths:
properties:
item:
$ref: '#/components/schemas/Fleet_package_policy'
sucess:
type: boolean
required:
- item
- sucess
description: OK
'400':
$ref: '#/components/responses/Fleet_error'

View file

@ -16440,11 +16440,8 @@ paths:
properties:
item:
$ref: '#/components/schemas/Fleet_package_policy'
sucess:
type: boolean
required:
- item
- sucess
description: OK
'400':
$ref: '#/components/responses/Fleet_error'

View file

@ -11734,11 +11734,8 @@ paths:
properties:
item:
$ref: '#/components/schemas/Fleet_package_policy'
sucess:
type: boolean
required:
- item
- sucess
description: OK
'400':
$ref: '#/components/responses/Fleet_error'

View file

@ -4728,14 +4728,10 @@
"properties": {
"item": {
"$ref": "#/components/schemas/package_policy"
},
"sucess": {
"type": "boolean"
}
},
"required": [
"item",
"sucess"
"item"
]
}
}
@ -9567,4 +9563,4 @@
"basicAuth": []
}
]
}
}

View file

@ -2938,11 +2938,8 @@ paths:
properties:
item:
$ref: '#/components/schemas/package_policy'
sucess:
type: boolean
required:
- item
- sucess
'400':
$ref: '#/components/responses/error'
parameters:

View file

@ -45,11 +45,8 @@ put:
properties:
item:
$ref: ../components/schemas/package_policy.yaml
sucess:
type: boolean
required:
- item
- sucess
'400':
$ref: ../components/responses/error.yaml
parameters: