Skip to content

Commit

Permalink
make build_sdks
Browse files Browse the repository at this point in the history
  • Loading branch information
gtheodorio committed Dec 6, 2024
1 parent ba9c5e8 commit acbb6d1
Show file tree
Hide file tree
Showing 25 changed files with 704 additions and 169 deletions.
11 changes: 4 additions & 7 deletions sdk/dotnet/PreventionPolicyLinux.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ namespace CrowdStrike.Crowdstrike
/// {
/// "d6e3c1e1b3d0467da0fowc96a5e6ecb5",
/// },
/// IoaRuleGroups = new[]
/// {
/// "ed334b3243bc4b6bb8e7d40a2ecd86fa",
/// },
/// IoaRuleGroups = new[] {},
/// CloudAntiMalware = new Crowdstrike.Inputs.PreventionPolicyLinuxCloudAntiMalwareArgs
/// {
/// Detection = "MODERATE",
Expand Down Expand Up @@ -215,7 +212,7 @@ public partial class PreventionPolicyLinux : global::Pulumi.CustomResource
/// <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 PreventionPolicyLinux(string name, PreventionPolicyLinuxArgs? args = null, CustomResourceOptions? options = null)
public PreventionPolicyLinux(string name, PreventionPolicyLinuxArgs args, CustomResourceOptions? options = null)
: base("crowdstrike:index/preventionPolicyLinux:PreventionPolicyLinux", name, args ?? new PreventionPolicyLinuxArgs(), MakeResourceOptions(options, ""))
{
}
Expand Down Expand Up @@ -302,7 +299,7 @@ public sealed class PreventionPolicyLinuxArgs : global::Pulumi.ResourceArgs
[Input("ftpVisibility")]
public Input<bool>? FtpVisibility { get; set; }

[Input("hostGroups")]
[Input("hostGroups", required: true)]
private InputList<string>? _hostGroups;

/// <summary>
Expand All @@ -320,7 +317,7 @@ public InputList<string> HostGroups
[Input("httpVisibility")]
public Input<bool>? HttpVisibility { get; set; }

[Input("ioaRuleGroups")]
[Input("ioaRuleGroups", required: true)]
private InputList<string>? _ioaRuleGroups;

/// <summary>
Expand Down
11 changes: 4 additions & 7 deletions sdk/dotnet/PreventionPolicyMac.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ namespace CrowdStrike.Crowdstrike
/// {
/// "d6e3c1e1b3d0467da0fowc96a5e6ecb5",
/// },
/// IoaRuleGroups = new[]
/// {
/// "ed334b3243bc4b6bb8e7d40a2ecd86fa",
/// },
/// IoaRuleGroups = new[] {},
/// CloudAdwareAndPup = new Crowdstrike.Inputs.PreventionPolicyMacCloudAdwareAndPupArgs
/// {
/// Detection = "MODERATE",
Expand Down Expand Up @@ -258,7 +255,7 @@ public partial class PreventionPolicyMac : global::Pulumi.CustomResource
/// <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 PreventionPolicyMac(string name, PreventionPolicyMacArgs? args = null, CustomResourceOptions? options = null)
public PreventionPolicyMac(string name, PreventionPolicyMacArgs args, CustomResourceOptions? options = null)
: base("crowdstrike:index/preventionPolicyMac:PreventionPolicyMac", name, args ?? new PreventionPolicyMacArgs(), MakeResourceOptions(options, ""))
{
}
Expand Down Expand Up @@ -351,7 +348,7 @@ public sealed class PreventionPolicyMacArgs : global::Pulumi.ResourceArgs
[Input("hashCollector")]
public Input<bool>? HashCollector { get; set; }

[Input("hostGroups")]
[Input("hostGroups", required: true)]
private InputList<string>? _hostGroups;

/// <summary>
Expand All @@ -369,7 +366,7 @@ public InputList<string> HostGroups
[Input("intelligenceSourcedThreats")]
public Input<bool>? IntelligenceSourcedThreats { get; set; }

[Input("ioaRuleGroups")]
[Input("ioaRuleGroups", required: true)]
private InputList<string>? _ioaRuleGroups;

