Skip to content

Commit

Permalink
refactor: Move resources from switchcontrolleracl to subdirectory acl…
Browse files Browse the repository at this point in the history
… of switchcontroller package (#6)

* refactor: moved resources from switchcontrolleracl to subdirectory acl of switchcontroller package

* chore: recreated language SDKs

---------

Co-authored-by: Thomas Meckel <tmeckel@users.noreply.github.com>
  • Loading branch information
tmeckel and tmeckel authored Mar 24, 2024
1 parent 1652bd5 commit be68b10
Show file tree
Hide file tree
Showing 34 changed files with 447 additions and 854 deletions.
514 changes: 257 additions & 257 deletions provider/cmd/pulumi-resource-fortios/schema.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions provider/resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ var module_overrides = map[string]string{
"switchcontrollerptp": "switchcontroller/ptp",
"switchcontrollerqos": "switchcontroller/qos",
"switchcontrollersecuritypolicy": "switchcontroller/securitypolicy",
"switchcontrolleracl": "switchcontroller/acl",
"routerbgp": "router/bgp",
"routerospf": "router/ospf",
"routerospf6": "router/ospf6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios.Switchcontrolleracl
namespace Pulumiverse.Fortios.Switchcontroller.Acl
{
/// <summary>
/// Configure ACL groups to be applied on managed FortiSwitch ports. Applies to FortiOS Version `&gt;= 7.4.0`.
Expand All @@ -18,20 +18,20 @@ namespace Pulumiverse.Fortios.Switchcontrolleracl
/// SwitchControllerAcl Group can be imported using any of these accepted formats:
///
/// ```sh
/// $ pulumi import fortios:switchcontrolleracl/group:Group labelname {{name}}
/// $ pulumi import fortios:switchcontroller/acl/group:Group labelname {{name}}
/// ```
///
/// If you do not want to import arguments of block:
///
/// $ export "FORTIOS_IMPORT_TABLE"="false"
///
/// ```sh
/// $ pulumi import fortios:switchcontrolleracl/group:Group labelname {{name}}
/// $ pulumi import fortios:switchcontroller/acl/group:Group labelname {{name}}
/// ```
///
/// $ unset "FORTIOS_IMPORT_TABLE"
/// </summary>
[FortiosResourceType("fortios:switchcontrolleracl/group:Group")]
[FortiosResourceType("fortios:switchcontroller/acl/group:Group")]
public partial class Group : global::Pulumi.CustomResource
{
/// <summary>
Expand Down Expand Up @@ -73,12 +73,12 @@ public partial class Group : global::Pulumi.CustomResource
/// <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 Group(string name, GroupArgs? args = null, CustomResourceOptions? options = null)
: base("fortios:switchcontrolleracl/group:Group", name, args ?? new GroupArgs(), MakeResourceOptions(options, ""))
: base("fortios:switchcontroller/acl/group:Group", name, args ?? new GroupArgs(), MakeResourceOptions(options, ""))
{
}

private Group(string name, Input<string> id, GroupState? state = null, CustomResourceOptions? options = null)
: base("fortios:switchcontrolleracl/group:Group", name, state, MakeResourceOptions(options, id))
: base("fortios:switchcontroller/acl/group:Group", name, state, MakeResourceOptions(options, id))
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios.Switchcontrolleracl
namespace Pulumiverse.Fortios.Switchcontroller.Acl
{
/// <summary>
/// Configure ingress ACL policies to be applied on managed FortiSwitch ports. Applies to FortiOS Version `&gt;= 7.4.0`.
Expand All @@ -18,20 +18,20 @@ namespace Pulumiverse.Fortios.Switchcontrolleracl
/// SwitchControllerAcl Ingress can be imported using any of these accepted formats:
///
/// ```sh
/// $ pulumi import fortios:switchcontrolleracl/ingress:Ingress labelname {{fosid}}
/// $ pulumi import fortios:switchcontroller/acl/ingress:Ingress labelname {{fosid}}
/// ```
///
/// If you do not want to import arguments of block:
///
/// $ export "FORTIOS_IMPORT_TABLE"="false"
///
/// ```sh
/// $ pulumi import fortios:switchcontrolleracl/ingress:Ingress labelname {{fosid}}
/// $ pulumi import fortios:switchcontroller/acl/ingress:Ingress labelname {{fosid}}
/// ```
///
/// $ unset "FORTIOS_IMPORT_TABLE"
/// </summary>
[FortiosResourceType("fortios:switchcontrolleracl/ingress:Ingress")]
[FortiosResourceType("fortios:switchcontroller/acl/ingress:Ingress")]
public partial class Ingress : global::Pulumi.CustomResource
{
/// <summary>
Expand Down Expand Up @@ -79,12 +79,12 @@ public partial class Ingress : global::Pulumi.CustomResource
/// <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 Ingress(string name, IngressArgs? args = null, CustomResourceOptions? options = null)
: base("fortios:switchcontrolleracl/ingress:Ingress", name, args ?? new IngressArgs(), MakeResourceOptions(options, ""))
: base("fortios:switchcontroller/acl/ingress:Ingress", name, args ?? new IngressArgs(), MakeResourceOptions(options, ""))
{
}

private Ingress(string name, Input<string> id, IngressState? state = null, CustomResourceOptions? options = null)
: base("fortios:switchcontrolleracl/ingress:Ingress", name, state, MakeResourceOptions(options, id))
: base("fortios:switchcontroller/acl/ingress:Ingress", name, state, MakeResourceOptions(options, id))
{
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios.Switchcontrolleracl.Inputs
namespace Pulumiverse.Fortios.Switchcontroller.Acl.Inputs
{

public sealed class GroupIngressArgs : global::Pulumi.ResourceArgs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios.Switchcontrolleracl.Inputs
namespace Pulumiverse.Fortios.Switchcontroller.Acl.Inputs
{

public sealed class GroupIngressGetArgs : global::Pulumi.ResourceArgs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios.Switchcontrolleracl.Inputs
namespace Pulumiverse.Fortios.Switchcontroller.Acl.Inputs
{

public sealed class IngressActionArgs : global::Pulumi.ResourceArgs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios.Switchcontrolleracl.Inputs
namespace Pulumiverse.Fortios.Switchcontroller.Acl.Inputs
{

public sealed class IngressActionGetArgs : global::Pulumi.ResourceArgs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios.Switchcontrolleracl.Inputs
namespace Pulumiverse.Fortios.Switchcontroller.Acl.Inputs
{

public sealed class IngressClassifierArgs : global::Pulumi.ResourceArgs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios.Switchcontrolleracl.Inputs
namespace Pulumiverse.Fortios.Switchcontroller.Acl.Inputs
{

public sealed class IngressClassifierGetArgs : global::Pulumi.ResourceArgs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios.Switchcontrolleracl.Outputs
namespace Pulumiverse.Fortios.Switchcontroller.Acl.Outputs
{

[OutputType]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios.Switchcontrolleracl.Outputs
namespace Pulumiverse.Fortios.Switchcontroller.Acl.Outputs
{

[OutputType]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using Pulumi.Serialization;
using Pulumi;

namespace Pulumiverse.Fortios.Switchcontrolleracl.Outputs
namespace Pulumiverse.Fortios.Switchcontroller.Acl.Outputs
{

[OutputType]
Expand Down
File renamed without changes.

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

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

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

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

2 changes: 0 additions & 2 deletions sdk/nodejs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ import * as report from "./report";
import * as router from "./router";
import * as rule from "./rule";
import * as switchcontroller from "./switchcontroller";
import * as switchcontrolleracl from "./switchcontrolleracl";
import * as system from "./system";
import * as types from "./types";
import * as user from "./user";
Expand Down Expand Up @@ -87,7 +86,6 @@ export {
router,
rule,
switchcontroller,
switchcontrolleracl,
system,
types,
user,
Expand Down
Loading

0 comments on commit be68b10

Please sign in to comment.