python-gvm 27.3.0__py3-none-any.whl → 27.4.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
gvm/__version__.py CHANGED
@@ -2,4 +2,4 @@
2
2
 
3
3
  # THIS IS AN AUTOGENERATED FILE. DO NOT TOUCH!
4
4
 
5
- __version__ = "27.3.0"
5
+ __version__ = "27.4.0"
@@ -65,17 +65,21 @@ class GMPNext(GMPv227[T]):
65
65
  *,
66
66
  scanner_id: EntityID,
67
67
  language_type: AgentInstallerInstructionLanguageType,
68
+ origin_url: str,
68
69
  ) -> T:
69
70
  """Request an agent installer instruction.
70
71
 
71
72
  Args:
72
73
  scanner_id: UUID of the Agent controller to get the installer instruction for.
73
74
  language_type: Language of the installer instruction.
75
+ origin_url: Origin URL used to generate the executable agent
76
+ installation command.
74
77
  """
75
78
  return self._send_request_and_transform_response(
76
79
  AgentInstallerInstructions.get_agent_installer_instruction(
77
80
  scanner_id=scanner_id,
78
81
  language_type=language_type,
82
+ origin_url=origin_url,
79
83
  )
80
84
  )
81
85
 
@@ -17,12 +17,19 @@ class AgentInstallerInstructions:
17
17
  cls,
18
18
  scanner_id: EntityID,
19
19
  language_type: AgentInstallerInstructionLanguageType,
20
+ origin_url: str,
20
21
  ) -> Request:
21
22
  """Request an agent installer instruction.
22
23
 
23
24
  Args:
24
25
  scanner_id: UUID of the Agent controller to get the installer instruction for.
25
26
  language_type: Language of the installer instruction.
27
+ origin_url: Origin URL used to generate the executable agent
28
+ installation command.
29
+
30
+ Raises:
31
+ RequiredArgument: If scanner_id, language_type, or origin_url is
32
+ missing.
26
33
  """
27
34
  if not scanner_id:
28
35
  raise RequiredArgument(
@@ -36,8 +43,15 @@ class AgentInstallerInstructions:
36
43
  argument="language_type",
37
44
  )
38
45
 
46
+ if not origin_url:
47
+ raise RequiredArgument(
48
+ function=cls.get_agent_installer_instruction.__name__,
49
+ argument="origin_url",
50
+ )
51
+
39
52
  cmd = XmlCommand("get_agent_installer_instruction")
40
53
  cmd.set_attribute("scanner_id", str(scanner_id))
41
54
  cmd.set_attribute("language", language_type.value)
55
+ cmd.set_attribute("origin_url", origin_url)
42
56
 
43
57
  return cmd
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-gvm
3
- Version: 27.3.0
3
+ Version: 27.4.0
4
4
  Summary: Library to communicate with remote servers over GMP or OSP
5
5
  Project-URL: Homepage, https://github.com/greenbone/python-gvm/
6
6
  Project-URL: Repository, https://github.com/greenbone/python-gvm/
@@ -1,5 +1,5 @@
1
1
  gvm/__init__.py,sha256=Eu3a8hRdlixDFn34Q-BwPXVN65KHpgFk_i0CYUdbfF8,412
2
- gvm/__version__.py,sha256=eTkykV2ok3BZV3wXleBDI3IG5AwDW2f_hjwtoCetWjA,103
2
+ gvm/__version__.py,sha256=VZj5wzvpAt0792r36uKsG9me961dIWp4WNe2d3IHyF4,103
3
3
  gvm/_enum.py,sha256=n--ztwQQW2MU4M9E_4qJrw-32IGc4Laj6auZ8glMw_0,1168
4
4
  gvm/errors.py,sha256=FnZoe3ROKlAm8LMJ25uKRaG9cp-SG8hYIVtDMwwp0l0,5263
5
5
  gvm/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -27,13 +27,13 @@ gvm/protocols/gmp/_gmp224.py,sha256=NO-ufzkGW1RNzMHrIjlFm7r8QzSH0uRZK5xc9mWLRVI,
27
27
  gvm/protocols/gmp/_gmp225.py,sha256=3lz_AHTIQdBEr4DIYJ5o9D0Eke-Df3jUb0IZytITRdo,2227
28
28
  gvm/protocols/gmp/_gmp226.py,sha256=YqQ7CJIbUtM7s8wQPYX5BgePdhX-tUjCemanW0_DZtE,14543
