Skip to content

Commit

Permalink
make build_sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
gtheodorio committed Jan 14, 2025
1 parent 0edf686 commit b2abd68
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 16 deletions.
35 changes: 35 additions & 0 deletions sdk/dotnet/GetSensorUpdatePolicyBuilds.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,41 @@ public static Task<GetSensorUpdatePolicyBuildsResult> InvokeAsync(InvokeOptions?
/// </summary>
public static Output<GetSensorUpdatePolicyBuildsResult> Invoke(InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<GetSensorUpdatePolicyBuildsResult>("crowdstrike:index/getSensorUpdatePolicyBuilds:getSensorUpdatePolicyBuilds", InvokeArgs.Empty, options.WithDefaults());

/// <summary>
/// This data source provides information about the latest sensor builds for each platform.
///
/// ## API Scopes
///
/// The following API scopes are required:
///
/// - Sensor update policies | Write
///
///
/// ## Example Usage
///
/// ```csharp
/// using System.Collections.Generic;
/// using System.Linq;
/// using Pulumi;
/// using Crowdstrike = Pulumi.Crowdstrike;
///
/// return await Deployment.RunAsync(() =&gt;
/// {
/// var builds = Crowdstrike.GetSensorUpdatePolicyBuilds.Invoke();
///
/// return new Dictionary&lt;string, object?&gt;
/// {
/// ["latestWindowsBuild"] = builds.Apply(getSensorUpdatePolicyBuildsResult =&gt; getSensorUpdatePolicyBuildsResult.Windows?.Latest),
/// ["n1LinuxBuild"] = builds.Apply(getSensorUpdatePolicyBuildsResult =&gt; getSensorUpdatePolicyBuildsResult.Linux?.N1),
/// ["n2MacBuild"] = builds.Apply(getSensorUpdatePolicyBuildsResult =&gt; getSensorUpdatePolicyBuildsResult.Mac?.N2),
/// ["latestLinuxArm64Build"] = builds.Apply(getSensorUpdatePolicyBuildsResult =&gt; getSensorUpdatePolicyBuildsResult.LinuxArm64?.Latest),
/// };
/// });
/// ```
/// </summary>
public static Output<GetSensorUpdatePolicyBuildsResult> Invoke(InvokeOutputOptions options)
=> global::Pulumi.Deployment.Instance.Invoke<GetSensorUpdatePolicyBuildsResult>("crowdstrike:index/getSensorUpdatePolicyBuilds:getSensorUpdatePolicyBuilds", InvokeArgs.Empty, options.WithDefaults());
}


Expand Down
8 changes: 8 additions & 0 deletions sdk/dotnet/Utilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ static class Utilities
return dst;
}

public static global::Pulumi.InvokeOutputOptions WithDefaults(this global::Pulumi.InvokeOutputOptions? src)
{
var dst = src ?? new global::Pulumi.InvokeOutputOptions{};
dst.Version = src?.Version ?? Version;
dst.PluginDownloadURL = src?.PluginDownloadURL ?? "github://api.github.com/crowdstrike/pulumi-crowdstrike";
return dst;
}

private readonly static string version;
public static string Version => version;

Expand Down
Binary file modified sdk/dotnet/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 2 additions & 12 deletions sdk/go/crowdstrike/getSensorUpdatePolicyBuilds.go

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

2 changes: 1 addition & 1 deletion sdk/nodejs/getSensorUpdatePolicyBuilds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export interface GetSensorUpdatePolicyBuildsResult {
* export const latestLinuxArm64Build = builds.then(builds => builds.linuxArm64?.latest);
* ```
*/
export function getSensorUpdatePolicyBuildsOutput(opts?: pulumi.InvokeOptions): pulumi.Output<GetSensorUpdatePolicyBuildsResult> {
export function getSensorUpdatePolicyBuildsOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSensorUpdatePolicyBuildsResult> {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("crowdstrike:index/getSensorUpdatePolicyBuilds:getSensorUpdatePolicyBuilds", {
}, opts);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def get_sensor_update_policy_builds(opts: Optional[pulumi.InvokeOptions] = None)
linux_arm64=pulumi.get(__ret__, 'linux_arm64'),
mac=pulumi.get(__ret__, 'mac'),
windows=pulumi.get(__ret__, 'windows'))
def get_sensor_update_policy_builds_output(opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetSensorUpdatePolicyBuildsResult]:
def get_sensor_update_policy_builds_output(opts: Optional[Union[pulumi.InvokeOptions, pulumi.InvokeOutputOptions]] = None) -> pulumi.Output[GetSensorUpdatePolicyBuildsResult]:
"""
This data source provides information about the latest sensor builds for each platform.
Expand All @@ -155,7 +155,7 @@ def get_sensor_update_policy_builds_output(opts: Optional[pulumi.InvokeOptions]
```
"""
__args__ = dict()
opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
opts = pulumi.InvokeOutputOptions.merge(_utilities.get_invoke_opts_defaults(), opts)
__ret__ = pulumi.runtime.invoke_output('crowdstrike:index/getSensorUpdatePolicyBuilds:getSensorUpdatePolicyBuilds', __args__, opts=opts, typ=GetSensorUpdatePolicyBuildsResult)
return __ret__.apply(lambda __response__: GetSensorUpdatePolicyBuildsResult(
id=pulumi.get(__response__, 'id'),
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def readme():


setup(name='crowdstrike_pulumi',
python_requires='>=3.8',
python_requires='>=3.9',
version=VERSION,
description="A Pulumi package for creating and managing CrowdStrike resources",
long_description=readme(),
Expand Down

0 comments on commit b2abd68

Please sign in to comment.