diff --git a/CHANGELOG.md b/CHANGELOG.md index d2618288..440fe0a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ CHANGELOG ========= ## HEAD (Unreleased) -* Upgrade to pulumi-terraform-bridge v2.7.0 +* Upgrade to pulumi-terraform-bridge v2.7.3 * Upgrade to Pulumi v2.9.0, which adds type annotations and input/output classes to Python --- diff --git a/provider/go.mod b/provider/go.mod index 174bfa1e..7ee9a3c8 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -6,7 +6,7 @@ replace github.com/Azure/go-autorest => github.com/Azure/go-autorest v12.4.3+inc require ( github.com/hashicorp/terraform-plugin-sdk v1.9.1 - github.com/pulumi/pulumi-terraform-bridge/v2 v2.7.2 - github.com/pulumi/pulumi/sdk/v2 v2.9.1-0.20200821035132-629254334213 + github.com/pulumi/pulumi-terraform-bridge/v2 v2.7.3 + github.com/pulumi/pulumi/sdk/v2 v2.9.1-0.20200825190708-910aa96016cd github.com/terraform-providers/terraform-provider-pagerduty v1.7.1 ) diff --git a/provider/go.sum b/provider/go.sum index 339fb983..cb3f06e4 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -497,6 +497,8 @@ github.com/pulumi/pulumi-terraform-bridge/v2 v2.5.2 h1:2fZdQQ1uO1D7J1O8D5ytsaPwz github.com/pulumi/pulumi-terraform-bridge/v2 v2.5.2/go.mod h1:lxWrXLYAMbse0AJeY570Iy2KYI3uUwNg6JOUZ6U7M+Q= github.com/pulumi/pulumi-terraform-bridge/v2 v2.7.2 h1:ZgBUEz1zPN1p8el+YDXoRlOPSPcBz8ytfZH6Ncj/PN4= github.com/pulumi/pulumi-terraform-bridge/v2 v2.7.2/go.mod h1:UvbLRW8+YFluKwRZjzP3coPYWQPPYh/q9e2NN2GPbxg= +github.com/pulumi/pulumi-terraform-bridge/v2 v2.7.3 h1:XZxl0fsf9vO45FM+tKPYE9f30fM+q2s6lHsEzkdnBNs= +github.com/pulumi/pulumi-terraform-bridge/v2 v2.7.3/go.mod h1:TW+CNCZHzlH42y0vmRA9gOzeTFh3Cp7MN9DoGcRDLvo= github.com/pulumi/pulumi/pkg/v2 v2.0.0 h1:5rBPG2Wnoqgbt4Fz1MbahtE4gLxaPdwI9sr1zaV6lUs= github.com/pulumi/pulumi/pkg/v2 v2.0.0/go.mod h1:kNG9MBTdKP9AzMgkETumR3fmX9gUYB+HpQL767K6jXc= github.com/pulumi/pulumi/pkg/v2 v2.2.2-0.20200519081838-f66100ce28b0/go.mod h1:GV88eCIrqfFcBWd5QUdN3qMsR0h+x+iRIBnBhhvB78A= @@ -507,6 +509,8 @@ github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200630091945-bb358c4d2173 h1:7nc8B91a github.com/pulumi/pulumi/pkg/v2 v2.5.1-0.20200630091945-bb358c4d2173/go.mod h1:zfUm4/GH2dVRlHZ3Yeb9bRweCQM7icVBdplu6MUDRrQ= github.com/pulumi/pulumi/pkg/v2 v2.9.1-0.20200821035132-629254334213 h1:c8UQ842Zg6XzX4sPeGhBo8hiGFzoU23vaMmxk64V8eU= github.com/pulumi/pulumi/pkg/v2 v2.9.1-0.20200821035132-629254334213/go.mod h1:Yq1q3nwy/KeU08DyyX0QsMyc6SqPs0jGJb8ev5f45AU= +github.com/pulumi/pulumi/pkg/v2 v2.9.1-0.20200825190708-910aa96016cd h1:e4nK2jqLm6g7qMW0BInHR3ZM55y1NblvgOlkfNGT2F4= +github.com/pulumi/pulumi/pkg/v2 v2.9.1-0.20200825190708-910aa96016cd/go.mod h1:Yq1q3nwy/KeU08DyyX0QsMyc6SqPs0jGJb8ev5f45AU= github.com/pulumi/pulumi/sdk/v2 v2.0.0 h1:3VMXbEo3bqeaU+YDt8ufVBLD0WhLYE3tG3t/nIZ3Iac= github.com/pulumi/pulumi/sdk/v2 v2.0.0/go.mod h1:W7k1UDYerc5o97mHnlHHp5iQZKEby+oQrQefWt+2RF4= github.com/pulumi/pulumi/sdk/v2 v2.2.2-0.20200519081838-f66100ce28b0/go.mod h1:QNbWpL4gvf3X0lUFT7TXA2Jo1ff/Ti2l97AyFGYwvW4= @@ -518,6 +522,8 @@ github.com/pulumi/pulumi/sdk/v2 v2.5.1-0.20200630091945-bb358c4d2173 h1:tKAYUvIW github.com/pulumi/pulumi/sdk/v2 v2.5.1-0.20200630091945-bb358c4d2173/go.mod h1:llk6tmXss8kJrt3vEXAkwiwgZOuINEFmKIfMveVIwO8= github.com/pulumi/pulumi/sdk/v2 v2.9.1-0.20200821035132-629254334213 h1:h4hBtS6/S0a1deLtJuUuYAIZGOCIJY9OVSdmC4VRk+M= github.com/pulumi/pulumi/sdk/v2 v2.9.1-0.20200821035132-629254334213/go.mod h1:x84WPiFiuE+G4kJ5jUYkOxmnQJlWoJaHNeEYdqnCKA4= +github.com/pulumi/pulumi/sdk/v2 v2.9.1-0.20200825190708-910aa96016cd h1:m5jEWpbr/Q94vCqA/7fw5US7cHZLeQiMQXrnSblZzdU= +github.com/pulumi/pulumi/sdk/v2 v2.9.1-0.20200825190708-910aa96016cd/go.mod h1:x84WPiFiuE+G4kJ5jUYkOxmnQJlWoJaHNeEYdqnCKA4= github.com/pulumi/tf2pulumi v0.8.1-0.20200519092335-cb56a4dfa88d h1:1JtzB9Gx0YX2UgKKkqJwTgBXxfg2cbLUEqTJKwKBK7s= github.com/pulumi/tf2pulumi v0.8.1-0.20200519092335-cb56a4dfa88d/go.mod h1:yv9XozKsue9ZELHQbrBGgIaFtE3OX3Q4m7koTzTqgpE= github.com/pulumi/tf2pulumi v0.8.1-0.20200528170746-c1234defe2b5 h1:h+pUwgEser1Ole6TMCc66njRPcw7SEVXpeoClG+ihEM= diff --git a/sdk/python/pulumi_pagerduty/addon.py b/sdk/python/pulumi_pagerduty/addon.py index 48ad282e..a7bf0ba2 100644 --- a/sdk/python/pulumi_pagerduty/addon.py +++ b/sdk/python/pulumi_pagerduty/addon.py @@ -13,7 +13,7 @@ class Addon(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, name: Optional[pulumi.Input[str]] = None, src: Optional[pulumi.Input[str]] = None, @@ -90,7 +90,7 @@ def get(resource_name: str, @property @pulumi.getter - def name(self) -> str: + def name(self) -> pulumi.Output[str]: """ The name of the add-on. """ @@ -98,7 +98,7 @@ def name(self) -> str: @property @pulumi.getter - def src(self) -> str: + def src(self) -> pulumi.Output[str]: """ The source URL to display in a frame in the PagerDuty UI. `HTTPS` is required. """ diff --git a/sdk/python/pulumi_pagerduty/business_service.py b/sdk/python/pulumi_pagerduty/business_service.py index 98d3fe98..0d5f0c09 100644 --- a/sdk/python/pulumi_pagerduty/business_service.py +++ b/sdk/python/pulumi_pagerduty/business_service.py @@ -13,7 +13,7 @@ class BusinessService(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, @@ -109,17 +109,17 @@ def get(resource_name: str, @property @pulumi.getter - def description(self) -> Optional[str]: + def description(self) -> pulumi.Output[Optional[str]]: return pulumi.get(self, "description") @property @pulumi.getter(name="htmlUrl") - def html_url(self) -> str: + def html_url(self) -> pulumi.Output[str]: return pulumi.get(self, "html_url") @property @pulumi.getter - def name(self) -> str: + def name(self) -> pulumi.Output[str]: """ The name of the business service. """ @@ -127,7 +127,7 @@ def name(self) -> str: @property @pulumi.getter(name="pointOfContact") - def point_of_contact(self) -> Optional[str]: + def point_of_contact(self) -> pulumi.Output[Optional[str]]: """ The owner of the business service. """ @@ -135,17 +135,17 @@ def point_of_contact(self) -> Optional[str]: @property @pulumi.getter - def self(self) -> str: + def self(self) -> pulumi.Output[str]: return pulumi.get(self, "self") @property @pulumi.getter - def summary(self) -> str: + def summary(self) -> pulumi.Output[str]: return pulumi.get(self, "summary") @property @pulumi.getter - def type(self) -> Optional[str]: + def type(self) -> pulumi.Output[Optional[str]]: """ Default value is `business_service`. Can also be set as `business_service_reference`. """ diff --git a/sdk/python/pulumi_pagerduty/escalation_policy.py b/sdk/python/pulumi_pagerduty/escalation_policy.py index ef8fae2d..11f850ea 100644 --- a/sdk/python/pulumi_pagerduty/escalation_policy.py +++ b/sdk/python/pulumi_pagerduty/escalation_policy.py @@ -15,7 +15,7 @@ class EscalationPolicy(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, @@ -121,12 +121,12 @@ def get(resource_name: str, @property @pulumi.getter - def description(self) -> Optional[str]: + def description(self) -> pulumi.Output[Optional[str]]: return pulumi.get(self, "description") @property @pulumi.getter - def name(self) -> str: + def name(self) -> pulumi.Output[str]: """ The name of the escalation policy. """ @@ -134,7 +134,7 @@ def name(self) -> str: @property @pulumi.getter(name="numLoops") - def num_loops(self) -> Optional[float]: + def num_loops(self) -> pulumi.Output[Optional[float]]: """ The number of times the escalation policy will repeat after reaching the end of its escalation. """ @@ -142,7 +142,7 @@ def num_loops(self) -> Optional[float]: @property @pulumi.getter - def rules(self) -> List['outputs.EscalationPolicyRule']: + def rules(self) -> pulumi.Output[List['outputs.EscalationPolicyRule']]: """ An Escalation rule block. Escalation rules documented below. """ @@ -150,7 +150,7 @@ def rules(self) -> List['outputs.EscalationPolicyRule']: @property @pulumi.getter - def teams(self) -> Optional[List[str]]: + def teams(self) -> pulumi.Output[Optional[List[str]]]: """ Teams associated with the policy. Account must have the `teams` ability to use this parameter. """ diff --git a/sdk/python/pulumi_pagerduty/event_rule.py b/sdk/python/pulumi_pagerduty/event_rule.py index d3742743..55b8c351 100644 --- a/sdk/python/pulumi_pagerduty/event_rule.py +++ b/sdk/python/pulumi_pagerduty/event_rule.py @@ -13,7 +13,7 @@ class EventRule(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, action_json: Optional[pulumi.Input[str]] = None, advanced_condition_json: Optional[pulumi.Input[str]] = None, @@ -202,7 +202,7 @@ def get(resource_name: str, @property @pulumi.getter(name="actionJson") - def action_json(self) -> str: + def action_json(self) -> pulumi.Output[str]: """ A list of one or more actions for each rule. Each action within the list is itself a list. """ @@ -210,7 +210,7 @@ def action_json(self) -> str: @property @pulumi.getter(name="advancedConditionJson") - def advanced_condition_json(self) -> Optional[str]: + def advanced_condition_json(self) -> pulumi.Output[Optional[str]]: """ Contains a list of specific conditions including `active-between`,`scheduled-weekly`, and `frequency-over`. The first element in the list is the label for the condition, followed by a list of values for the specific condition. For more details on these conditions see [Advanced Condition](https://v2.developer.pagerduty.com/docs/global-event-rules-api#section-advanced-condition) in the PagerDuty API documentation. """ @@ -218,7 +218,7 @@ def advanced_condition_json(self) -> Optional[str]: @property @pulumi.getter(name="catchAll") - def catch_all(self) -> bool: + def catch_all(self) -> pulumi.Output[bool]: """ A boolean that indicates whether the rule is a catch all for the account. This field is read-only through the PagerDuty API. """ @@ -226,7 +226,7 @@ def catch_all(self) -> bool: @property @pulumi.getter(name="conditionJson") - def condition_json(self) -> str: + def condition_json(self) -> pulumi.Output[str]: """ Contains a list of conditions. The first field in the list is `and` or `or`, followed by a list of operators and values. """ diff --git a/sdk/python/pulumi_pagerduty/extension.py b/sdk/python/pulumi_pagerduty/extension.py index 8ddfd8b8..07e62c48 100644 --- a/sdk/python/pulumi_pagerduty/extension.py +++ b/sdk/python/pulumi_pagerduty/extension.py @@ -13,7 +13,7 @@ class Extension(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, config: Optional[pulumi.Input[str]] = None, endpoint_url: Optional[pulumi.Input[str]] = None, @@ -151,7 +151,7 @@ def get(resource_name: str, @property @pulumi.getter - def config(self) -> Optional[str]: + def config(self) -> pulumi.Output[Optional[str]]: """ The configuration of the service extension as string containing plain JSON-encoded data. """ @@ -159,7 +159,7 @@ def config(self) -> Optional[str]: @property @pulumi.getter(name="endpointUrl") - def endpoint_url(self) -> Optional[str]: + def endpoint_url(self) -> pulumi.Output[Optional[str]]: """ The url of the extension. **Note:** The [endpoint URL is Optional API wise](https://api-reference.pagerduty.com/#!/Extensions/post_extensions) in most cases. But in some cases it is a _Required_ parameter. For example, `getExtensionSchema` named `Generic V2 Webhook` doesn't accept `Extension` with no `endpoint_url`, but one with named `Slack` accepts. @@ -168,7 +168,7 @@ def endpoint_url(self) -> Optional[str]: @property @pulumi.getter(name="extensionObjects") - def extension_objects(self) -> List[str]: + def extension_objects(self) -> pulumi.Output[List[str]]: """ This is the objects for which the extension applies (An array of service ids). """ @@ -176,7 +176,7 @@ def extension_objects(self) -> List[str]: @property @pulumi.getter(name="extensionSchema") - def extension_schema(self) -> str: + def extension_schema(self) -> pulumi.Output[str]: """ This is the schema for this extension. """ @@ -184,7 +184,7 @@ def extension_schema(self) -> str: @property @pulumi.getter(name="htmlUrl") - def html_url(self) -> str: + def html_url(self) -> pulumi.Output[str]: """ URL at which the entity is uniquely displayed in the Web app """ @@ -192,7 +192,7 @@ def html_url(self) -> str: @property @pulumi.getter - def name(self) -> str: + def name(self) -> pulumi.Output[str]: """ The name of the service extension. """ @@ -200,7 +200,7 @@ def name(self) -> str: @property @pulumi.getter - def type(self) -> str: + def type(self) -> pulumi.Output[str]: return pulumi.get(self, "type") def translate_output_property(self, prop): diff --git a/sdk/python/pulumi_pagerduty/maintenance_window.py b/sdk/python/pulumi_pagerduty/maintenance_window.py index 9ae83f8e..8b9f0098 100644 --- a/sdk/python/pulumi_pagerduty/maintenance_window.py +++ b/sdk/python/pulumi_pagerduty/maintenance_window.py @@ -13,7 +13,7 @@ class MaintenanceWindow(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, end_time: Optional[pulumi.Input[str]] = None, @@ -111,7 +111,7 @@ def get(resource_name: str, @property @pulumi.getter - def description(self) -> Optional[str]: + def description(self) -> pulumi.Output[Optional[str]]: """ A description for the maintenance window. """ @@ -119,7 +119,7 @@ def description(self) -> Optional[str]: @property @pulumi.getter(name="endTime") - def end_time(self) -> str: + def end_time(self) -> pulumi.Output[str]: """ The maintenance window's end time. This is when the services will start creating incidents again. This date must be in the future and after the `start_time`. """ @@ -127,7 +127,7 @@ def end_time(self) -> str: @property @pulumi.getter - def services(self) -> List[str]: + def services(self) -> pulumi.Output[List[str]]: """ A list of service IDs to include in the maintenance window. """ @@ -135,7 +135,7 @@ def services(self) -> List[str]: @property @pulumi.getter(name="startTime") - def start_time(self) -> str: + def start_time(self) -> pulumi.Output[str]: """ The maintenance window's start time. This is when the services will stop creating incidents. If this date is in the past, it will be updated to be the current time. """ diff --git a/sdk/python/pulumi_pagerduty/provider.py b/sdk/python/pulumi_pagerduty/provider.py index 4e161965..d8bd1267 100644 --- a/sdk/python/pulumi_pagerduty/provider.py +++ b/sdk/python/pulumi_pagerduty/provider.py @@ -14,7 +14,7 @@ class Provider(pulumi.ProviderResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, skip_credentials_validation: Optional[pulumi.Input[bool]] = None, token: Optional[pulumi.Input[str]] = None, diff --git a/sdk/python/pulumi_pagerduty/ruleset.py b/sdk/python/pulumi_pagerduty/ruleset.py index 65d85034..52017233 100644 --- a/sdk/python/pulumi_pagerduty/ruleset.py +++ b/sdk/python/pulumi_pagerduty/ruleset.py @@ -15,7 +15,7 @@ class Ruleset(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, name: Optional[pulumi.Input[str]] = None, team: Optional[pulumi.Input[pulumi.InputType['RulesetTeamArgs']]] = None, @@ -101,7 +101,7 @@ def get(resource_name: str, @property @pulumi.getter - def name(self) -> str: + def name(self) -> pulumi.Output[str]: """ Name of the ruleset. """ @@ -109,7 +109,7 @@ def name(self) -> str: @property @pulumi.getter(name="routingKeys") - def routing_keys(self) -> List[str]: + def routing_keys(self) -> pulumi.Output[List[str]]: """ Routing keys routed to this ruleset. """ @@ -117,7 +117,7 @@ def routing_keys(self) -> List[str]: @property @pulumi.getter - def team(self) -> Optional['outputs.RulesetTeam']: + def team(self) -> pulumi.Output[Optional['outputs.RulesetTeam']]: """ Reference to the team that owns the ruleset. If none is specified, only admins have access. """ @@ -125,7 +125,7 @@ def team(self) -> Optional['outputs.RulesetTeam']: @property @pulumi.getter - def type(self) -> str: + def type(self) -> pulumi.Output[str]: """ Type of ruleset. Currently only sets to `global`. """ diff --git a/sdk/python/pulumi_pagerduty/ruleset_rule.py b/sdk/python/pulumi_pagerduty/ruleset_rule.py index b1cca335..e6a0cf0c 100644 --- a/sdk/python/pulumi_pagerduty/ruleset_rule.py +++ b/sdk/python/pulumi_pagerduty/ruleset_rule.py @@ -15,7 +15,7 @@ class RulesetRule(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, actions: Optional[pulumi.Input[pulumi.InputType['RulesetRuleActionsArgs']]] = None, conditions: Optional[pulumi.Input[pulumi.InputType['RulesetRuleConditionsArgs']]] = None, @@ -169,7 +169,7 @@ def get(resource_name: str, @property @pulumi.getter - def actions(self) -> Optional['outputs.RulesetRuleActions']: + def actions(self) -> pulumi.Output[Optional['outputs.RulesetRuleActions']]: """ Actions to apply to an event if the conditions match. """ @@ -177,7 +177,7 @@ def actions(self) -> Optional['outputs.RulesetRuleActions']: @property @pulumi.getter - def conditions(self) -> Optional['outputs.RulesetRuleConditions']: + def conditions(self) -> pulumi.Output[Optional['outputs.RulesetRuleConditions']]: """ Conditions evaluated to check if an event matches this event rule. Is always empty for the catch all rule, though. """ @@ -185,7 +185,7 @@ def conditions(self) -> Optional['outputs.RulesetRuleConditions']: @property @pulumi.getter - def disabled(self) -> Optional[bool]: + def disabled(self) -> pulumi.Output[Optional[bool]]: """ Indicates whether the rule is disabled and would therefore not be evaluated. """ @@ -193,7 +193,7 @@ def disabled(self) -> Optional[bool]: @property @pulumi.getter - def position(self) -> Optional[float]: + def position(self) -> pulumi.Output[Optional[float]]: """ Position/index of the rule within the ruleset. """ @@ -201,7 +201,7 @@ def position(self) -> Optional[float]: @property @pulumi.getter - def ruleset(self) -> str: + def ruleset(self) -> pulumi.Output[str]: """ The ID of the ruleset that the rule belongs to. """ @@ -209,7 +209,7 @@ def ruleset(self) -> str: @property @pulumi.getter(name="timeFrame") - def time_frame(self) -> Optional['outputs.RulesetRuleTimeFrame']: + def time_frame(self) -> pulumi.Output[Optional['outputs.RulesetRuleTimeFrame']]: """ Settings for [scheduling the rule](https://support.pagerduty.com/docs/rulesets#section-scheduled-event-rules). """ diff --git a/sdk/python/pulumi_pagerduty/schedule.py b/sdk/python/pulumi_pagerduty/schedule.py index e730308e..a2299490 100644 --- a/sdk/python/pulumi_pagerduty/schedule.py +++ b/sdk/python/pulumi_pagerduty/schedule.py @@ -15,7 +15,7 @@ class Schedule(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, layers: Optional[pulumi.Input[List[pulumi.Input[pulumi.InputType['ScheduleLayerArgs']]]]] = None, @@ -132,7 +132,7 @@ def get(resource_name: str, @property @pulumi.getter - def description(self) -> Optional[str]: + def description(self) -> pulumi.Output[Optional[str]]: """ The description of the schedule """ @@ -140,7 +140,7 @@ def description(self) -> Optional[str]: @property @pulumi.getter - def layers(self) -> List['outputs.ScheduleLayer']: + def layers(self) -> pulumi.Output[List['outputs.ScheduleLayer']]: """ A schedule layer block. Schedule layers documented below. """ @@ -148,7 +148,7 @@ def layers(self) -> List['outputs.ScheduleLayer']: @property @pulumi.getter - def name(self) -> str: + def name(self) -> pulumi.Output[str]: """ The name of the schedule. """ @@ -156,7 +156,7 @@ def name(self) -> str: @property @pulumi.getter - def overflow(self) -> Optional[bool]: + def overflow(self) -> pulumi.Output[Optional[bool]]: """ Any on-call schedule entries that pass the date range bounds will be truncated at the bounds, unless the parameter `overflow` is passed. For instance, if your schedule is a rotation that changes daily at midnight UTC, and your date range is from `2011-06-01T10:00:00Z` to `2011-06-01T14:00:00Z`: If you don't pass the overflow=true parameter, you will get one schedule entry returned with a start of `2011-06-01T10:00:00Z` and end of `2011-06-01T14:00:00Z`. @@ -166,7 +166,7 @@ def overflow(self) -> Optional[bool]: @property @pulumi.getter(name="timeZone") - def time_zone(self) -> str: + def time_zone(self) -> pulumi.Output[str]: """ The time zone of the schedule (e.g Europe/Berlin). """ diff --git a/sdk/python/pulumi_pagerduty/service.py b/sdk/python/pulumi_pagerduty/service.py index dcbe247b..9501aae6 100644 --- a/sdk/python/pulumi_pagerduty/service.py +++ b/sdk/python/pulumi_pagerduty/service.py @@ -15,7 +15,7 @@ class Service(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, acknowledgement_timeout: Optional[pulumi.Input[str]] = None, alert_creation: Optional[pulumi.Input[str]] = None, @@ -166,7 +166,7 @@ def get(resource_name: str, @property @pulumi.getter(name="acknowledgementTimeout") - def acknowledgement_timeout(self) -> Optional[str]: + def acknowledgement_timeout(self) -> pulumi.Output[Optional[str]]: """ Time in seconds that an incident changes to the Triggered State after being Acknowledged. Disabled if set to the `"null"` string. """ @@ -174,7 +174,7 @@ def acknowledgement_timeout(self) -> Optional[str]: @property @pulumi.getter(name="alertCreation") - def alert_creation(self) -> Optional[str]: + def alert_creation(self) -> pulumi.Output[Optional[str]]: """ Must be one of two values. PagerDuty receives events from your monitoring systems and can then create incidents in different ways. Value "create_incidents" is default: events will create an incident that cannot be merged. Value "create_alerts_and_incidents" is the alternative: events will create an alert and then add it to a new incident, these incidents can be merged. """ @@ -182,7 +182,7 @@ def alert_creation(self) -> Optional[str]: @property @pulumi.getter(name="alertGrouping") - def alert_grouping(self) -> Optional[str]: + def alert_grouping(self) -> pulumi.Output[Optional[str]]: """ Defines how alerts on this service will be automatically grouped into incidents. Note that the alert grouping features are available only on certain plans. If not set, each alert will create a separate incident; If value is set to `time`: All alerts within a specified duration will be grouped into the same incident. This duration is set in the `alert_grouping_timeout` setting (described below). Available on Standard, Enterprise, and Event Intelligence plans; If value is set to `intelligent` - Alerts will be intelligently grouped based on a machine learning model that looks at the alert summary, timing, and the history of grouped alerts. Available on Enterprise and Event Intelligence plan. """ @@ -190,7 +190,7 @@ def alert_grouping(self) -> Optional[str]: @property @pulumi.getter(name="alertGroupingTimeout") - def alert_grouping_timeout(self) -> Optional[float]: + def alert_grouping_timeout(self) -> pulumi.Output[Optional[float]]: """ The duration in minutes within which to automatically group incoming alerts. This setting applies only when `alert_grouping` is set to `time`. To continue grouping alerts until the incident is resolved, set this value to `0`. """ @@ -198,7 +198,7 @@ def alert_grouping_timeout(self) -> Optional[float]: @property @pulumi.getter(name="autoResolveTimeout") - def auto_resolve_timeout(self) -> Optional[str]: + def auto_resolve_timeout(self) -> pulumi.Output[Optional[str]]: """ Time in seconds that an incident is automatically resolved if left open for that long. Disabled if set to the `"null"` string. """ @@ -206,17 +206,17 @@ def auto_resolve_timeout(self) -> Optional[str]: @property @pulumi.getter(name="createdAt") - def created_at(self) -> str: + def created_at(self) -> pulumi.Output[str]: return pulumi.get(self, "created_at") @property @pulumi.getter - def description(self) -> Optional[str]: + def description(self) -> pulumi.Output[Optional[str]]: return pulumi.get(self, "description") @property @pulumi.getter(name="escalationPolicy") - def escalation_policy(self) -> str: + def escalation_policy(self) -> pulumi.Output[str]: """ The escalation policy used by this service. """ @@ -224,22 +224,22 @@ def escalation_policy(self) -> str: @property @pulumi.getter(name="htmlUrl") - def html_url(self) -> str: + def html_url(self) -> pulumi.Output[str]: return pulumi.get(self, "html_url") @property @pulumi.getter(name="incidentUrgencyRule") - def incident_urgency_rule(self) -> 'outputs.ServiceIncidentUrgencyRule': + def incident_urgency_rule(self) -> pulumi.Output['outputs.ServiceIncidentUrgencyRule']: return pulumi.get(self, "incident_urgency_rule") @property @pulumi.getter(name="lastIncidentTimestamp") - def last_incident_timestamp(self) -> str: + def last_incident_timestamp(self) -> pulumi.Output[str]: return pulumi.get(self, "last_incident_timestamp") @property @pulumi.getter - def name(self) -> str: + def name(self) -> pulumi.Output[str]: """ The name of the service. """ @@ -247,17 +247,17 @@ def name(self) -> str: @property @pulumi.getter(name="scheduledActions") - def scheduled_actions(self) -> Optional[List['outputs.ServiceScheduledAction']]: + def scheduled_actions(self) -> pulumi.Output[Optional[List['outputs.ServiceScheduledAction']]]: return pulumi.get(self, "scheduled_actions") @property @pulumi.getter - def status(self) -> str: + def status(self) -> pulumi.Output[str]: return pulumi.get(self, "status") @property @pulumi.getter(name="supportHours") - def support_hours(self) -> Optional['outputs.ServiceSupportHours']: + def support_hours(self) -> pulumi.Output[Optional['outputs.ServiceSupportHours']]: return pulumi.get(self, "support_hours") def translate_output_property(self, prop): diff --git a/sdk/python/pulumi_pagerduty/service_dependency.py b/sdk/python/pulumi_pagerduty/service_dependency.py index eeaf5ef9..ca10db6d 100644 --- a/sdk/python/pulumi_pagerduty/service_dependency.py +++ b/sdk/python/pulumi_pagerduty/service_dependency.py @@ -15,7 +15,7 @@ class ServiceDependency(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, dependencies: Optional[pulumi.Input[List[pulumi.Input[pulumi.InputType['ServiceDependencyDependencyArgs']]]]] = None, __props__=None, @@ -105,7 +105,7 @@ def get(resource_name: str, @property @pulumi.getter - def dependencies(self) -> List['outputs.ServiceDependencyDependency']: + def dependencies(self) -> pulumi.Output[List['outputs.ServiceDependencyDependency']]: """ The relationship between the `supporting_service` and `dependent_service`. """ diff --git a/sdk/python/pulumi_pagerduty/service_integration.py b/sdk/python/pulumi_pagerduty/service_integration.py index 6f5c316c..f7e10f7f 100644 --- a/sdk/python/pulumi_pagerduty/service_integration.py +++ b/sdk/python/pulumi_pagerduty/service_integration.py @@ -13,7 +13,7 @@ class ServiceIntegration(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, integration_email: Optional[pulumi.Input[str]] = None, integration_key: Optional[pulumi.Input[str]] = None, @@ -162,7 +162,7 @@ def get(resource_name: str, @property @pulumi.getter(name="htmlUrl") - def html_url(self) -> str: + def html_url(self) -> pulumi.Output[str]: """ URL at which the entity is uniquely displayed in the Web app """ @@ -170,7 +170,7 @@ def html_url(self) -> str: @property @pulumi.getter(name="integrationEmail") - def integration_email(self) -> str: + def integration_email(self) -> pulumi.Output[str]: """ This is the unique fully-qualified email address used for routing emails to this integration for processing. """ @@ -178,7 +178,7 @@ def integration_email(self) -> str: @property @pulumi.getter(name="integrationKey") - def integration_key(self) -> str: + def integration_key(self) -> pulumi.Output[str]: """ This is the unique key used to route events to this integration when received via the PagerDuty Events API. """ @@ -186,7 +186,7 @@ def integration_key(self) -> str: @property @pulumi.getter - def name(self) -> str: + def name(self) -> pulumi.Output[str]: """ The name of the service integration. """ @@ -194,7 +194,7 @@ def name(self) -> str: @property @pulumi.getter - def service(self) -> str: + def service(self) -> pulumi.Output[str]: """ The ID of the service the integration should belong to. """ @@ -202,7 +202,7 @@ def service(self) -> str: @property @pulumi.getter - def type(self) -> str: + def type(self) -> pulumi.Output[str]: """ The service type. Can be: `aws_cloudwatch_inbound_integration`, @@ -219,7 +219,7 @@ def type(self) -> str: @property @pulumi.getter - def vendor(self) -> str: + def vendor(self) -> pulumi.Output[str]: """ The ID of the vendor the integration should integrate with (e.g Datadog or Amazon Cloudwatch). """ diff --git a/sdk/python/pulumi_pagerduty/team.py b/sdk/python/pulumi_pagerduty/team.py index 4b577b3d..2b7e98bd 100644 --- a/sdk/python/pulumi_pagerduty/team.py +++ b/sdk/python/pulumi_pagerduty/team.py @@ -13,7 +13,7 @@ class Team(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, description: Optional[pulumi.Input[str]] = None, name: Optional[pulumi.Input[str]] = None, @@ -92,12 +92,12 @@ def get(resource_name: str, @property @pulumi.getter - def description(self) -> Optional[str]: + def description(self) -> pulumi.Output[Optional[str]]: return pulumi.get(self, "description") @property @pulumi.getter(name="htmlUrl") - def html_url(self) -> str: + def html_url(self) -> pulumi.Output[str]: """ URL at which the entity is uniquely displayed in the Web app """ @@ -105,7 +105,7 @@ def html_url(self) -> str: @property @pulumi.getter - def name(self) -> str: + def name(self) -> pulumi.Output[str]: """ The name of the group. """ diff --git a/sdk/python/pulumi_pagerduty/team_membership.py b/sdk/python/pulumi_pagerduty/team_membership.py index 6acc1775..bea80953 100644 --- a/sdk/python/pulumi_pagerduty/team_membership.py +++ b/sdk/python/pulumi_pagerduty/team_membership.py @@ -13,7 +13,7 @@ class TeamMembership(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, role: Optional[pulumi.Input[str]] = None, team_id: Optional[pulumi.Input[str]] = None, @@ -103,7 +103,7 @@ def get(resource_name: str, @property @pulumi.getter - def role(self) -> Optional[str]: + def role(self) -> pulumi.Output[Optional[str]]: """ The role of the user in the team. One of `observer`, `responder`, or `manager`. Defaults to `manager`. """ @@ -111,7 +111,7 @@ def role(self) -> Optional[str]: @property @pulumi.getter(name="teamId") - def team_id(self) -> str: + def team_id(self) -> pulumi.Output[str]: """ The ID of the team in which the user will belong. """ @@ -119,7 +119,7 @@ def team_id(self) -> str: @property @pulumi.getter(name="userId") - def user_id(self) -> str: + def user_id(self) -> pulumi.Output[str]: """ The ID of the user to add to the team. """ diff --git a/sdk/python/pulumi_pagerduty/user.py b/sdk/python/pulumi_pagerduty/user.py index b648831c..2e935953 100644 --- a/sdk/python/pulumi_pagerduty/user.py +++ b/sdk/python/pulumi_pagerduty/user.py @@ -13,7 +13,7 @@ class User(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, color: Optional[pulumi.Input[str]] = None, description: Optional[pulumi.Input[str]] = None, @@ -139,7 +139,7 @@ def get(resource_name: str, @property @pulumi.getter(name="avatarUrl") - def avatar_url(self) -> str: + def avatar_url(self) -> pulumi.Output[str]: """ The URL of the user's avatar. """ @@ -147,7 +147,7 @@ def avatar_url(self) -> str: @property @pulumi.getter - def color(self) -> str: + def color(self) -> pulumi.Output[str]: """ The schedule color for the user. Valid options are purple, red, green, blue, teal, orange, brown, turquoise, dark-slate-blue, cayenne, orange-red, dark-orchid, dark-slate-grey, lime, dark-magenta, lime-green, midnight-blue, deep-pink, dark-green, dark-orange, dark-cyan, darkolive-green, dark-slate-gray, grey20, firebrick, maroon, crimson, dark-red, dark-goldenrod, chocolate, medium-violet-red, sea-green, olivedrab, forest-green, dark-olive-green, blue-violet, royal-blue, indigo, slate-blue, saddle-brown, or steel-blue. """ @@ -155,12 +155,12 @@ def color(self) -> str: @property @pulumi.getter - def description(self) -> Optional[str]: + def description(self) -> pulumi.Output[Optional[str]]: return pulumi.get(self, "description") @property @pulumi.getter - def email(self) -> str: + def email(self) -> pulumi.Output[str]: """ The user's email address. """ @@ -168,7 +168,7 @@ def email(self) -> str: @property @pulumi.getter(name="htmlUrl") - def html_url(self) -> str: + def html_url(self) -> pulumi.Output[str]: """ URL at which the entity is uniquely displayed in the Web app """ @@ -176,7 +176,7 @@ def html_url(self) -> str: @property @pulumi.getter(name="invitationSent") - def invitation_sent(self) -> bool: + def invitation_sent(self) -> pulumi.Output[bool]: """ If true, the user has an outstanding invitation. """ @@ -184,7 +184,7 @@ def invitation_sent(self) -> bool: @property @pulumi.getter(name="jobTitle") - def job_title(self) -> Optional[str]: + def job_title(self) -> pulumi.Output[Optional[str]]: """ The user's title. """ @@ -192,7 +192,7 @@ def job_title(self) -> Optional[str]: @property @pulumi.getter - def name(self) -> str: + def name(self) -> pulumi.Output[str]: """ The name of the user. """ @@ -200,7 +200,7 @@ def name(self) -> str: @property @pulumi.getter - def role(self) -> Optional[str]: + def role(self) -> pulumi.Output[Optional[str]]: """ The user role. Account must have the `read_only_users` ability to set a user as a `read_only_user`. Can be `admin`, `limited_user`, `observer`, `owner`, `read_only_user` or `user` """ @@ -208,7 +208,7 @@ def role(self) -> Optional[str]: @property @pulumi.getter - def teams(self) -> List[str]: + def teams(self) -> pulumi.Output[List[str]]: """ A list of teams the user should belong to. Please use `TeamMembership` instead. """ @@ -216,7 +216,7 @@ def teams(self) -> List[str]: @property @pulumi.getter(name="timeZone") - def time_zone(self) -> str: + def time_zone(self) -> pulumi.Output[str]: """ The timezone of the user """ diff --git a/sdk/python/pulumi_pagerduty/user_contact_method.py b/sdk/python/pulumi_pagerduty/user_contact_method.py index b9543b4f..f2a36a9c 100644 --- a/sdk/python/pulumi_pagerduty/user_contact_method.py +++ b/sdk/python/pulumi_pagerduty/user_contact_method.py @@ -13,7 +13,7 @@ class UserContactMethod(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, address: Optional[pulumi.Input[str]] = None, country_code: Optional[pulumi.Input[float]] = None, @@ -147,7 +147,7 @@ def get(resource_name: str, @property @pulumi.getter - def address(self) -> str: + def address(self) -> pulumi.Output[str]: """ The "address" to deliver to: `email`, `phone number`, etc., depending on the type. """ @@ -155,7 +155,7 @@ def address(self) -> str: @property @pulumi.getter - def blacklisted(self) -> bool: + def blacklisted(self) -> pulumi.Output[bool]: """ If true, this phone has been blacklisted by PagerDuty and no messages will be sent to it. """ @@ -163,7 +163,7 @@ def blacklisted(self) -> bool: @property @pulumi.getter(name="countryCode") - def country_code(self) -> Optional[float]: + def country_code(self) -> pulumi.Output[Optional[float]]: """ The 1-to-3 digit country calling code. Required when using `phone_contact_method` or `sms_contact_method`. """ @@ -171,7 +171,7 @@ def country_code(self) -> Optional[float]: @property @pulumi.getter - def enabled(self) -> bool: + def enabled(self) -> pulumi.Output[bool]: """ If true, this phone is capable of receiving SMS messages. """ @@ -179,7 +179,7 @@ def enabled(self) -> bool: @property @pulumi.getter - def label(self) -> str: + def label(self) -> pulumi.Output[str]: """ The label (e.g., "Work", "Mobile", etc.). """ @@ -187,7 +187,7 @@ def label(self) -> str: @property @pulumi.getter(name="sendShortEmail") - def send_short_email(self) -> Optional[bool]: + def send_short_email(self) -> pulumi.Output[Optional[bool]]: """ Send an abbreviated email message instead of the standard email output. """ @@ -195,7 +195,7 @@ def send_short_email(self) -> Optional[bool]: @property @pulumi.getter - def type(self) -> str: + def type(self) -> pulumi.Output[str]: """ The contact method type. May be (`email_contact_method`, `phone_contact_method`, `sms_contact_method`, `push_notification_contact_method`). """ @@ -203,7 +203,7 @@ def type(self) -> str: @property @pulumi.getter(name="userId") - def user_id(self) -> str: + def user_id(self) -> pulumi.Output[str]: """ The ID of the user. """ diff --git a/sdk/python/pulumi_pagerduty/user_notification_rule.py b/sdk/python/pulumi_pagerduty/user_notification_rule.py index f743bc2c..437bedfa 100644 --- a/sdk/python/pulumi_pagerduty/user_notification_rule.py +++ b/sdk/python/pulumi_pagerduty/user_notification_rule.py @@ -15,7 +15,7 @@ class UserNotificationRule(pulumi.CustomResource): def __init__(__self__, - resource_name, + resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, contact_method: Optional[pulumi.Input[pulumi.InputType['UserNotificationRuleContactMethodArgs']]] = None, start_delay_in_minutes: Optional[pulumi.Input[float]] = None, @@ -151,7 +151,7 @@ def get(resource_name: str, @property @pulumi.getter(name="contactMethod") - def contact_method(self) -> 'outputs.UserNotificationRuleContactMethod': + def contact_method(self) -> pulumi.Output['outputs.UserNotificationRuleContactMethod']: """ A contact method block, configured as a block described below. """ @@ -159,7 +159,7 @@ def contact_method(self) -> 'outputs.UserNotificationRuleContactMethod': @property @pulumi.getter(name="startDelayInMinutes") - def start_delay_in_minutes(self) -> float: + def start_delay_in_minutes(self) -> pulumi.Output[float]: """ The delay before firing the rule, in minutes. """ @@ -167,7 +167,7 @@ def start_delay_in_minutes(self) -> float: @property @pulumi.getter - def urgency(self) -> str: + def urgency(self) -> pulumi.Output[str]: """ Which incident urgency this rule is used for. Account must have the `urgencies` ability to have a low urgency notification rule. Can be `high` or `low`. """ @@ -175,7 +175,7 @@ def urgency(self) -> str: @property @pulumi.getter(name="userId") - def user_id(self) -> str: + def user_id(self) -> pulumi.Output[str]: """ The ID of the user. """