Skip to content

Commit

Permalink
chore: generate new sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
Ignacio Anaya committed Jun 1, 2022
1 parent a131422 commit d7cefc2
Show file tree
Hide file tree
Showing 23 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions provider/cmd/pulumi-resource-checkly/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
"checkly",
"category/monitoring"
],
"homepage": "https://www.pulumi.com",
"homepage": "https://www.pulumi.com/registry/packages/checkly",
"license": "MIT",
"attribution": "This Pulumi package is based on the [`checkly` Terraform Provider](https://github.com/checkly/terraform-provider-checkly).",
"repository": "https://github.com/checkly/pulumi-checkly",
"logoUrl": "https://raw.githubusercontent.com/checkly/pulumi-checkly/main/assets/checkly.svg",
"pluginDownloadURL": "https://github.com/checkly/pulumi-checkly/releases/${VERSION}",
"pluginDownloadURL": "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}",
"publisher": "checkly",
"meta": {
"moduleFormat": "(.*)(?:/[^/]*)"
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/AlertChannel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/${VERSION}",
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Check.cs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/${VERSION}",
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/CheckGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/${VERSION}",
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Dashboard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/${VERSION}",
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/EnvironmentVariable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/${VERSION}",
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/MaintenanceWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/${VERSION}",
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Provider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/${VERSION}",
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Pulumi.Checkly.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Company>checkly</Company>
<Description>A Pulumi package for creating and managing Checkly monitoring resources.</Description>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://www.pulumi.com</PackageProjectUrl>
<PackageProjectUrl>https://www.pulumi.com/registry/packages/checkly</PackageProjectUrl>
<RepositoryUrl>https://github.com/checkly/pulumi-checkly</RepositoryUrl>
<PackageIcon>logo.png</PackageIcon>

Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Snippet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/${VERSION}",
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/TriggerCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/${VERSION}",
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/TriggerCheckGroup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?
var defaultOptions = new CustomResourceOptions
{
Version = Utilities.Version,
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/${VERSION}",
PluginDownloadURL = "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}",
};
var merged = CustomResourceOptions.Merge(defaultOptions, options);
// Override the ID if one was specified for consistency with other language SDKs.
Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static InvokeOptions WithDefaults(this InvokeOptions? src)
{
InvokeOptions dst = src ?? new InvokeOptions{};
dst.Version = src?.Version ?? Version;
dst.PluginDownloadURL = src?.PluginDownloadURL ?? "https://github.com/checkly/pulumi-checkly/releases/${VERSION}";
dst.PluginDownloadURL = src?.PluginDownloadURL ?? "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}";
return dst;
}

Expand Down
2 changes: 1 addition & 1 deletion sdk/dotnet/pulumi-plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"resource": true,
"name": "checkly",
"server": "https://github.com/checkly/pulumi-checkly/releases/${VERSION}"
"server": "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}"
}
2 changes: 1 addition & 1 deletion sdk/dotnet/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.1-alpha.7
0.0.1-alpha.8
2 changes: 1 addition & 1 deletion sdk/go/checkly/pulumi-plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"resource": true,
"name": "checkly",
"server": "https://github.com/checkly/pulumi-checkly/releases/${VERSION}"
"server": "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}"
}
4 changes: 2 additions & 2 deletions sdk/go/checkly/pulumiUtilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,14 @@ func isZero(v interface{}) bool {

// pkgResourceDefaultOpts provides package level defaults to pulumi.OptionResource.
func pkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption {
defaults := []pulumi.ResourceOption{pulumi.PluginDownloadURL("https://github.com/checkly/pulumi-checkly/releases/${VERSION}")}
defaults := []pulumi.ResourceOption{pulumi.PluginDownloadURL("https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}")}

return append(defaults, opts...)
}

// pkgInvokeDefaultOpts provides package level defaults to pulumi.OptionInvoke.
func pkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption {
defaults := []pulumi.InvokeOption{pulumi.PluginDownloadURL("https://github.com/checkly/pulumi-checkly/releases/${VERSION}")}
defaults := []pulumi.InvokeOption{pulumi.PluginDownloadURL("https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}")}

return append(defaults, opts...)
}
8 changes: 4 additions & 4 deletions sdk/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@checkly/pulumi",
"version": "0.0.1-alpha.7",
"version": "0.0.1-alpha.8",
"description": "A Pulumi package for creating and managing Checkly monitoring resources.",
"keywords": [
"pulumi",
"checkly",
"category/monitoring"
],
"homepage": "https://www.pulumi.com",
"homepage": "https://www.pulumi.com/registry/packages/checkly",
"repository": "https://github.com/checkly/pulumi-checkly",
"license": "MIT",
"scripts": {
"build": "tsc",
"install": "node scripts/install-pulumi-plugin.js resource checkly 0.0.1-alpha.7"
"install": "node scripts/install-pulumi-plugin.js resource checkly 0.0.1-alpha.8"
},
"dependencies": {
"@pulumi/pulumi": "^3.0.0"
Expand All @@ -24,7 +24,7 @@
},
"pulumi": {
"resource": true,
"pluginDownloadURL": "https://github.com/checkly/pulumi-checkly/releases/0.0.1-alpha.7"
"pluginDownloadURL": "https://github.com/checkly/pulumi-checkly/releases/download/0.0.1-alpha.8"
},
"main": "./bin/index.js",
"types": "./bin/index.d.ts"
Expand Down
2 changes: 1 addition & 1 deletion sdk/nodejs/scripts/install-pulumi-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (args.indexOf("${VERSION}") !== -1) {
process.exit(0);
}

var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "https://github.com/checkly/pulumi-checkly/releases/${VERSION}"].concat(args), {
var res = childProcess.spawnSync("pulumi", ["plugin", "install", "--server", "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}"].concat(args), {
stdio: ["ignore", "inherit", "inherit"]
});

Expand Down
2 changes: 1 addition & 1 deletion sdk/nodejs/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ export function getVersion(): string {

/** @internal */
export function resourceOptsDefaults(): any {
return { version: getVersion(), pluginDownloadURL: "https://github.com/checkly/pulumi-checkly/releases/${VERSION}" };
return { version: getVersion(), pluginDownloadURL: "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}" };
}
2 changes: 1 addition & 1 deletion sdk/python/pulumi_checkly/_utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,4 @@ def lifted_func(*args, opts=None, **kwargs):
return (lambda _: lifted_func)

def get_plugin_download_url():
return "https://github.com/checkly/pulumi-checkly/releases/${VERSION}"
return "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}"
2 changes: 1 addition & 1 deletion sdk/python/pulumi_checkly/pulumi-plugin.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"resource": true,
"name": "checkly",
"server": "https://github.com/checkly/pulumi-checkly/releases/${VERSION}"
"server": "https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}"
}
4 changes: 2 additions & 2 deletions sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class InstallPluginCommand(install):
def run(self):
install.run(self)
try:
check_call(['pulumi', 'plugin', 'install', 'resource', 'checkly', PLUGIN_VERSION, '--server', 'https://github.com/checkly/pulumi-checkly/releases/${VERSION}'])
check_call(['pulumi', 'plugin', 'install', 'resource', 'checkly', PLUGIN_VERSION, '--server', 'https://github.com/checkly/pulumi-checkly/releases/download/${VERSION}'])
except OSError as error:
if error.errno == errno.ENOENT:
print(f"""
Expand Down Expand Up @@ -46,7 +46,7 @@ def readme():
'install': InstallPluginCommand,
},
keywords='pulumi checkly category/monitoring',
url='https://www.pulumi.com',
url='https://www.pulumi.com/registry/packages/checkly',
project_urls={
'Repository': 'https://github.com/checkly/pulumi-checkly'
},
Expand Down

0 comments on commit d7cefc2

Please sign in to comment.