Skip to content

Commit

Permalink
v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kwent committed Jan 11, 2024
1 parent b601e53 commit 8d8afcd
Show file tree
Hide file tree
Showing 9 changed files with 94 additions and 62 deletions.
54 changes: 30 additions & 24 deletions provider/cmd/pulumi-resource-rootly/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3060,6 +3060,10 @@
"type": "string"
}
},
"environmentsImpactedByIncident": {
"type": "boolean",
"description": "Value must be one of true or false\n"
},
"labels": {
"type": "array",
"items": {
Expand All @@ -3086,6 +3090,10 @@
"type": "string"
}
},
"servicesImpactedByIncident": {
"type": "boolean",
"description": "Value must be one of true or false\n"
},
"sources": {
"type": "array",
"items": {
Expand Down Expand Up @@ -3148,6 +3156,10 @@
"type": "string"
}
},
"servicesImpactedByIncident": {
"type": "boolean",
"description": "Value must be one of true or false\n"
},
"taskType": {
"type": "string"
}
Expand Down Expand Up @@ -3205,6 +3217,10 @@
"type": "string"
}
},
"servicesImpactedByIncident": {
"type": "boolean",
"description": "Value must be one of true or false\n"
},
"taskType": {
"type": "string"
}
Expand Down Expand Up @@ -3238,6 +3254,10 @@
"type": "string"
}
},
"environmentsImpactedByIncident": {
"type": "boolean",
"description": "Value must be one of true or false\n"
},
"labels": {
"type": "array",
"items": {
Expand Down Expand Up @@ -3270,6 +3290,10 @@
"type": "string"
}
},
"servicesImpactedByIncident": {
"type": "boolean",
"description": "Value must be one of true or false\n"
},
"sources": {
"type": "array",
"items": {
Expand Down Expand Up @@ -7155,10 +7179,6 @@
"slug": {
"type": "string",
"description": "The slug of the functionality\n"
},
"status": {
"type": "string",
"description": "The status of the functionality. Value must be one of `operational`, `impacted`, `outage`, `partial_outage`, `major_outage`.\n"
}
},
"required": [
Expand Down Expand Up @@ -7249,10 +7269,6 @@
"slug": {
"type": "string",
"description": "The slug of the functionality\n"
},
"status": {
"type": "string",
"description": "The status of the functionality. Value must be one of `operational`, `impacted`, `outage`, `partial_outage`, `major_outage`.\n"
}
},
"stateInputs": {
Expand Down Expand Up @@ -7330,10 +7346,6 @@
"slug": {
"type": "string",
"description": "The slug of the functionality\n"
},
"status": {
"type": "string",
"description": "The status of the functionality. Value must be one of `operational`, `impacted`, `outage`, `partial_outage`, `major_outage`.\n"
}
},
"type": "object"
Expand Down Expand Up @@ -7474,6 +7486,9 @@
"description": "Value must be one of true or false\n"
}
},
"requiredInputs": [
"incidentPermissionSetId"
],
"stateInputs": {
"description": "Input properties used for looking up and filtering IncidentPermissionSetBoolean resources.\n",
"properties": {
Expand Down Expand Up @@ -7542,6 +7557,9 @@
"type": "string"
}
},
"requiredInputs": [
"incidentPermissionSetId"
],
"stateInputs": {
"description": "Input properties used for looking up and filtering IncidentPermissionSetResource resources.\n",
"properties": {
Expand Down Expand Up @@ -9108,10 +9126,6 @@
"slug": {
"type": "string",
"description": "The slug of the service\n"
},
"status": {
"type": "string",
"description": "The status of the service. Value must be one of `operational`, `impacted`, `outage`, `partial_outage`, `major_outage`.\n"
}
},
"required": [
Expand Down Expand Up @@ -9237,10 +9251,6 @@
"slug": {
"type": "string",
"description": "The slug of the service\n"
},
"status": {
"type": "string",
"description": "The status of the service. Value must be one of `operational`, `impacted`, `outage`, `partial_outage`, `major_outage`.\n"
}
},
"stateInputs": {
Expand Down Expand Up @@ -9346,10 +9356,6 @@
"slug": {
"type": "string",
"description": "The slug of the service\n"
},
"status": {
"type": "string",
"description": "The status of the service. Value must be one of `operational`, `impacted`, `outage`, `partial_outage`, `major_outage`.\n"
}
},
"type": "object"
Expand Down
4 changes: 2 additions & 2 deletions provider/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ replace github.com/hashicorp/terraform-plugin-sdk/v2 => github.com/pulumi/terraf
require (
github.com/gobuffalo/flect v0.1.3
github.com/pulumi/pulumi-terraform-bridge/v3 v3.69.0
github.com/rootlyhq/terraform-provider-rootly v1.2.12
github.com/rootlyhq/terraform-provider-rootly v1.2.15
)

require (
Expand Down Expand Up @@ -229,7 +229,7 @@ require (
gocloud.dev v0.27.0 // indirect
gocloud.dev/secrets/hashivault v0.27.0 // indirect
golang.org/x/crypto v0.18.0 // indirect
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc // indirect
golang.org/x/exp v0.0.0-20240110193028-0dcbfd608b1e // indirect
golang.org/x/mod v0.14.0 // indirect
golang.org/x/net v0.20.0 // indirect
golang.org/x/oauth2 v0.13.0 // indirect
Expand Down
8 changes: 4 additions & 4 deletions provider/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2232,8 +2232,8 @@ github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTE
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
github.com/rootlyhq/terraform-provider-rootly v1.2.12 h1:5zUGtRQZpGfsvHO6V7TuNjuPPDvLGrK3jGAXFDthHx0=
github.com/rootlyhq/terraform-provider-rootly v1.2.12/go.mod h1:z6XoKrY2PgxO0sBjxundqc3LammJV7Ly8Ij2CDfyurs=
github.com/rootlyhq/terraform-provider-rootly v1.2.15 h1:/KkiC9N8wjuVani5g2ZlmrTSTK2WtfAiPt7Y8WuzP9Q=
github.com/rootlyhq/terraform-provider-rootly v1.2.15/go.mod h1:z6XoKrY2PgxO0sBjxundqc3LammJV7Ly8Ij2CDfyurs=
github.com/rs/cors v1.8.2/go.mod h1:XyqrcTp5zjWr1wsJ8PIRZssZ8b/WMcMf71DJnit4EMU=
github.com/rs/xid v1.2.1/go.mod h1:+uKXf+4Djp6Md1KODXJxgGQPKngRmWyn10oCKFzNHOQ=
github.com/rs/zerolog v1.13.0/go.mod h1:YbFCdg8HfsridGWAh22vktObvhZbQsZXe4/zB0OKkWU=
Expand Down Expand Up @@ -2621,8 +2621,8 @@ golang.org/x/exp v0.0.0-20200119233911-0405dc783f0a/go.mod h1:2RIsYlXP63K8oxa1u0
golang.org/x/exp v0.0.0-20200207192155-f17229e696bd/go.mod h1:J/WKrq2StrnmMY6+EHIKF9dgMWnmCNThgcyBT1FY9mM=
golang.org/x/exp v0.0.0-20200224162631-6cc2880d07d6/go.mod h1:3jZMyOhIsHpP37uCMkUooju7aAi5cS1Q23tOzKc+0MU=
golang.org/x/exp v0.0.0-20220827204233-334a2380cb91/go.mod h1:cyybsKvd6eL0RnXn6p/Grxp8F5bW7iYuBgsNCOHpMYE=
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc h1:ao2WRsKSzW6KuUY9IWPwWahcHCgR0s52IfwutMfEbdM=
golang.org/x/exp v0.0.0-20240103183307-be819d1f06fc/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI=
golang.org/x/exp v0.0.0-20240110193028-0dcbfd608b1e h1:723BNChdd0c2Wk6WOE320qGBiPtYx0F0Bbm1kriShfE=
golang.org/x/exp v0.0.0-20240110193028-0dcbfd608b1e/go.mod h1:iRJReGqOEeBhDZGkGbynYwcHlctCvnjTYIamk7uXpHI=
golang.org/x/image v0.0.0-20180708004352-c73c2afc3b81/go.mod h1:ux5Hcp/YLpHSI86hEcLt0YII63i6oz57MZXIpbrjZUs=
golang.org/x/image v0.0.0-20190227222117-0694c2d4d067/go.mod h1:kZ7UVZpmo3dzQBMxlp+ypCbDeSB+sBbTgSJuh5dn5js=
golang.org/x/image v0.0.0-20190802002840-cff245a6509b/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
Expand Down
14 changes: 0 additions & 14 deletions sdk/nodejs/functionality.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,6 @@ export class Functionality extends pulumi.CustomResource {
* The slug of the functionality
*/
public readonly slug!: pulumi.Output<string>;
/**
* The status of the functionality. Value must be one of `operational`, `impacted`, `outage`, `partialOutage`, `majorOutage`.
*/
public readonly status!: pulumi.Output<string | undefined>;

/**
* Create a Functionality resource with the given unique name, arguments, and options.
Expand Down Expand Up @@ -168,7 +164,6 @@ export class Functionality extends pulumi.CustomResource {
resourceInputs["slackAliases"] = state ? state.slackAliases : undefined;
resourceInputs["slackChannels"] = state ? state.slackChannels : undefined;
resourceInputs["slug"] = state ? state.slug : undefined;
resourceInputs["status"] = state ? state.status : undefined;
} else {
const args = argsOrState as FunctionalityArgs | undefined;
resourceInputs["color"] = args ? args.color : undefined;
Expand All @@ -184,7 +179,6 @@ export class Functionality extends pulumi.CustomResource {
resourceInputs["slackAliases"] = args ? args.slackAliases : undefined;
resourceInputs["slackChannels"] = args ? args.slackChannels : undefined;
resourceInputs["slug"] = args ? args.slug : undefined;
resourceInputs["status"] = args ? args.status : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Functionality.__pulumiType, name, resourceInputs, opts);
Expand Down Expand Up @@ -247,10 +241,6 @@ export interface FunctionalityState {
* The slug of the functionality
*/
slug?: pulumi.Input<string>;
/**
* The status of the functionality. Value must be one of `operational`, `impacted`, `outage`, `partialOutage`, `majorOutage`.
*/
status?: pulumi.Input<string>;
}

/**
Expand Down Expand Up @@ -309,8 +299,4 @@ export interface FunctionalityArgs {
* The slug of the functionality
*/
slug?: pulumi.Input<string>;
/**
* The status of the functionality. Value must be one of `operational`, `impacted`, `outage`, `partialOutage`, `majorOutage`.
*/
status?: pulumi.Input<string>;
}
7 changes: 5 additions & 2 deletions sdk/nodejs/incidentPermissionSetBoolean.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class IncidentPermissionSetBoolean extends pulumi.CustomResource {
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: IncidentPermissionSetBooleanArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, args: IncidentPermissionSetBooleanArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: IncidentPermissionSetBooleanArgs | IncidentPermissionSetBooleanState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
Expand All @@ -62,6 +62,9 @@ export class IncidentPermissionSetBoolean extends pulumi.CustomResource {
resourceInputs["private"] = state ? state.private : undefined;
} else {
const args = argsOrState as IncidentPermissionSetBooleanArgs | undefined;
if ((!args || args.incidentPermissionSetId === undefined) && !opts.urn) {
throw new Error("Missing required property 'incidentPermissionSetId'");
}
resourceInputs["enabled"] = args ? args.enabled : undefined;
resourceInputs["incidentPermissionSetId"] = args ? args.incidentPermissionSetId : undefined;
resourceInputs["kind"] = args ? args.kind : undefined;
Expand Down Expand Up @@ -93,7 +96,7 @@ export interface IncidentPermissionSetBooleanState {
*/
export interface IncidentPermissionSetBooleanArgs {
enabled?: pulumi.Input<boolean>;
incidentPermissionSetId?: pulumi.Input<string>;
incidentPermissionSetId: pulumi.Input<string>;
/**
* Value must be one of `publishToStatusPage`, `assignIncidentRoles`, `inviteSubscribers`, `updateSummary`, `updateTimeline`, `triggerWorkflows`, `modifyCustomFields`.
*/
Expand Down
7 changes: 5 additions & 2 deletions sdk/nodejs/incidentPermissionSetResource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class IncidentPermissionSetResource extends pulumi.CustomResource {
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args?: IncidentPermissionSetResourceArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, args: IncidentPermissionSetResourceArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: IncidentPermissionSetResourceArgs | IncidentPermissionSetResourceState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
Expand All @@ -64,6 +64,9 @@ export class IncidentPermissionSetResource extends pulumi.CustomResource {
resourceInputs["resourceType"] = state ? state.resourceType : undefined;
} else {
const args = argsOrState as IncidentPermissionSetResourceArgs | undefined;
if ((!args || args.incidentPermissionSetId === undefined) && !opts.urn) {
throw new Error("Missing required property 'incidentPermissionSetId'");
}
resourceInputs["incidentPermissionSetId"] = args ? args.incidentPermissionSetId : undefined;
resourceInputs["kind"] = args ? args.kind : undefined;
resourceInputs["private"] = args ? args.private : undefined;
Expand Down Expand Up @@ -96,7 +99,7 @@ export interface IncidentPermissionSetResourceState {
* The set of arguments for constructing a IncidentPermissionSetResource resource.
*/
export interface IncidentPermissionSetResourceArgs {
incidentPermissionSetId?: pulumi.Input<string>;
incidentPermissionSetId: pulumi.Input<string>;
/**
* Value must be one of `severities`, `incidentTypes`, `statuses`.
*/
Expand Down
14 changes: 0 additions & 14 deletions sdk/nodejs/service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ export class Service extends pulumi.CustomResource {
* The slug of the service
*/
public readonly slug!: pulumi.Output<string>;
/**
* The status of the service. Value must be one of `operational`, `impacted`, `outage`, `partialOutage`, `majorOutage`.
*/
public readonly status!: pulumi.Output<string | undefined>;

/**
* Create a Service resource with the given unique name, arguments, and options.
Expand Down Expand Up @@ -203,7 +199,6 @@ export class Service extends pulumi.CustomResource {
resourceInputs["slackAliases"] = state ? state.slackAliases : undefined;
resourceInputs["slackChannels"] = state ? state.slackChannels : undefined;
resourceInputs["slug"] = state ? state.slug : undefined;
resourceInputs["status"] = state ? state.status : undefined;
} else {
const args = argsOrState as ServiceArgs | undefined;
resourceInputs["backstageId"] = args ? args.backstageId : undefined;
Expand All @@ -226,7 +221,6 @@ export class Service extends pulumi.CustomResource {
resourceInputs["slackAliases"] = args ? args.slackAliases : undefined;
resourceInputs["slackChannels"] = args ? args.slackChannels : undefined;
resourceInputs["slug"] = args ? args.slug : undefined;
resourceInputs["status"] = args ? args.status : undefined;
}
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
super(Service.__pulumiType, name, resourceInputs, opts);
Expand Down Expand Up @@ -317,10 +311,6 @@ export interface ServiceState {
* The slug of the service
*/
slug?: pulumi.Input<string>;
/**
* The status of the service. Value must be one of `operational`, `impacted`, `outage`, `partialOutage`, `majorOutage`.
*/
status?: pulumi.Input<string>;
}

/**
Expand Down Expand Up @@ -407,8 +397,4 @@ export interface ServiceArgs {
* The slug of the service
*/
slug?: pulumi.Input<string>;
/**
* The status of the service. Value must be one of `operational`, `impacted`, `outage`, `partialOutage`, `majorOutage`.
*/
status?: pulumi.Input<string>;
}
Loading

0 comments on commit 8d8afcd

Please sign in to comment.