/// <summary>
Expand Down
11 changes: 4 additions & 7 deletions sdk/dotnet/PreventionPolicyWindows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ namespace CrowdStrike.Crowdstrike
/// {
/// "d6e3c1e1b3d0467da0fowc96a5e6ecb5",
/// },
/// IoaRuleGroups = new[]
/// {
/// "ed334b3243bc4b6bb8e7d40a2ecd86fa",
/// },
/// IoaRuleGroups = new[] {},
/// AdwareAndPup = new Crowdstrike.Inputs.PreventionPolicyWindowsAdwareAndPupArgs
/// {
/// Detection = "MODERATE",
Expand Down Expand Up @@ -528,7 +525,7 @@ public partial class PreventionPolicyWindows : global::Pulumi.CustomResource
/// <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 PreventionPolicyWindows(string name, PreventionPolicyWindowsArgs? args = null, CustomResourceOptions? options = null)
public PreventionPolicyWindows(string name, PreventionPolicyWindowsArgs args, CustomResourceOptions? options = null)
: base("crowdstrike:index/preventionPolicyWindows:PreventionPolicyWindows", name, args ?? new PreventionPolicyWindowsArgs(), MakeResourceOptions(options, ""))
{
}
Expand Down Expand Up @@ -741,7 +738,7 @@ public sealed class PreventionPolicyWindowsArgs : global::Pulumi.ResourceArgs
[Input("heapSprayPreallocation")]
public Input<bool>? HeapSprayPreallocation { get; set; }

[Input("hostGroups")]
[Input("hostGroups", required: true)]
private InputList<string>? _hostGroups;

/// <summary>
Expand Down Expand Up @@ -771,7 +768,7 @@ public InputList<string> HostGroups
[Input("interpreterOnly")]
public Input<bool>? InterpreterOnly { get; set; }

[Input("ioaRuleGroups")]
[Input("ioaRuleGroups", required: true)]
private InputList<string>? _ioaRuleGroups;

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion sdk/go/crowdstrike/getSensorUpdatePolicyBuilds.go

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

13 changes: 9 additions & 4 deletions sdk/go/crowdstrike/preventionPolicyLinux.go

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

13 changes: 9 additions & 4 deletions sdk/go/crowdstrike/preventionPolicyMac.go

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

13 changes: 9 additions & 4 deletions sdk/go/crowdstrike/preventionPolicyWindows.go

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

