Skip to content

Commit

Permalink
fixed webhook typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Yantrio committed Oct 11, 2022
1 parent d11eb68 commit 9ede549
Show file tree
Hide file tree
Showing 68 changed files with 1,894 additions and 1,382 deletions.
8 changes: 4 additions & 4 deletions provider/cmd/pulumi-resource-spacelift/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3507,8 +3507,8 @@
"type": "object"
}
},
"spacelift:index/webook:Webook": {
"description": "`spacelift.Webook` represents a webhook endpoint to which Spacelift sends the POST request about run state changes.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst webhook = new spacelift.Webook(\"webhook\", {\n endpoint: \"https://example.com/webhooks\",\n stackId: \"k8s-core\",\n});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nwebhook = spacelift.Webook(\"webhook\",\n endpoint=\"https://example.com/webhooks\",\n stack_id=\"k8s-core\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var webhook = new Spacelift.Webook(\"webhook\", new()\n {\n Endpoint = \"https://example.com/webhooks\",\n StackId = \"k8s-core\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.NewWebook(ctx, \"webhook\", \u0026spacelift.WebookArgs{\n\t\t\tEndpoint: pulumi.String(\"https://example.com/webhooks\"),\n\t\t\tStackId: pulumi.String(\"k8s-core\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.spacelift.Webook;\nimport com.pulumi.spacelift.WebookArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var webhook = new Webook(\"webhook\", WebookArgs.builder() \n .endpoint(\"https://example.com/webhooks\")\n .stackId(\"k8s-core\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n webhook:\n type: spacelift:Webook\n properties:\n endpoint: https://example.com/webhooks\n stackId: k8s-core\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\n\n\n```sh\n $ pulumi import spacelift:index/webook:Webook webhook stack/$STACK_ID/$WEBHOOK_ID\n```\n\n ",
"spacelift:index/webhook:Webhook": {
"description": "`spacelift.Webhook` represents a webhook endpoint to which Spacelift sends the POST request about run state changes.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst webhook = new spacelift.Webhook(\"webhook\", {\n endpoint: \"https://example.com/webhooks\",\n stackId: \"k8s-core\",\n});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nwebhook = spacelift.Webhook(\"webhook\",\n endpoint=\"https://example.com/webhooks\",\n stack_id=\"k8s-core\")\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var webhook = new Spacelift.Webhook(\"webhook\", new()\n {\n Endpoint = \"https://example.com/webhooks\",\n StackId = \"k8s-core\",\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.NewWebhook(ctx, \"webhook\", \u0026spacelift.WebhookArgs{\n\t\t\tEndpoint: pulumi.String(\"https://example.com/webhooks\"),\n\t\t\tStackId: pulumi.String(\"k8s-core\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.spacelift.Webhook;\nimport com.pulumi.spacelift.WebhookArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var webhook = new Webhook(\"webhook\", WebhookArgs.builder() \n .endpoint(\"https://example.com/webhooks\")\n .stackId(\"k8s-core\")\n .build());\n\n }\n}\n```\n```yaml\nresources:\n webhook:\n type: spacelift:Webhook\n properties:\n endpoint: https://example.com/webhooks\n stackId: k8s-core\n```\n{{% /example %}}\n{{% /examples %}}\n\n## Import\n\n\n\n```sh\n $ pulumi import spacelift:index/webhook:Webhook webhook stack/$STACK_ID/$WEBHOOK_ID\n```\n\n ",
"properties": {
"enabled": {
"type": "boolean",
Expand Down Expand Up @@ -3560,7 +3560,7 @@
"endpoint"
],
"stateInputs": {
"description": "Input properties used for looking up and filtering Webook resources.\n",
"description": "Input properties used for looking up and filtering Webhook resources.\n",
"properties": {
"enabled": {
"type": "boolean",
Expand Down Expand Up @@ -5513,7 +5513,7 @@
}
},
"spacelift:index/getWebhook:getWebhook": {
"description": "`spacelift.Webook` represents a webhook endpoint to which Spacelift sends the POST request about run state changes.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst webhook = spacelift.getWebhook({\n webhookId: spacelift_webhook.webhook.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nwebhook = spacelift.get_webhook(webhook_id=spacelift_webhook[\"webhook\"][\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var webhook = Spacelift.GetWebhook.Invoke(new()\n {\n WebhookId = spacelift_webhook.Webhook.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.GetWebhook(ctx, \u0026GetWebhookArgs{\n\t\t\tWebhookId: spacelift_webhook.Webhook.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.spacelift.SpaceliftFunctions;\nimport com.pulumi.spacelift.inputs.GetWebhookArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var webhook = SpaceliftFunctions.getWebhook(GetWebhookArgs.builder()\n .webhookId(spacelift_webhook.webhook().id())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n webhook:\n Fn::Invoke:\n Function: spacelift:getWebhook\n Arguments:\n webhookId: ${spacelift_webhook.webhook.id}\n```\n{{% /example %}}\n{{% /examples %}}",
"description": "`spacelift.Webhook` represents a webhook endpoint to which Spacelift sends the POST request about run state changes.\n\n{{% examples %}}\n## Example Usage\n{{% example %}}\n\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as spacelift from \"@pulumi/spacelift\";\n\nconst webhook = spacelift.getWebhook({\n webhookId: spacelift_webhook.webhook.id,\n});\n```\n```python\nimport pulumi\nimport pulumi_spacelift as spacelift\n\nwebhook = spacelift.get_webhook(webhook_id=spacelift_webhook[\"webhook\"][\"id\"])\n```\n```csharp\nusing System.Collections.Generic;\nusing Pulumi;\nusing Spacelift = Pulumi.Spacelift;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var webhook = Spacelift.GetWebhook.Invoke(new()\n {\n WebhookId = spacelift_webhook.Webhook.Id,\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n\t\"github.com/spacelift-io/pulumi-spacelift/sdk/go/spacelift\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := spacelift.LookupWebhook(ctx, \u0026GetWebhookArgs{\n\t\t\tWebhookId: spacelift_webhook.Webhook.Id,\n\t\t}, nil)\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.spacelift.SpaceliftFunctions;\nimport com.pulumi.spacelift.inputs.GetWebhookArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n final var webhook = SpaceliftFunctions.getWebhook(GetWebhookArgs.builder()\n .webhookId(spacelift_webhook.webhook().id())\n .build());\n\n }\n}\n```\n```yaml\nvariables:\n webhook:\n Fn::Invoke:\n Function: spacelift:getWebhook\n Arguments:\n webhookId: ${spacelift_webhook.webhook.id}\n```\n{{% /example %}}\n{{% /examples %}}",
"inputs": {
"description": "A collection of arguments for invoking getWebhook.\n",
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func Provider() tfbridge.ProviderInfo {
"spacelift_stack_destructor": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "StackDestructor")},
"spacelift_stack_gcp_service_account": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "StackGcpServiceAccount")},
"spacelift_vcs_agent_pool": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "VcsAgentPool")},
"spacelift_webhook": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "Webook")},
"spacelift_webhook": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "Webhook")},
"spacelift_worker_pool": {Tok: tfbridge.MakeResource(mainPkg, mainMod, "WorkerPool")},
},
DataSources: map[string]*tfbridge.DataSourceInfo{
Expand Down
4 changes: 2 additions & 2 deletions sdk/dotnet/GetWebhook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Pulumi.Spacelift
public static class GetWebhook
{
/// <summary>
/// `spacelift.Webook` represents a webhook endpoint to which Spacelift sends the POST request about run state changes.
/// `spacelift.Webhook` represents a webhook endpoint to which Spacelift sends the POST request about run state changes.
///
/// {{% examples %}}
/// ## Example Usage
Expand All @@ -39,7 +39,7 @@ public static Task<GetWebhookResult> InvokeAsync(GetWebhookArgs args, InvokeOpti
=> global::Pulumi.Deployment.Instance.InvokeAsync<GetWebhookResult>("spacelift:index/getWebhook:getWebhook", args ?? new GetWebhookArgs(), options.WithDefaults());

/// <summary>
/// `spacelift.Webook` represents a webhook endpoint to which Spacelift sends the POST request about run state changes.
/// `spacelift.Webhook` represents a webhook endpoint to which Spacelift sends the POST request about run state changes.
///
/// {{% examples %}}
/// ## Example Usage
Expand Down
38 changes: 19 additions & 19 deletions sdk/dotnet/Webook.cs → sdk/dotnet/Webhook.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace Pulumi.Spacelift
{
/// <summary>
/// `spacelift.Webook` represents a webhook endpoint to which Spacelift sends the POST request about run state changes.
/// `spacelift.Webhook` represents a webhook endpoint to which Spacelift sends the POST request about run state changes.
///
/// ## Example Usage
///
Expand All @@ -21,7 +21,7 @@ namespace Pulumi.Spacelift
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var webhook = new Spacelift.Webook("webhook", new()
/// var webhook = new Spacelift.Webhook("webhook", new()
/// {
/// Endpoint = "https://example.com/webhooks",
/// StackId = "k8s-core",
Expand All @@ -33,11 +33,11 @@ namespace Pulumi.Spacelift
/// ## Import
///
/// ```sh
/// $ pulumi import spacelift:index/webook:Webook webhook stack/$STACK_ID/$WEBHOOK_ID
/// $ pulumi import spacelift:index/webhook:Webhook webhook stack/$STACK_ID/$WEBHOOK_ID
/// ```
/// </summary>
[SpaceliftResourceType("spacelift:index/webook:Webook")]
public partial class Webook : global::Pulumi.CustomResource
[SpaceliftResourceType("spacelift:index/webhook:Webhook")]
public partial class Webhook : global::Pulumi.CustomResource
{
/// <summary>
/// enables or disables sending webhooks. Defaults to `true`.
Expand Down Expand Up @@ -71,19 +71,19 @@ public partial class Webook : global::Pulumi.CustomResource


/// <summary>
/// Create a Webook resource with the given unique name, arguments, and options.
/// Create a Webhook resource with the given unique name, arguments, and options.
/// </summary>
///
/// <param name="name">The unique name of the resource</param>
/// <param name="args">The arguments used to populate this resource's properties</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public Webook(string name, WebookArgs args, CustomResourceOptions? options = null)
: base("spacelift:index/webook:Webook", name, args ?? new WebookArgs(), MakeResourceOptions(options, ""))
public Webhook(string name, WebhookArgs args, CustomResourceOptions? options = null)
: base("spacelift:index/webhook:Webhook", name, args ?? new WebhookArgs(), MakeResourceOptions(options, ""))
{
}

private Webook(string name, Input<string> id, WebookState? state = null, CustomResourceOptions? options = null)
: base("spacelift:index/webook:Webook", name, state, MakeResourceOptions(options, id))
private Webhook(string name, Input<string> id, WebhookState? state = null, CustomResourceOptions? options = null)
: base("spacelift:index/webhook:Webhook", name, state, MakeResourceOptions(options, id))
{
}

Expand All @@ -100,21 +100,21 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
return merged;
}
/// <summary>
/// Get an existing Webook resource's state with the given name, ID, and optional extra
/// Get an existing Webhook resource's state with the given name, ID, and optional extra
/// properties used to qualify the lookup.
/// </summary>
///
/// <param name="name">The unique name of the resulting resource.</param>
/// <param name="id">The unique provider ID of the resource to lookup.</param>
/// <param name="state">Any extra arguments used during the lookup.</param>
/// <param name="options">A bag of options that control this resource's behavior</param>
public static Webook Get(string name, Input<string> id, WebookState? state = null, CustomResourceOptions? options = null)
public static Webhook Get(string name, Input<string> id, WebhookState? state = null, CustomResourceOptions? options = null)
{
return new Webook(name, id, state, options);
return new Webhook(name, id, state, options);
}
}

public sealed class WebookArgs : global::Pulumi.ResourceArgs
public sealed class WebhookArgs : global::Pulumi.ResourceArgs
{
/// <summary>
/// enables or disables sending webhooks. Defaults to `true`.
Expand Down Expand Up @@ -146,13 +146,13 @@ public sealed class WebookArgs : global::Pulumi.ResourceArgs
[Input("stackId")]
public Input<string>? StackId { get; set; }

public WebookArgs()
public WebhookArgs()
{
}
public static new WebookArgs Empty => new WebookArgs();
public static new WebhookArgs Empty => new WebhookArgs();
}

public sealed class WebookState : global::Pulumi.ResourceArgs
public sealed class WebhookState : global::Pulumi.ResourceArgs
{
/// <summary>
/// enables or disables sending webhooks. Defaults to `true`.
Expand Down Expand Up @@ -184,9 +184,9 @@ public sealed class WebookState : global::Pulumi.ResourceArgs
[Input("stackId")]
public Input<string>? StackId { get; set; }

public WebookState()
public WebhookState()
{
}
public static new WebookState Empty => new WebookState();
public static new WebhookState Empty => new WebhookState();
}
}
8 changes: 5 additions & 3 deletions sdk/go/spacelift/awsIntegration.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9ede549

Please sign in to comment.