Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7731,6 +7731,10 @@ components:
AwsScanOptionsAttributes:
description: Attributes for the AWS scan options.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
example: false
type: boolean
lambda:
description: Indicates if scanning of Lambda functions is enabled.
example: true
Expand All @@ -7751,6 +7755,10 @@ components:
AwsScanOptionsCreateAttributes:
description: Attributes for the AWS scan options to create.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
example: false
type: boolean
lambda:
description: Indicates if scanning of Lambda functions is enabled.
example: true
Expand All @@ -7768,6 +7776,7 @@ components:
example: true
type: boolean
required:
- compliance_host
- lambda
- sensitive_data
- vuln_containers_os
Expand Down Expand Up @@ -7833,6 +7842,10 @@ components:
AwsScanOptionsUpdateAttributes:
description: Attributes for the AWS scan options to update.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
example: false
type: boolean
lambda:
description: Indicates if scanning of Lambda functions is enabled.
example: true
Expand Down Expand Up @@ -7914,6 +7927,7 @@ components:
example:
data:
attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: 12345678-90ab-cdef-1234-567890abcdef
Expand All @@ -7927,6 +7941,7 @@ components:
example:
data:
- attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: 12345678-90ab-cdef-1234-567890abcdef
Expand Down Expand Up @@ -7958,6 +7973,9 @@ components:
AzureScanOptionsDataAttributes:
description: Attributes for Azure scan options configuration.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -8002,6 +8020,9 @@ components:
AzureScanOptionsInputUpdateDataAttributes:
description: Attributes for updating Azure scan options configuration.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -29874,6 +29895,7 @@ components:
example:
data:
attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: company-project-id
Expand All @@ -29887,6 +29909,7 @@ components:
example:
data:
- attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: company-project-id
Expand Down Expand Up @@ -29918,6 +29941,9 @@ components:
GcpScanOptionsDataAttributes:
description: Attributes for GCP scan options configuration.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -29962,6 +29988,9 @@ components:
GcpScanOptionsInputUpdateDataAttributes:
description: Attributes for updating GCP scan options configuration.
properties:
compliance_host:
description: Indicates whether host compliance scanning is enabled.
type: boolean
vuln_containers_os:
description: Indicates if scanning for vulnerabilities in containers is enabled.
type: boolean
Expand Down Expand Up @@ -85433,6 +85462,7 @@ paths:
value:
data:
attributes:
compliance_host: false
lambda: true
sensitive_data: false
vuln_containers_os: true
Expand Down Expand Up @@ -85530,6 +85560,7 @@ paths:
value:
data:
attributes:
compliance_host: false
lambda: true
sensitive_data: false
vuln_containers_os: true
Expand Down Expand Up @@ -85591,6 +85622,7 @@ paths:
value:
data:
attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: 12345678-90ab-cdef-1234-567890abcdef
Expand Down Expand Up @@ -85749,6 +85781,7 @@ paths:
value:
data:
attributes:
compliance_host: false
vuln_containers_os: true
vuln_host_os: true
id: company-project-id
Expand Down
1 change: 1 addition & 0 deletions examples/v2/agentless-scanning/CreateAwsScanOptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
id="000000000003",
type=AwsScanOptionsType.AWS_SCAN_OPTIONS,
attributes=AwsScanOptionsCreateAttributes(
compliance_host=True,
_lambda=True,
sensitive_data=False,
vuln_containers_os=True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ class AwsScanOptionsAttributes(ModelNormal):
@cached_property
def openapi_types(_):
return {
"compliance_host": (bool,),
"_lambda": (bool,),
"sensitive_data": (bool,),
"vuln_containers_os": (bool,),
"vuln_host_os": (bool,),
}

attribute_map = {
"compliance_host": "compliance_host",
"_lambda": "lambda",
"sensitive_data": "sensitive_data",
"vuln_containers_os": "vuln_containers_os",
Expand All @@ -32,6 +34,7 @@ def openapi_types(_):

def __init__(
self_,
compliance_host: Union[bool, UnsetType] = unset,
_lambda: Union[bool, UnsetType] = unset,
sensitive_data: Union[bool, UnsetType] = unset,
vuln_containers_os: Union[bool, UnsetType] = unset,
Expand All @@ -41,6 +44,9 @@ def __init__(
"""
Attributes for the AWS scan options.

:param compliance_host: Indicates whether host compliance scanning is enabled.
:type compliance_host: bool, optional

:param _lambda: Indicates if scanning of Lambda functions is enabled.
:type _lambda: bool, optional

Expand All @@ -53,6 +59,8 @@ def __init__(
:param vuln_host_os: Indicates if scanning for vulnerabilities in hosts is enabled.
:type vuln_host_os: bool, optional
"""
if compliance_host is not unset:
kwargs["compliance_host"] = compliance_host
if _lambda is not unset:
kwargs["_lambda"] = _lambda
if sensitive_data is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,36 @@ class AwsScanOptionsCreateAttributes(ModelNormal):
@cached_property
def openapi_types(_):
return {
"compliance_host": (bool,),
"_lambda": (bool,),
"sensitive_data": (bool,),
"vuln_containers_os": (bool,),
"vuln_host_os": (bool,),
}

attribute_map = {
"compliance_host": "compliance_host",
"_lambda": "lambda",
"sensitive_data": "sensitive_data",
"vuln_containers_os": "vuln_containers_os",
"vuln_host_os": "vuln_host_os",
}

def __init__(self_, _lambda: bool, sensitive_data: bool, vuln_containers_os: bool, vuln_host_os: bool, **kwargs):
def __init__(
self_,
compliance_host: bool,
_lambda: bool,
sensitive_data: bool,
vuln_containers_os: bool,
vuln_host_os: bool,
**kwargs,
):
"""
Attributes for the AWS scan options to create.

:param compliance_host: Indicates whether host compliance scanning is enabled.
:type compliance_host: bool

:param _lambda: Indicates if scanning of Lambda functions is enabled.
:type _lambda: bool

Expand All @@ -45,6 +58,7 @@ def __init__(self_, _lambda: bool, sensitive_data: bool, vuln_containers_os: boo
"""
super().__init__(kwargs)

self_.compliance_host = compliance_host
self_._lambda = _lambda
self_.sensitive_data = sensitive_data
self_.vuln_containers_os = vuln_containers_os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@ class AwsScanOptionsUpdateAttributes(ModelNormal):
@cached_property
def openapi_types(_):
return {
"compliance_host": (bool,),
"_lambda": (bool,),
"sensitive_data": (bool,),
"vuln_containers_os": (bool,),
"vuln_host_os": (bool,),
}

attribute_map = {
"compliance_host": "compliance_host",
"_lambda": "lambda",
"sensitive_data": "sensitive_data",
"vuln_containers_os": "vuln_containers_os",
Expand All @@ -32,6 +34,7 @@ def openapi_types(_):

def __init__(
self_,
compliance_host: Union[bool, UnsetType] = unset,
_lambda: Union[bool, UnsetType] = unset,
sensitive_data: Union[bool, UnsetType] = unset,
vuln_containers_os: Union[bool, UnsetType] = unset,
Expand All @@ -41,6 +44,9 @@ def __init__(
"""
Attributes for the AWS scan options to update.

:param compliance_host: Indicates whether host compliance scanning is enabled.
:type compliance_host: bool, optional

:param _lambda: Indicates if scanning of Lambda functions is enabled.
:type _lambda: bool, optional

Expand All @@ -53,6 +59,8 @@ def __init__(
:param vuln_host_os: Indicates if scanning for vulnerabilities in hosts is enabled.
:type vuln_host_os: bool, optional
"""
if compliance_host is not unset:
kwargs["compliance_host"] = compliance_host
if _lambda is not unset:
kwargs["_lambda"] = _lambda
if sensitive_data is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,38 @@ class AzureScanOptionsDataAttributes(ModelNormal):
@cached_property
def openapi_types(_):
return {
"compliance_host": (bool,),
"vuln_containers_os": (bool,),
"vuln_host_os": (bool,),
}

attribute_map = {
"compliance_host": "compliance_host",
"vuln_containers_os": "vuln_containers_os",
"vuln_host_os": "vuln_host_os",
}

def __init__(
self_,
compliance_host: Union[bool, UnsetType] = unset,
vuln_containers_os: Union[bool, UnsetType] = unset,
vuln_host_os: Union[bool, UnsetType] = unset,
**kwargs,
):
"""
Attributes for Azure scan options configuration.

:param compliance_host: Indicates whether host compliance scanning is enabled.
:type compliance_host: bool, optional

:param vuln_containers_os: Indicates if scanning for vulnerabilities in containers is enabled.
:type vuln_containers_os: bool, optional

:param vuln_host_os: Indicates if scanning for vulnerabilities in hosts is enabled.
:type vuln_host_os: bool, optional
"""
if compliance_host is not unset:
kwargs["compliance_host"] = compliance_host
if vuln_containers_os is not unset:
kwargs["vuln_containers_os"] = vuln_containers_os
if vuln_host_os is not unset:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,38 @@ class AzureScanOptionsInputUpdateDataAttributes(ModelNormal):
@cached_property
def openapi_types(_):
return {
"compliance_host": (bool,),
"vuln_containers_os": (bool,),
"vuln_host_os": (bool,),
}

attribute_map = {
"compliance_host": "compliance_host",
"vuln_containers_os": "vuln_containers_os",
"vuln_host_os": "vuln_host_os",
}

def __init__(
self_,
compliance_host: Union[bool, UnsetType] = unset,
vuln_containers_os: Union[bool, UnsetType] = unset,
vuln_host_os: Union[bool, UnsetType] = unset,
**kwargs,
):
"""
Attributes for updating Azure scan options configuration.

:param compliance_host: Indicates whether host compliance scanning is enabled.
:type compliance_host: bool, optional

:param vuln_containers_os: Indicates if scanning for vulnerabilities in containers is enabled.
:type vuln_containers_os: bool, optional

:param vuln_host_os: Indicates if scanning for vulnerabilities in hosts is enabled.
:type vuln_host_os: bool, optional
"""
if compliance_host is not unset:
kwargs["compliance_host"] = compliance_host
if vuln_containers_os is not unset:
kwargs["vuln_containers_os"] = vuln_containers_os
if vuln_host_os is not unset:
Expand Down
Loading
Loading