29
29
  gvm/protocols/gmp/_gmp227.py,sha256=-q4Aci1I4FRtLle21qTwtkchE2ixWn1-Kug58X4dU5I,5713
30
- gvm/protocols/gmp/_gmpnext.py,sha256=0_oWcUC6yk58joohXWFT64RRlSODwHLClMdHwzMP2mo,57770
30
+ gvm/protocols/gmp/_gmpnext.py,sha256=wIbgFQoFa9SxftUVTPK8BUziw_1qSGaF3M51HeWgd5o,57945
31
31
  gvm/protocols/gmp/requests/__init__.py,sha256=XH1zSifyz9Rx4FqY2lJ1mwurnUepHk7REZ-fSMC_Wx0,200
32
32
  gvm/protocols/gmp/requests/_entity_id.py,sha256=V96VhTg7_CF2AduaAHRYrGgTaOVA8_mG1lFiCl8-CMA,136
33
33
  gvm/protocols/gmp/requests/_version.py,sha256=GdHQnEVzJ6PbxoU4pxP36Oze1XvK5llWqB9bkC16Pf8,393
34
34
  gvm/protocols/gmp/requests/next/__init__.py,sha256=KXolfKC-eX2DyPvSEYgLT6FSXtrkUyx5v_zAs7gFMBs,4645
35
35
  gvm/protocols/gmp/requests/next/_agent_groups.py,sha256=Dqa77vY2U82lG6wkLZfGMIUOHfZW9yCXkFvT3M8bFfo,6275
36
- gvm/protocols/gmp/requests/next/_agent_installer_instructions.py,sha256=oGKUsPGTOvKvbJr8UYpic24pKsobqOX1s1YMqigHRVE,1303
36
+ gvm/protocols/gmp/requests/next/_agent_installer_instructions.py,sha256=wh4LBJVEE3t_Og9uf5Ek_y8MxjtnTcBa2IT4u4JVXg0,1798
37
37
  gvm/protocols/gmp/requests/next/_agents.py,sha256=6LIr3xG1YHsQeQucg01nmjm3JguvObluIkn0t_KNnAU,14591
38
38
  gvm/protocols/gmp/requests/next/_credential_stores.py,sha256=wgixeHhls_Nvd7lYPE3mra_2vtWFZscm8HCwy4UgUNg,5691
39
39
  gvm/protocols/gmp/requests/next/_credentials.py,sha256=9iI2F4rp6TtQdM-OXS9IKN09SZRRLxYeBMcZs-Heo1Q,6107
@@ -113,7 +113,7 @@ gvm/protocols/http/openvasd/_notus.py,sha256=FwX5fFsx-FWXf4Rl_5seequkQ6XVS8jZ0NW
113
113
  gvm/protocols/http/openvasd/_openvasd1.py,sha256=YhV-OJULO4XJJQTsvAyH1ZVc5r1mRmGk2VMotvOoIxg,3896
114
114
  gvm/protocols/http/openvasd/_scans.py,sha256=U8aYmHudMQFtVzl9khjNsRRewY0sf8G376zTYZN6HQQ,16667
115
115
  gvm/protocols/http/openvasd/_vts.py,sha256=_T4j4SdXe0DthBA7pCehx4FXKYbQyhzpq72YNO4fKt4,2136
116
- python_gvm-27.3.0.dist-info/METADATA,sha256=bCcoaoQ_Be5dyHRddflbZaDQ1MmKxHw2kKnrS3Xjv80,5709
117
- python_gvm-27.3.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
118
- python_gvm-27.3.0.dist-info/licenses/LICENSE,sha256=WJ7YI-moTFb-uVrFjnzzhGJrnL9P2iqQe8NuED3hutI,35141
119
- python_gvm-27.3.0.dist-info/RECORD,,
116
+ python_gvm-27.4.0.dist-info/METADATA,sha256=41bGzS_8lKwjTXcrkTeUvtEIIsIn3Gfkq6h50AaZbkI,5709
117
+ python_gvm-27.4.0.dist-info/WHEEL,sha256=mffPy8wBnZQn2VnJUU5jE99KsxaSfiyMHV9Yt0aLVxs,87
118
+ python_gvm-27.4.0.dist-info/licenses/LICENSE,sha256=WJ7YI-moTFb-uVrFjnzzhGJrnL9P2iqQe8NuED3hutI,35141
119
+ python_gvm-27.4.0.dist-info/RECORD,,