private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:compute/v20160430preview:Disk" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20170330:Disk" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20180401:Disk" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20180601:Disk" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20180930:Disk" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20190301:Disk" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20190701:Disk" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20191101:Disk" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20200501:Disk" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20200630:Disk" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20200930:Disk" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:cdn/v20150601:Profile" }, new Pulumi.Alias { Type = "azure-nextgen:cdn/v20160402:Profile" }, new Pulumi.Alias { Type = "azure-nextgen:cdn/v20161002:Profile" }, new Pulumi.Alias { Type = "azure-nextgen:cdn/v20170402:Profile" }, new Pulumi.Alias { Type = "azure-nextgen:cdn/v20171012:Profile" }, new Pulumi.Alias { Type = "azure-nextgen:cdn/v20190415:Profile" }, new Pulumi.Alias { Type = "azure-nextgen:cdn/v20190615:Profile" }, new Pulumi.Alias { Type = "azure-nextgen:cdn/v20190615preview:Profile" }, new Pulumi.Alias { Type = "azure-nextgen:cdn/v20191231:Profile" }, new Pulumi.Alias { Type = "azure-nextgen:cdn/v20200331:Profile" }, new Pulumi.Alias { Type = "azure-nextgen:cdn/v20200415:Profile" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:batch/latest:BatchAccount" }, new Pulumi.Alias { Type = "azure-nextgen:batch/v20151201:BatchAccount" }, new Pulumi.Alias { Type = "azure-nextgen:batch/v20170101:BatchAccount" }, new Pulumi.Alias { Type = "azure-nextgen:batch/v20170501:BatchAccount" }, new Pulumi.Alias { Type = "azure-nextgen:batch/v20170901:BatchAccount" }, new Pulumi.Alias { Type = "azure-nextgen:batch/v20181201:BatchAccount" }, new Pulumi.Alias { Type = "azure-nextgen:batch/v20190401:BatchAccount" }, new Pulumi.Alias { Type = "azure-nextgen:batch/v20190801:BatchAccount" }, new Pulumi.Alias { Type = "azure-nextgen:batch/v20200301:BatchAccount" }, new Pulumi.Alias { Type = "azure-nextgen:batch/v20200501:BatchAccount" }, new Pulumi.Alias { Type = "azure-nextgen:batch/v20210101:BatchAccount" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:authorization/latest:PolicyAssignment" }, new Pulumi.Alias { Type = "azure-nextgen:authorization/v20151001preview:PolicyAssignment" }, new Pulumi.Alias { Type = "azure-nextgen:authorization/v20151101:PolicyAssignment" }, new Pulumi.Alias { Type = "azure-nextgen:authorization/v20160401:PolicyAssignment" }, new Pulumi.Alias { Type = "azure-nextgen:authorization/v20161201:PolicyAssignment" }, new Pulumi.Alias { Type = "azure-nextgen:authorization/v20170601preview:PolicyAssignment" }, new Pulumi.Alias { Type = "azure-nextgen:authorization/v20180301:PolicyAssignment" }, new Pulumi.Alias { Type = "azure-nextgen:authorization/v20190101:PolicyAssignment" }, new Pulumi.Alias { Type = "azure-nextgen:authorization/v20190601:PolicyAssignment" }, new Pulumi.Alias { Type = "azure-nextgen:authorization/v20190901:PolicyAssignment" }, new Pulumi.Alias { Type = "azure-nextgen:authorization/v20200301:PolicyAssignment" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:network/latest:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20150501preview:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20150615:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20160330:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20160601:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20160901:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20161201:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20170301:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20170601:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20170801:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20170901:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20171001:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20171101:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20180101:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20180201:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20180401:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20180601:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20180701:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20180801:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20181001:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20181101:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20181201:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20190201:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20190401:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20190601:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20190701:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20190801:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20190901:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20191101:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20191201:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20200401:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20200501:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20200601:PublicIPAddress"}, new Pulumi.Alias { Type = "azure-nextgen:network/v20200701:PublicIPAddress"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return merged; }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:devtestlab/v20160515:Secret"}, new Pulumi.Alias { Type = "azure-nextgen:devtestlab/v20180915:Secret"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return merged; }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, AdditionalSecretOutputs = { "bar", }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions?MakeOptions(CustomResourceOptions?options) { var extraOptions = new CustomResourceOptions { Aliases = { new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1:Role" }, new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1alpha1:Role" }, } }; return(CustomResourceOptions.Merge(options, extraOptions)); }
private static CustomResourceOptions?MakeOptions(CustomResourceOptions?options) { var extraOptions = new CustomResourceOptions { Aliases = { new Alias { Type = "kubernetes:apps/v1:ControllerRevision" }, new Alias { Type = "kubernetes:apps/v1beta2:ControllerRevision" }, } }; return(CustomResourceOptions.Merge(options, extraOptions)); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:insights/latest:Workbook"}, new Pulumi.Alias { Type = "azure-nextgen:insights/v20150501:Workbook"}, new Pulumi.Alias { Type = "azure-nextgen:insights/v20180617preview:Workbook"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return merged; }
private static CustomResourceOptions?MakeOptions(CustomResourceOptions?options) { var extraOptions = new CustomResourceOptions { Aliases = { new Alias { Type = "kubernetes:scheduling.k8s.io/v1:PriorityClass" }, new Alias { Type = "kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass" }, } }; return(CustomResourceOptions.Merge(options, extraOptions)); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:apimanagement:DiagnosticLogger"}, new Pulumi.Alias { Type = "azure-nextgen:apimanagement/latest:DiagnosticLogger"}, new Pulumi.Alias { Type = "azure-nextgen:apimanagement/v20170301:DiagnosticLogger"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return merged; }
public TransformationsStack() : base(new StackOptions { ResourceTransformations = { Scenario3 } }) { // Scenario #1 - apply a transformation to a CustomResource var res1 = new RandomString("res1", new RandomStringArgs { Length = 5 }, new CustomResourceOptions { ResourceTransformations = { args => { var options = CustomResourceOptions.Merge( (CustomResourceOptions)args.Options, new CustomResourceOptions { AdditionalSecretOutputs = { "length" } }); return(new ResourceTransformationResult(args.Args, options)); } } }); // Scenario #2 - apply a transformation to a Component to transform its children var res2 = new MyComponent("res2", new ComponentResourceOptions { ResourceTransformations = { args => { if (args.Resource.GetResourceType() == RandomStringType && args.Args is RandomStringArgs oldArgs) { var resultArgs = new RandomStringArgs { Length = oldArgs.Length, MinUpper = 2 }; var resultOpts = CustomResourceOptions.Merge((CustomResourceOptions)args.Options, new CustomResourceOptions { AdditionalSecretOutputs = { "length"} }); return(new ResourceTransformationResult(resultArgs, resultOpts)); } return(null); } } });
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:network/latest:VpnServerConfiguration" }, new Pulumi.Alias { Type = "azure-nextgen:network/v20190801:VpnServerConfiguration" }, new Pulumi.Alias { Type = "azure-nextgen:network/v20190901:VpnServerConfiguration" }, new Pulumi.Alias { Type = "azure-nextgen:network/v20191201:VpnServerConfiguration" }, new Pulumi.Alias { Type = "azure-nextgen:network/v20200301:VpnServerConfiguration" }, new Pulumi.Alias { Type = "azure-nextgen:network/v20200401:VpnServerConfiguration" }, new Pulumi.Alias { Type = "azure-nextgen:network/v20200501:VpnServerConfiguration" }, new Pulumi.Alias { Type = "azure-nextgen:network/v20200601:VpnServerConfiguration" }, new Pulumi.Alias { Type = "azure-nextgen:network/v20200701:VpnServerConfiguration" }, new Pulumi.Alias { Type = "azure-nextgen:network/v20200801:VpnServerConfiguration" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:resources/latest:DeploymentAtSubscriptionScope" }, new Pulumi.Alias { Type = "azure-nextgen:resources/v20180501:DeploymentAtSubscriptionScope" }, new Pulumi.Alias { Type = "azure-nextgen:resources/v20190501:DeploymentAtSubscriptionScope" }, new Pulumi.Alias { Type = "azure-nextgen:resources/v20190510:DeploymentAtSubscriptionScope" }, new Pulumi.Alias { Type = "azure-nextgen:resources/v20190701:DeploymentAtSubscriptionScope" }, new Pulumi.Alias { Type = "azure-nextgen:resources/v20190801:DeploymentAtSubscriptionScope" }, new Pulumi.Alias { Type = "azure-nextgen:resources/v20191001:DeploymentAtSubscriptionScope" }, new Pulumi.Alias { Type = "azure-nextgen:resources/v20200601:DeploymentAtSubscriptionScope" }, new Pulumi.Alias { Type = "azure-nextgen:resources/v20200801:DeploymentAtSubscriptionScope" }, new Pulumi.Alias { Type = "azure-nextgen:resources/v20201001:DeploymentAtSubscriptionScope" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:storagesync/latest:StorageSyncService" }, new Pulumi.Alias { Type = "azure-nextgen:storagesync/v20170605preview:StorageSyncService" }, new Pulumi.Alias { Type = "azure-nextgen:storagesync/v20180402:StorageSyncService" }, new Pulumi.Alias { Type = "azure-nextgen:storagesync/v20180701:StorageSyncService" }, new Pulumi.Alias { Type = "azure-nextgen:storagesync/v20181001:StorageSyncService" }, new Pulumi.Alias { Type = "azure-nextgen:storagesync/v20190201:StorageSyncService" }, new Pulumi.Alias { Type = "azure-nextgen:storagesync/v20190301:StorageSyncService" }, new Pulumi.Alias { Type = "azure-nextgen:storagesync/v20190601:StorageSyncService" }, new Pulumi.Alias { Type = "azure-nextgen:storagesync/v20191001:StorageSyncService" }, new Pulumi.Alias { Type = "azure-nextgen:storagesync/v20200901:StorageSyncService" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:apimanagement:ApiManagementService" }, new Pulumi.Alias { Type = "azure-nextgen:apimanagement/latest:ApiManagementService" }, new Pulumi.Alias { Type = "azure-nextgen:apimanagement/v20160707:ApiManagementService" }, new Pulumi.Alias { Type = "azure-nextgen:apimanagement/v20161010:ApiManagementService" }, new Pulumi.Alias { Type = "azure-nextgen:apimanagement/v20170301:ApiManagementService" }, new Pulumi.Alias { Type = "azure-nextgen:apimanagement/v20180101:ApiManagementService" }, new Pulumi.Alias { Type = "azure-nextgen:apimanagement/v20180601preview:ApiManagementService" }, new Pulumi.Alias { Type = "azure-nextgen:apimanagement/v20191201:ApiManagementService" }, new Pulumi.Alias { Type = "azure-nextgen:apimanagement/v20191201preview:ApiManagementService" }, new Pulumi.Alias { Type = "azure-nextgen:apimanagement/v20200601preview:ApiManagementService" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:compute/latest:VirtualMachineScaleSetExtension" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20170330:VirtualMachineScaleSetExtension" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20171201:VirtualMachineScaleSetExtension" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20180401:VirtualMachineScaleSetExtension" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20181001:VirtualMachineScaleSetExtension" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20190301:VirtualMachineScaleSetExtension" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20190701:VirtualMachineScaleSetExtension" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20191201:VirtualMachineScaleSetExtension" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20200601:VirtualMachineScaleSetExtension" }, new Pulumi.Alias { Type = "azure-nextgen:compute/v20201201:VirtualMachineScaleSetExtension" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:storsimple/v20161001:StorageDomain" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Alias { Type = "aws:elasticloadbalancing/sslNegotiationPolicy:SslNegotiationPolicy" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:containerregistry/v20201101preview:PrivateEndpointConnection" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:softwareplan/v20190601preview:HybridUseBenefit" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:domainregistration/latest:DomainOwnershipIdentifier"}, new Pulumi.Alias { Type = "azure-nextgen:domainregistration/v20150401:DomainOwnershipIdentifier"}, new Pulumi.Alias { Type = "azure-nextgen:domainregistration/v20180201:DomainOwnershipIdentifier"}, new Pulumi.Alias { Type = "azure-nextgen:domainregistration/v20190801:DomainOwnershipIdentifier"}, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return merged; }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Alias { Type = "aws:applicationloadbalancing/targetGroupAttachment:TargetGroupAttachment" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure:trafficmanager/endpoint:Endpoint" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:deploymentmanager/v20191101preview:ServiceTopology" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "kubernetes:batch/v2alpha1:CronJob" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Pulumi.Alias { Type = "azure-nextgen:authorization/latest:ManagementLockByScope" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions?options, Input <string>?id) { var defaultOptions = new CustomResourceOptions { Version = Utilities.Version, Aliases = { new Alias { Type = "azure:eventhub/eventSubscription:EventSubscription" }, }, }; var merged = CustomResourceOptions.Merge(defaultOptions, options); // Override the ID if one was specified for consistency with other language SDKs. merged.Id = id ?? merged.Id; return(merged); }