Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable automerging for opsgenie routes. #2107

Merged
Merged
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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-14 20:56:46.442629",
"spec_repo_commit": "dcc3176b"
"regenerated": "2024-08-14 22:02:36.053386",
"spec_repo_commit": "5e33062a"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-08-14 20:56:46.460123",
"spec_repo_commit": "dcc3176b"
"regenerated": "2024-08-14 22:02:36.070633",
"spec_repo_commit": "5e33062a"
}
}
}
14 changes: 14 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14304,10 +14304,12 @@ components:
custom_url:
description: The custom URL for a custom region.
example: https://example.com
format: url
type: string
name:
description: The name for the Opsgenie service.
example: fake-opsgenie-service-name
maxLength: 100
type: string
opsgenie_api_key:
description: The Opsgenie API key for your Opsgenie service.
Expand Down Expand Up @@ -14365,12 +14367,18 @@ components:
custom_url:
description: The custom URL for a custom region.
example: null
format: url
nullable: true
type: string
name:
description: The name for the Opsgenie service.
example: fake-opsgenie-service-name
maxLength: 100
type: string
opsgenie_api_key:
description: The OpsgenieServiceResponseAttributes opsgenie_api_key.
type: string
writeOnly: true
region:
$ref: '#/components/schemas/OpsgenieServiceRegionType'
type: object
Expand All @@ -14382,6 +14390,8 @@ components:
id:
description: The ID of the Opsgenie service.
example: 596da4af-0563-4097-90ff-07230c3f9db3
maxLength: 100
minLength: 1
type: string
type:
$ref: '#/components/schemas/OpsgenieServiceType'
Expand All @@ -14405,11 +14415,13 @@ components:
custom_url:
description: The custom URL for a custom region.
example: https://example.com
format: url
nullable: true
type: string
name:
description: The name for the Opsgenie service.
example: fake-opsgenie-service-name
maxLength: 100
type: string
opsgenie_api_key:
description: The Opsgenie API key for your Opsgenie service.
Expand All @@ -14426,6 +14438,8 @@ components:
id:
description: The ID of the Opsgenie service.
example: 596da4af-0563-4097-90ff-07230c3f9db3
maxLength: 100
minLength: 1
type: string
type:
$ref: '#/components/schemas/OpsgenieServiceType'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@


class OpsgenieServiceCreateAttributes(ModelNormal):
validations = {
"name": {
"max_length": 100,
},
}

@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.opsgenie_service_region_type import OpsgenieServiceRegionType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,35 @@


class OpsgenieServiceResponseAttributes(ModelNormal):
validations = {
"name": {
"max_length": 100,
},
}

@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.opsgenie_service_region_type import OpsgenieServiceRegionType

return {
"custom_url": (str, none_type),
"name": (str,),
"opsgenie_api_key": (str,),
"region": (OpsgenieServiceRegionType,),
}

attribute_map = {
"custom_url": "custom_url",
"name": "name",
"opsgenie_api_key": "opsgenie_api_key",
"region": "region",
}

def __init__(
self_,
custom_url: Union[str, none_type, UnsetType] = unset,
name: Union[str, UnsetType] = unset,
opsgenie_api_key: Union[str, UnsetType] = unset,
region: Union[OpsgenieServiceRegionType, UnsetType] = unset,
**kwargs,
):
Expand All @@ -51,13 +60,18 @@ def __init__(
:param name: The name for the Opsgenie service.
:type name: str, optional

:param opsgenie_api_key: The OpsgenieServiceResponseAttributes opsgenie_api_key.
:type opsgenie_api_key: str, optional

:param region: The region for the Opsgenie service.
:type region: OpsgenieServiceRegionType, optional
"""
if custom_url is not unset:
kwargs["custom_url"] = custom_url
if name is not unset:
kwargs["name"] = name
if opsgenie_api_key is not unset:
kwargs["opsgenie_api_key"] = opsgenie_api_key
if region is not unset:
kwargs["region"] = region
super().__init__(kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@


class OpsgenieServiceResponseData(ModelNormal):
validations = {
"id": {
"max_length": 100,
"min_length": 1,
},
}

@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.opsgenie_service_response_attributes import OpsgenieServiceResponseAttributes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@


class OpsgenieServiceUpdateAttributes(ModelNormal):
validations = {
"name": {
"max_length": 100,
},
}

@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.opsgenie_service_region_type import OpsgenieServiceRegionType
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@


class OpsgenieServiceUpdateData(ModelNormal):
validations = {
"id": {
"max_length": 100,
"min_length": 1,
},
}

@cached_property
def openapi_types(_):
from datadog_api_client.v2.model.opsgenie_service_update_attributes import OpsgenieServiceUpdateAttributes
Expand Down
Loading