18 changes: 12 additions & 6 deletions sdk/nodejs/preventionPolicyLinux.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import * as utilities from "./utilities";
* enabled: true,
* description: "Made with Pulumi",
* hostGroups: ["d6e3c1e1b3d0467da0fowc96a5e6ecb5"],
* ioaRuleGroups: ["ed334b3243bc4b6bb8e7d40a2ecd86fa"],
* ioaRuleGroups: [],
* cloudAntiMalware: {
* detection: "MODERATE",
* prevention: "CAUTIOUS",
Expand Down Expand Up @@ -122,15 +122,15 @@ export class PreventionPolicyLinux extends pulumi.CustomResource {
/**
* Host Group ids to attach to the prevention policy.
*/
public readonly hostGroups!: pulumi.Output<string[] | undefined>;
public readonly hostGroups!: pulumi.Output<string[]>;
/**
* Whether to enable the setting. Allows the sensor to monitor unencrypted HTTP traffic for malicious patterns and improved detections.
*/
public readonly httpVisibility!: pulumi.Output<boolean>;
/**
* IOA Rule Group to attach to the prevention policy.
*/
public readonly ioaRuleGroups!: pulumi.Output<string[] | undefined>;
public readonly ioaRuleGroups!: pulumi.Output<string[]>;
public /*out*/ readonly lastUpdated!: pulumi.Output<string>;
/**
* Name of the prevention policy.
Expand Down Expand Up @@ -176,7 +176,7 @@ export class PreventionPolicyLinux 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?: PreventionPolicyLinuxArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, args: PreventionPolicyLinuxArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: PreventionPolicyLinuxArgs | PreventionPolicyLinuxState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
Expand Down Expand Up @@ -205,6 +205,12 @@ export class PreventionPolicyLinux extends pulumi.CustomResource {
resourceInputs["uploadUnknownExecutables"] = state ? state.uploadUnknownExecutables : undefined;
} else {
const args = argsOrState as PreventionPolicyLinuxArgs | undefined;
if ((!args || args.hostGroups === undefined) && !opts.urn) {
throw new Error("Missing required property 'hostGroups'");
}
if ((!args || args.ioaRuleGroups === undefined) && !opts.urn) {
throw new Error("Missing required property 'ioaRuleGroups'");
}
resourceInputs["cloudAntiMalware"] = args ? args.cloudAntiMalware : undefined;
resourceInputs["customBlocking"] = args ? args.customBlocking : undefined;
resourceInputs["description"] = args ? args.description : undefined;
Expand Down Expand Up @@ -358,15 +364,15 @@ export interface PreventionPolicyLinuxArgs {
/**
* Host Group ids to attach to the prevention policy.
*/
hostGroups?: pulumi.Input<pulumi.Input<string>[]>;
hostGroups: pulumi.Input<pulumi.Input<string>[]>;
/**
* Whether to enable the setting. Allows the sensor to monitor unencrypted HTTP traffic for malicious patterns and improved detections.
*/
httpVisibility?: pulumi.Input<boolean>;
/**
* IOA Rule Group to attach to the prevention policy.
*/
ioaRuleGroups?: pulumi.Input<pulumi.Input<string>[]>;
ioaRuleGroups: pulumi.Input<pulumi.Input<string>[]>;
/**
* Name of the prevention policy.
*/
Expand Down
18 changes: 12 additions & 6 deletions sdk/nodejs/preventionPolicyMac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import * as utilities from "./utilities";
* enabled: false,
* description: "Made with Pulumi",
* hostGroups: ["d6e3c1e1b3d0467da0fowc96a5e6ecb5"],
* ioaRuleGroups: ["ed334b3243bc4b6bb8e7d40a2ecd86fa"],
* ioaRuleGroups: [],
* cloudAdwareAndPup: {
* detection: "MODERATE",
* prevention: "CAUTIOUS",
Expand Down Expand Up @@ -137,15 +137,15 @@ export class PreventionPolicyMac extends pulumi.CustomResource {
/**
* Host Group ids to attach to the prevention policy.
*/
public readonly hostGroups!: pulumi.Output<string[] | undefined>;
public readonly hostGroups!: pulumi.Output<string[]>;
/**
* Whether to enable the setting. Block processes that CrowdStrike Intelligence analysts classify as malicious. These are focused on static hash-based IOCs.
*/
public readonly intelligenceSourcedThreats!: pulumi.Output<boolean>;
/**
* IOA Rule Group to attach to the prevention policy.
*/
public readonly ioaRuleGroups!: pulumi.Output<string[] | undefined>;
public readonly ioaRuleGroups!: pulumi.Output<string[]>;
/**
* Whether to enable the setting. An attempt to recover a plaintext password via the kcpassword file was blocked.
*/
Expand Down Expand Up @@ -207,7 +207,7 @@ export class PreventionPolicyMac 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?: PreventionPolicyMacArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, args: PreventionPolicyMacArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: PreventionPolicyMacArgs | PreventionPolicyMacState, opts?: pulumi.CustomResourceOptions) {
let resourceInputs: pulumi.Inputs = {};
opts = opts || {};
Expand Down Expand Up @@ -241,6 +241,12 @@ export class PreventionPolicyMac extends pulumi.CustomResource {
resourceInputs["xpcomShell"] = state ? state.xpcomShell : undefined;
} else {
const args = argsOrState as PreventionPolicyMacArgs | undefined;
if ((!args || args.hostGroups === undefined) && !opts.urn) {
throw new Error("Missing required property 'hostGroups'");
}
if ((!args || args.ioaRuleGroups === undefined) && !opts.urn) {
throw new Error("Missing required property 'ioaRuleGroups'");
}
resourceInputs["chopperWebshell"] = args ? args.chopperWebshell : undefined;
resourceInputs["cloudAdwareAndPup"] = args ? args.cloudAdwareAndPup : undefined;
resourceInputs["cloudAntiMalware"] = args ? args.cloudAntiMalware : undefined;
Expand Down Expand Up @@ -423,15 +429,15 @@ export interface PreventionPolicyMacArgs {
/**
* Host Group ids to attach to the prevention policy.
*/
hostGroups?: pulumi.Input<pulumi.Input<string>[]>;
hostGroups: pulumi.Input<pulumi.Input<string>[]>;
/**
* Whether to enable the setting. Block processes that CrowdStrike Intelligence analysts classify as malicious. These are focused on static hash-based IOCs.
*/
intelligenceSourcedThreats?: pulumi.Input<boolean>;
/**
* IOA Rule Group to attach to the prevention policy.
*/
ioaRuleGroups?: pulumi.Input<pulumi.Input<string>[]>;
ioaRuleGroups: pulumi.Input<pulumi.Input<string>[]>;
/**
* Whether to enable the setting. An attempt to recover a plaintext password via the kcpassword file was blocked.
*/
Expand Down
Loading

0 comments on commit acbb6d1

Please sign in to comment.