From eae13187faec893cc5ef1b4891542fe43091beaa Mon Sep 17 00:00:00 2001 From: Ian Wahbe Date: Tue, 6 Aug 2024 01:10:51 -0700 Subject: [PATCH] Upgrade terraform-provider-meraki to v0.2.10-alpha (#138) * make tfgen * make build_sdks --- .github/workflows/publish.yml | 6 +-- .pulumi-java-gen.version | 2 +- ...tch-vlan-profiles-to-be-non-computed.patch | 2 +- .../bridge-metadata.json | 3 ++ .../cmd/pulumi-resource-meraki/schema.json | 32 +++++++++++-- provider/go.mod | 2 +- provider/go.sum | 4 +- ...irelessRadioSettingsFiveGhzSettingsArgs.cs | 2 +- ...lessRadioSettingsFiveGhzSettingsGetArgs.cs | 2 +- ...sRadioSettingsItemFiveGhzSettingsResult.cs | 4 +- .../WirelessRadioSettingsFiveGhzSettings.cs | 4 +- .../EarlyAccessFeaturesOptIns.cs | 30 ++++++++++++ .../Outputs/GetDevicesItemResult.cs | 4 +- sdk/dotnet/Outputs/GetDevicesItemResult.cs | 4 +- sdk/go/meraki/devices/pulumiTypes.go | 30 ++++++------ .../earlyAccessFeaturesOptIns.go | 15 ++++++ sdk/go/meraki/organizations/pulumiTypes.go | 8 ++-- sdk/go/meraki/pulumiTypes.go | 8 ++-- sdk/java/build.gradle | 5 +- .../main/java/com/pulumi/meraki/Provider.java | 9 +++- ...icensingSubscriptionSubscriptionsBind.java | 9 +++- ...censingSubscriptionSubscriptionsClaim.java | 9 +++- ...criptionSubscriptionsClaimKeyValidate.java | 9 +++- .../devices/ApplianceRadioSettings.java | 11 ++++- .../devices/ApplianceUplinksSettings.java | 9 +++- .../ApplianceVmxAuthenticationToken.java | 9 +++- .../java/com/pulumi/meraki/devices/Base.java | 9 +++- .../com/pulumi/meraki/devices/BlinkLeds.java | 9 +++- .../meraki/devices/CameraCustomAnalytics.java | 9 +++- .../devices/CameraGenerateSnapshot.java | 9 +++- .../devices/CameraQualityAndRetention.java | 9 +++- .../pulumi/meraki/devices/CameraSense.java | 9 +++- .../meraki/devices/CameraVideoSettings.java | 9 +++- .../devices/CameraWirelessProfiles.java | 9 +++- .../meraki/devices/CellularGatewayLan.java | 9 +++- .../CellularGatewayPortForwardingRules.java | 9 +++- .../pulumi/meraki/devices/CellularSims.java | 9 +++- .../meraki/devices/LiveToolsArpTable.java | 9 +++- .../pulumi/meraki/devices/LiveToolsCable.java | 9 +++- .../pulumi/meraki/devices/LiveToolsPing.java | 9 +++- .../meraki/devices/LiveToolsPingDevice.java | 9 +++- .../devices/LiveToolsThroughputTest.java | 9 +++- .../meraki/devices/LiveToolsWakeOnLan.java | 9 +++- .../meraki/devices/ManagementInterface.java | 9 +++- .../meraki/devices/SensorRelationships.java | 9 +++- .../pulumi/meraki/devices/SwitchPorts.java | 9 +++- .../meraki/devices/SwitchPortsCycle.java | 9 +++- .../devices/SwitchRoutingInterfaces.java | 9 +++- .../devices/SwitchRoutingInterfacesDhcp.java | 9 +++- .../devices/SwitchRoutingStaticRoutes.java | 9 +++- .../meraki/devices/SwitchWarmSpare.java | 9 +++- ...elessAlternateManagementInterfaceIpv6.java | 9 +++- .../devices/WirelessBluetoothSettings.java | 9 +++- .../meraki/devices/WirelessRadioSettings.java | 9 +++- ...elessRadioSettingsFiveGhzSettingsArgs.java | 9 ++-- ...elessRadioSettingsItemFiveGhzSettings.java | 9 ++-- .../WirelessRadioSettingsFiveGhzSettings.java | 9 ++-- .../meraki/networks/AlertsSettings.java | 9 +++- ...nceConnectivityMonitoringDestinations.java | 9 +++- .../networks/ApplianceContentFiltering.java | 9 +++- ...pplianceFirewallCellularFirewallRules.java | 9 +++- .../ApplianceFirewallFirewalledServices.java | 9 +++- ...ApplianceFirewallInboundFirewallRules.java | 9 +++- .../ApplianceFirewallL3FirewallRules.java | 9 +++- .../ApplianceFirewallL7FirewallRules.java | 9 +++- .../ApplianceFirewallOneToManyNatRules.java | 9 +++- .../ApplianceFirewallOneToOneNatRules.java | 9 +++- .../ApplianceFirewallPortForwardingRules.java | 9 +++- .../networks/ApplianceFirewallSettings.java | 9 +++- .../meraki/networks/AppliancePorts.java | 9 +++- .../AppliancePrefixesDelegatedStatics.java | 9 +++- .../meraki/networks/ApplianceRfProfiles.java | 9 +++- .../networks/ApplianceSecurityIntrusion.java | 9 +++- .../networks/ApplianceSecurityMalware.java | 9 +++- .../meraki/networks/ApplianceSettings.java | 9 +++- .../meraki/networks/ApplianceSingleLan.java | 9 +++- .../meraki/networks/ApplianceSsids.java | 9 +++- .../networks/ApplianceTrafficShaping.java | 9 +++- ...rafficShapingCustomPerformanceClasses.java | 9 +++- .../ApplianceTrafficShapingRules.java | 9 +++- ...pplianceTrafficShapingUplinkBandwidth.java | 9 +++- ...pplianceTrafficShapingUplinkSelection.java | 9 +++- .../ApplianceTrafficShapingVpnExclusions.java | 9 +++- .../meraki/networks/ApplianceVlans.java | 9 +++- .../networks/ApplianceVlansSettings.java | 9 +++- .../meraki/networks/ApplianceVpnBgp.java | 9 +++- .../networks/ApplianceVpnSiteToSiteVpn.java | 9 +++- .../meraki/networks/ApplianceWarmSpare.java | 9 +++- .../networks/ApplianceWarmSpareSwap.java | 9 +++- .../java/com/pulumi/meraki/networks/Base.java | 9 +++- .../java/com/pulumi/meraki/networks/Bind.java | 9 +++- .../CameraQualityRetentionProfiles.java | 9 +++- .../networks/CameraWirelessProfiles.java | 9 +++- ...wayConnectivityMonitoringDestinations.java | 9 +++- .../meraki/networks/CellularGatewayDhcp.java | 9 +++- .../networks/CellularGatewaySubnetPool.java | 9 +++- .../networks/CellularGatewayUplink.java | 9 +++- .../pulumi/meraki/networks/ClientsPolicy.java | 9 +++- .../meraki/networks/ClientsProvision.java | 9 +++- .../ClientsSplashAuthorizationStatus.java | 9 +++- .../pulumi/meraki/networks/DevicesClaim.java | 9 +++- .../meraki/networks/DevicesClaimVmx.java | 9 +++- .../pulumi/meraki/networks/DevicesRemove.java | 9 +++- .../meraki/networks/FirmwareUpgrades.java | 9 +++- .../networks/FirmwareUpgradesRollbacks.java | 9 +++- .../FirmwareUpgradesStagedEvents.java | 9 +++- .../FirmwareUpgradesStagedEventsDefer.java | 9 +++- ...FirmwareUpgradesStagedEventsRollbacks.java | 9 +++- .../FirmwareUpgradesStagedGroups.java | 9 +++- .../FirmwareUpgradesStagedStages.java | 9 +++- .../pulumi/meraki/networks/FloorPlans.java | 9 +++- .../pulumi/meraki/networks/GroupPolicies.java | 9 +++- .../meraki/networks/MerakiAuthUsers.java | 9 +++- .../pulumi/meraki/networks/MqttBrokers.java | 9 +++- .../com/pulumi/meraki/networks/Netflow.java | 9 +++- .../meraki/networks/PiiRequestsDelete.java | 9 +++- .../meraki/networks/SensorAlertsProfiles.java | 9 +++- .../meraki/networks/SensorMqttBrokers.java | 9 +++- .../com/pulumi/meraki/networks/Settings.java | 9 +++- .../SmBypassActivationLockAttempts.java | 9 +++- .../meraki/networks/SmDevicesCheckin.java | 9 +++- .../meraki/networks/SmDevicesFields.java | 9 +++- .../meraki/networks/SmDevicesInstallApps.java | 9 +++- .../pulumi/meraki/networks/SmDevicesLock.java | 9 +++- .../meraki/networks/SmDevicesModifyTags.java | 9 +++- .../pulumi/meraki/networks/SmDevicesMove.java | 9 +++- .../meraki/networks/SmDevicesReboot.java | 9 +++- .../networks/SmDevicesRefreshDetails.java | 9 +++- .../meraki/networks/SmDevicesShutdown.java | 9 +++- .../meraki/networks/SmDevicesUnenroll.java | 9 +++- .../networks/SmDevicesUninstallApps.java | 9 +++- .../pulumi/meraki/networks/SmDevicesWipe.java | 9 +++- .../meraki/networks/SmTargetGroups.java | 9 +++- .../networks/SmUserAccessDevicesDelete.java | 9 +++- .../java/com/pulumi/meraki/networks/Snmp.java | 9 +++- .../com/pulumi/meraki/networks/Split.java | 9 +++- .../networks/SwitchAccessControlLists.java | 9 +++- .../meraki/networks/SwitchAccessPolicies.java | 9 +++- .../SwitchAlternateManagementInterface.java | 9 +++- .../networks/SwitchDhcpServerPolicy.java | 9 +++- ...rverPolicyArpInspectionTrustedServers.java | 9 +++- .../networks/SwitchDscpToCosMappings.java | 9 +++- .../networks/SwitchLinkAggregations.java | 9 +++- .../com/pulumi/meraki/networks/SwitchMtu.java | 9 +++- .../meraki/networks/SwitchPortSchedules.java | 9 +++- .../meraki/networks/SwitchQosRulesOrder.java | 9 +++- .../networks/SwitchRoutingMulticast.java | 9 +++- ...witchRoutingMulticastRendezvousPoints.java | 9 +++- .../meraki/networks/SwitchRoutingOspf.java | 9 +++- .../meraki/networks/SwitchSettings.java | 9 +++- .../pulumi/meraki/networks/SwitchStacks.java | 9 +++- .../meraki/networks/SwitchStacksAdd.java | 9 +++- .../meraki/networks/SwitchStacksRemove.java | 9 +++- .../SwitchStacksRoutingInterfaces.java | 9 +++- .../SwitchStacksRoutingInterfacesDhcp.java | 9 +++- .../SwitchStacksRoutingStaticRoutes.java | 9 +++- .../meraki/networks/SwitchStormControl.java | 9 +++- .../com/pulumi/meraki/networks/SwitchStp.java | 9 +++- .../pulumi/meraki/networks/SyslogServers.java | 9 +++- .../meraki/networks/TrafficAnalysis.java | 9 +++- .../com/pulumi/meraki/networks/Unbind.java | 9 +++- .../pulumi/meraki/networks/VlanProfiles.java | 9 +++- .../VlanProfilesAssignmentsReassign.java | 9 +++- .../meraki/networks/WebhooksHttpServers.java | 9 +++- .../networks/WebhooksPayloadTemplates.java | 9 +++- .../WirelessAlternateManagementInterface.java | 9 +++- .../meraki/networks/WirelessBilling.java | 9 +++- .../networks/WirelessBluetoothSettings.java | 9 +++- .../WirelessEthernetPortsProfiles.java | 9 +++- .../WirelessEthernetPortsProfilesAssign.java | 9 +++- ...relessEthernetPortsProfilesSetDefault.java | 9 +++- .../meraki/networks/WirelessRfProfiles.java | 9 +++- .../meraki/networks/WirelessSettings.java | 9 +++- .../pulumi/meraki/networks/WirelessSsids.java | 9 +++- .../WirelessSsidsBonjourForwarding.java | 9 +++- .../WirelessSsidsDeviceTypeGroupPolicies.java | 9 +++- .../networks/WirelessSsidsEapOverride.java | 9 +++- .../WirelessSsidsFirewallL3FirewallRules.java | 9 +++- .../WirelessSsidsFirewallL7FirewallRules.java | 9 +++- .../networks/WirelessSsidsHotspot20.java | 9 +++- .../networks/WirelessSsidsIdentityPsks.java | 9 +++- .../networks/WirelessSsidsSchedules.java | 9 +++- .../networks/WirelessSsidsSplashSettings.java | 9 +++- .../WirelessSsidsTrafficShapingRules.java | 9 +++- .../meraki/networks/WirelessSsidsVpn.java | 9 +++- .../meraki/organizations/ActionBatches.java | 9 +++- .../organizations/AdaptivePolicyAcls.java | 9 +++- .../organizations/AdaptivePolicyGroups.java | 9 +++- .../organizations/AdaptivePolicyPolicies.java | 9 +++- .../organizations/AdaptivePolicySettings.java | 9 +++- .../pulumi/meraki/organizations/Admins.java | 9 +++- .../meraki/organizations/AlertsProfiles.java | 9 +++- .../ApplianceSecurityIntrusion.java | 9 +++- .../ApplianceVpnThirdPartyVpnpeers.java | 9 +++- .../ApplianceVpnVpnFirewallRules.java | 9 +++- .../com/pulumi/meraki/organizations/Base.java | 9 +++- .../organizations/BrandingPolicies.java | 9 +++- .../BrandingPoliciesPriorities.java | 9 +++- .../CameraCustomAnalyticsArtifacts.java | 9 +++- .../meraki/organizations/CameraRoles.java | 9 +++- .../pulumi/meraki/organizations/Claim.java | 9 +++- .../pulumi/meraki/organizations/Clone.java | 9 +++- .../meraki/organizations/ConfigTemplates.java | 9 +++- .../ConfigTemplatesSwitchProfilesPorts.java | 9 +++- .../EarlyAccessFeaturesOptIns.java | 23 ++++++++- .../EarlyAccessFeaturesOptInsArgs.java | 47 +++++++++++++++++++ .../InsightMonitoredMediaServers.java | 9 +++- .../meraki/organizations/InventoryClaim.java | 9 +++- ...OnboardingCloudMonitoringExportEvents.java | 9 +++- ...ntoryOnboardingCloudMonitoringImports.java | 9 +++- ...ntoryOnboardingCloudMonitoringPrepare.java | 9 +++- .../organizations/InventoryRelease.java | 9 +++- .../pulumi/meraki/organizations/Licenses.java | 9 +++- .../organizations/LicensesAssignSeats.java | 9 +++- .../meraki/organizations/LicensesMove.java | 9 +++- .../organizations/LicensesMoveSeats.java | 9 +++- .../organizations/LicensesRenewSeats.java | 9 +++- .../LicensingCotermLicensesMove.java | 9 +++- .../meraki/organizations/LoginSecurity.java | 9 +++- .../meraki/organizations/NetworksCombine.java | 9 +++- .../meraki/organizations/PolicyObjects.java | 9 +++- .../organizations/PolicyObjectsGroups.java | 9 +++- .../com/pulumi/meraki/organizations/Saml.java | 9 +++- .../pulumi/meraki/organizations/SamlIdps.java | 9 +++- .../meraki/organizations/SamlRoles.java | 9 +++- .../meraki/organizations/SmAdminsRoles.java | 9 +++- .../SmSentryPoliciesAssignments.java | 9 +++- .../com/pulumi/meraki/organizations/Snmp.java | 9 +++- .../organizations/SwitchDevicesClone.java | 9 +++- .../pulumi/meraki/organizations/Users.java | 9 +++- .../EarlyAccessFeaturesOptInsState.java | 47 +++++++++++++++++++ .../organizations/outputs/GetDevicesItem.java | 8 ++-- .../pulumi/meraki/outputs/GetDevicesItem.java | 8 ++-- .../earlyAccessFeaturesOptIns.ts | 14 ++++++ sdk/nodejs/types/input.ts | 2 +- sdk/nodejs/types/output.ts | 8 ++-- sdk/python/pulumi_meraki/devices/_inputs.py | 8 ++-- sdk/python/pulumi_meraki/devices/outputs.py | 10 ++-- .../early_access_features_opt_ins.py | 47 +++++++++++++++++++ .../pulumi_meraki/organizations/outputs.py | 6 +-- sdk/python/pulumi_meraki/outputs.py | 6 +-- upstream | 2 +- upstream.sh | 2 + 243 files changed, 1990 insertions(+), 298 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index dc8262a1..0749a240 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -78,12 +78,10 @@ jobs: shell: bash run: | # Get latest stable release. Return only first column from result (tag). - LAST_VERSION=$(gh release view --repo pulumi/pulumi-meraki --json tagName -q .tagName || echo "No stable release" ) + LAST_VERSION=$(gh release view --repo pulumi/pulumi-meraki --json tagName -q .tagName) { echo 'summary<> "$GITHUB_OUTPUT" - name: Upload Provider Binaries diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index d33c3a21..51de3305 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.12.0 \ No newline at end of file +0.13.0 \ No newline at end of file diff --git a/patches/0002-patch-vlan-profiles-to-be-non-computed.patch b/patches/0002-patch-vlan-profiles-to-be-non-computed.patch index 675a35e5..ec3573a9 100644 --- a/patches/0002-patch-vlan-profiles-to-be-non-computed.patch +++ b/patches/0002-patch-vlan-profiles-to-be-non-computed.patch @@ -5,7 +5,7 @@ Subject: [PATCH] patch vlan profiles to be non-computed diff --git a/internal/provider/resource_meraki_networks_vlan_profiles.go b/internal/provider/resource_meraki_networks_vlan_profiles.go -index ecb3f2d..250327c 100644 +index d622f59..f8e210e 100644 --- a/internal/provider/resource_meraki_networks_vlan_profiles.go +++ b/internal/provider/resource_meraki_networks_vlan_profiles.go @@ -152,7 +152,6 @@ func (r *NetworksVLANProfilesResource) Schema(_ context.Context, _ resource.Sche diff --git a/provider/cmd/pulumi-resource-meraki/bridge-metadata.json b/provider/cmd/pulumi-resource-meraki/bridge-metadata.json index 09a6905d..5f39f209 100644 --- a/provider/cmd/pulumi-resource-meraki/bridge-metadata.json +++ b/provider/cmd/pulumi-resource-meraki/bridge-metadata.json @@ -2668,6 +2668,9 @@ "fields": { "limit_scope_to_networks": { "maxItemsOne": false + }, + "limit_scope_to_networks_rs": { + "maxItemsOne": false } } }, diff --git a/provider/cmd/pulumi-resource-meraki/schema.json b/provider/cmd/pulumi-resource-meraki/schema.json index 5c6e1699..567d3ae8 100644 --- a/provider/cmd/pulumi-resource-meraki/schema.json +++ b/provider/cmd/pulumi-resource-meraki/schema.json @@ -3348,7 +3348,7 @@ "description": "Sets a manual channel for 5 GHz. Can be '36', '40', '44', '48', '52', '56', '60', '64', '100', '104', '108', '112', '116', '120', '124', '128', '132', '136', '140', '144', '149', '153', '157', '161', '165', '169', '173' or '177' or null for using auto channel.\n" }, "channelWidth": { - "type": "integer", + "type": "string", "description": "Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width.\n" }, "targetPower": { @@ -6876,7 +6876,7 @@ "type": "integer" }, "channelWidth": { - "type": "integer" + "type": "string" }, "targetPower": { "type": "integer" @@ -7014,7 +7014,7 @@ "description": "Firmware version of the device\n" }, "imei": { - "type": "string", + "type": "number", "description": "IMEI of the device, if applicable\n" }, "lanIp": { @@ -45554,7 +45554,7 @@ "description": "Firmware version of the device\n" }, "imei": { - "type": "string", + "type": "number", "description": "IMEI of the device, if applicable\n" }, "lanIp": { @@ -52371,7 +52371,7 @@ } }, "meraki:devices/applianceRadioSettings:ApplianceRadioSettings": { - "description": "~\u003eWarning: This resource does not represent a real-world entity in Meraki Dashboard, therefore changing or deleting this resource on its own has no immediate effect. Instead, it is a task part of a Meraki Dashboard workflow. It is executed in Meraki without any additional verification. It does not check if it was executed before or if a similar configuration or action \nalready existed previously.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.meraki.devices.ApplianceRadioSettings;\nimport com.pulumi.meraki.devices.ApplianceRadioSettingsArgs;\nimport com.pulumi.meraki.devices.inputs.ApplianceRadioSettingsFiveGhzSettingsArgs;\nimport com.pulumi.meraki.devices.inputs.ApplianceRadioSettingsTwoFourGhzSettingsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ApplianceRadioSettings(\"example\", ApplianceRadioSettingsArgs.builder()\n .fiveGhzSettings(ApplianceRadioSettingsFiveGhzSettingsArgs.builder()\n .channel(149)\n .channel_width(20)\n .target_power(15)\n .build())\n .rfProfileId(\"1234\")\n .serial(\"string\")\n .twoFourGhzSettings(ApplianceRadioSettingsTwoFourGhzSettingsArgs.builder()\n .channel(11)\n .target_power(21)\n .build())\n .build());\n\n ctx.export(\"merakiDevicesApplianceRadioSettingsExample\", example);\n }\n}\n```\n```yaml\nresources:\n example:\n type: meraki:devices:ApplianceRadioSettings\n properties:\n fiveGhzSettings:\n channel: 149\n channel_width: 20\n target_power: 15\n rfProfileId: '1234'\n serial: string\n twoFourGhzSettings:\n channel: 11\n target_power: 21\noutputs:\n merakiDevicesApplianceRadioSettingsExample: ${example}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import meraki:devices/applianceRadioSettings:ApplianceRadioSettings example \"serial\"\n```\n\n", + "description": "~\u003eWarning: This resource does not represent a real-world entity in Meraki Dashboard, therefore changing or deleting this resource on its own has no immediate effect. Instead, it is a task part of a Meraki Dashboard workflow. It is executed in Meraki without any additional verification. It does not check if it was executed before or if a similar configuration or action \nalready existed previously.\n\n## Example Usage\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.meraki.devices.ApplianceRadioSettings;\nimport com.pulumi.meraki.devices.ApplianceRadioSettingsArgs;\nimport com.pulumi.meraki.devices.inputs.ApplianceRadioSettingsFiveGhzSettingsArgs;\nimport com.pulumi.meraki.devices.inputs.ApplianceRadioSettingsTwoFourGhzSettingsArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var example = new ApplianceRadioSettings(\"example\", ApplianceRadioSettingsArgs.builder()\n .fiveGhzSettings(ApplianceRadioSettingsFiveGhzSettingsArgs.builder()\n .channel(149)\n .channel_width(\"20\")\n .target_power(15)\n .build())\n .rfProfileId(\"1234\")\n .serial(\"string\")\n .twoFourGhzSettings(ApplianceRadioSettingsTwoFourGhzSettingsArgs.builder()\n .channel(11)\n .target_power(21)\n .build())\n .build());\n\n ctx.export(\"merakiDevicesApplianceRadioSettingsExample\", example);\n }\n}\n```\n```yaml\nresources:\n example:\n type: meraki:devices:ApplianceRadioSettings\n properties:\n fiveGhzSettings:\n channel: 149\n channel_width: '20'\n target_power: 15\n rfProfileId: '1234'\n serial: string\n twoFourGhzSettings:\n channel: 11\n target_power: 21\noutputs:\n merakiDevicesApplianceRadioSettingsExample: ${example}\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n```sh\n$ pulumi import meraki:devices/applianceRadioSettings:ApplianceRadioSettings example \"serial\"\n```\n\n", "properties": { "fiveGhzSettings": { "$ref": "#/types/meraki:devices/ApplianceRadioSettingsFiveGhzSettings:ApplianceRadioSettingsFiveGhzSettings", @@ -69605,6 +69605,13 @@ }, "description": "Networks assigned to the Early Access Feature\n" }, + "limitScopeToNetworksRs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Networks assigned to the Early Access Feature\n" + }, "optInId": { "type": "string", "description": "optInId path parameter. Opt in ID\n" @@ -69621,6 +69628,7 @@ "required": [ "createdAt", "limitScopeToNetworks", + "limitScopeToNetworksRs", "organizationId", "shortName" ], @@ -69632,6 +69640,13 @@ }, "description": "Networks assigned to the Early Access Feature\n" }, + "limitScopeToNetworksRs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Networks assigned to the Early Access Feature\n" + }, "optInId": { "type": "string", "description": "optInId path parameter. Opt in ID\n" @@ -69662,6 +69677,13 @@ }, "description": "Networks assigned to the Early Access Feature\n" }, + "limitScopeToNetworksRs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Networks assigned to the Early Access Feature\n" + }, "optInId": { "type": "string", "description": "optInId path parameter. Opt in ID\n" diff --git a/provider/go.mod b/provider/go.mod index c893f505..018ce149 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -139,7 +139,7 @@ require ( github.com/mattn/go-isatty v0.0.20 // indirect github.com/mattn/go-localereader v0.0.1 // indirect github.com/mattn/go-runewidth v0.0.15 // indirect - github.com/meraki/dashboard-api-go/v3 v3.0.7 // indirect + github.com/meraki/dashboard-api-go/v3 v3.0.9 // indirect github.com/mitchellh/cli v1.1.5 // indirect github.com/mitchellh/copystructure v1.2.0 // indirect github.com/mitchellh/go-homedir v1.1.0 // indirect diff --git a/provider/go.sum b/provider/go.sum index 683ca7a5..c30784c6 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -664,8 +664,8 @@ github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzp github.com/mattn/go-runewidth v0.0.12/go.mod h1:RAqKPSqVFrSLVXbA8x7dzmKdmGzieGRCM46jaSJTDAk= github.com/mattn/go-runewidth v0.0.15 h1:UNAjwbU9l54TA3KzvqLGxwWjHmMgBUVhBiTjelZgg3U= github.com/mattn/go-runewidth v0.0.15/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w= -github.com/meraki/dashboard-api-go/v3 v3.0.7 h1:B7P36Wb3R3MC4Aus1CzJo4AYtiEl5dP1EQgI7uDz8mY= -github.com/meraki/dashboard-api-go/v3 v3.0.7/go.mod h1:ngZmCzPKto29KbttUw7ibrLc+5RHHBKihYFkWFrL1zE= +github.com/meraki/dashboard-api-go/v3 v3.0.9 h1:l3VIHu+0Jy1GysHe2sSLxp+wVhY6EB2Ng3e8/ygVBXE= +github.com/meraki/dashboard-api-go/v3 v3.0.9/go.mod h1:ngZmCzPKto29KbttUw7ibrLc+5RHHBKihYFkWFrL1zE= github.com/mitchellh/cli v1.1.5 h1:OxRIeJXpAMztws/XHlN2vu6imG5Dpq+j61AzAX5fLng= github.com/mitchellh/cli v1.1.5/go.mod h1:v8+iFts2sPIKUV1ltktPXMCC8fumSKFItNcD2cLtRR4= github.com/mitchellh/copystructure v1.0.0/go.mod h1:SNtv71yrdKgLRyLFxmLdkAbkKEFWgYaq1OVrnRcwhnw= diff --git a/sdk/dotnet/Devices/Inputs/WirelessRadioSettingsFiveGhzSettingsArgs.cs b/sdk/dotnet/Devices/Inputs/WirelessRadioSettingsFiveGhzSettingsArgs.cs index 73542aff..f194a7d7 100644 --- a/sdk/dotnet/Devices/Inputs/WirelessRadioSettingsFiveGhzSettingsArgs.cs +++ b/sdk/dotnet/Devices/Inputs/WirelessRadioSettingsFiveGhzSettingsArgs.cs @@ -22,7 +22,7 @@ public sealed class WirelessRadioSettingsFiveGhzSettingsArgs : global::Pulumi.Re /// Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. /// [Input("channelWidth")] - public Input? ChannelWidth { get; set; } + public Input? ChannelWidth { get; set; } /// /// Set a manual target power for 5 GHz. Can be between '8' or '30' or null for using auto power range. diff --git a/sdk/dotnet/Devices/Inputs/WirelessRadioSettingsFiveGhzSettingsGetArgs.cs b/sdk/dotnet/Devices/Inputs/WirelessRadioSettingsFiveGhzSettingsGetArgs.cs index fb709b58..939838e8 100644 --- a/sdk/dotnet/Devices/Inputs/WirelessRadioSettingsFiveGhzSettingsGetArgs.cs +++ b/sdk/dotnet/Devices/Inputs/WirelessRadioSettingsFiveGhzSettingsGetArgs.cs @@ -22,7 +22,7 @@ public sealed class WirelessRadioSettingsFiveGhzSettingsGetArgs : global::Pulumi /// Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. /// [Input("channelWidth")] - public Input? ChannelWidth { get; set; } + public Input? ChannelWidth { get; set; } /// /// Set a manual target power for 5 GHz. Can be between '8' or '30' or null for using auto power range. diff --git a/sdk/dotnet/Devices/Outputs/GetWirelessRadioSettingsItemFiveGhzSettingsResult.cs b/sdk/dotnet/Devices/Outputs/GetWirelessRadioSettingsItemFiveGhzSettingsResult.cs index 57df5427..d02697cc 100644 --- a/sdk/dotnet/Devices/Outputs/GetWirelessRadioSettingsItemFiveGhzSettingsResult.cs +++ b/sdk/dotnet/Devices/Outputs/GetWirelessRadioSettingsItemFiveGhzSettingsResult.cs @@ -14,14 +14,14 @@ namespace Pulumi.Meraki.Devices.Outputs public sealed class GetWirelessRadioSettingsItemFiveGhzSettingsResult { public readonly int Channel; - public readonly int ChannelWidth; + public readonly string ChannelWidth; public readonly int TargetPower; [OutputConstructor] private GetWirelessRadioSettingsItemFiveGhzSettingsResult( int channel, - int channelWidth, + string channelWidth, int targetPower) { diff --git a/sdk/dotnet/Devices/Outputs/WirelessRadioSettingsFiveGhzSettings.cs b/sdk/dotnet/Devices/Outputs/WirelessRadioSettingsFiveGhzSettings.cs index 86569a6d..7242d9d7 100644 --- a/sdk/dotnet/Devices/Outputs/WirelessRadioSettingsFiveGhzSettings.cs +++ b/sdk/dotnet/Devices/Outputs/WirelessRadioSettingsFiveGhzSettings.cs @@ -20,7 +20,7 @@ public sealed class WirelessRadioSettingsFiveGhzSettings /// /// Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. /// - public readonly int? ChannelWidth; + public readonly string? ChannelWidth; /// /// Set a manual target power for 5 GHz. Can be between '8' or '30' or null for using auto power range. /// @@ -30,7 +30,7 @@ public sealed class WirelessRadioSettingsFiveGhzSettings private WirelessRadioSettingsFiveGhzSettings( int? channel, - int? channelWidth, + string? channelWidth, int? targetPower) { diff --git a/sdk/dotnet/Organizations/EarlyAccessFeaturesOptIns.cs b/sdk/dotnet/Organizations/EarlyAccessFeaturesOptIns.cs index 3e10f3b1..a7372db1 100644 --- a/sdk/dotnet/Organizations/EarlyAccessFeaturesOptIns.cs +++ b/sdk/dotnet/Organizations/EarlyAccessFeaturesOptIns.cs @@ -58,6 +58,12 @@ public partial class EarlyAccessFeaturesOptIns : global::Pulumi.CustomResource [Output("limitScopeToNetworks")] public Output> LimitScopeToNetworks { get; private set; } = null!; + /// + /// Networks assigned to the Early Access Feature + /// + [Output("limitScopeToNetworksRs")] + public Output> LimitScopeToNetworksRs { get; private set; } = null!; + /// /// optInId path parameter. Opt in ID /// @@ -135,6 +141,18 @@ public InputList LimitScopeToNetworks set => _limitScopeToNetworks = value; } + [Input("limitScopeToNetworksRs")] + private InputList? _limitScopeToNetworksRs; + + /// + /// Networks assigned to the Early Access Feature + /// + public InputList LimitScopeToNetworksRs + { + get => _limitScopeToNetworksRs ?? (_limitScopeToNetworksRs = new InputList()); + set => _limitScopeToNetworksRs = value; + } + /// /// optInId path parameter. Opt in ID /// @@ -179,6 +197,18 @@ public InputList LimitScopeToNetworks set => _limitScopeToNetworks = value; } + [Input("limitScopeToNetworksRs")] + private InputList? _limitScopeToNetworksRs; + + /// + /// Networks assigned to the Early Access Feature + /// + public InputList LimitScopeToNetworksRs + { + get => _limitScopeToNetworksRs ?? (_limitScopeToNetworksRs = new InputList()); + set => _limitScopeToNetworksRs = value; + } + /// /// optInId path parameter. Opt in ID /// diff --git a/sdk/dotnet/Organizations/Outputs/GetDevicesItemResult.cs b/sdk/dotnet/Organizations/Outputs/GetDevicesItemResult.cs index 83308978..a84bfbe6 100644 --- a/sdk/dotnet/Organizations/Outputs/GetDevicesItemResult.cs +++ b/sdk/dotnet/Organizations/Outputs/GetDevicesItemResult.cs @@ -28,7 +28,7 @@ public sealed class GetDevicesItemResult /// /// IMEI of the device, if applicable /// - public readonly string Imei; + public readonly double Imei; /// /// LAN IP address of the device /// @@ -82,7 +82,7 @@ private GetDevicesItemResult( string firmware, - string imei, + double imei, string lanIp, diff --git a/sdk/dotnet/Outputs/GetDevicesItemResult.cs b/sdk/dotnet/Outputs/GetDevicesItemResult.cs index 4d927ec5..c0e71190 100644 --- a/sdk/dotnet/Outputs/GetDevicesItemResult.cs +++ b/sdk/dotnet/Outputs/GetDevicesItemResult.cs @@ -28,7 +28,7 @@ public sealed class GetDevicesItemResult /// /// IMEI of the device, if applicable /// - public readonly string Imei; + public readonly double Imei; /// /// LAN IP address of the device /// @@ -82,7 +82,7 @@ private GetDevicesItemResult( string firmware, - string imei, + double imei, string lanIp, diff --git a/sdk/go/meraki/devices/pulumiTypes.go b/sdk/go/meraki/devices/pulumiTypes.go index cd1b893c..7ac54e6c 100644 --- a/sdk/go/meraki/devices/pulumiTypes.go +++ b/sdk/go/meraki/devices/pulumiTypes.go @@ -14673,7 +14673,7 @@ type WirelessRadioSettingsFiveGhzSettings struct { // Sets a manual channel for 5 GHz. Can be '36', '40', '44', '48', '52', '56', '60', '64', '100', '104', '108', '112', '116', '120', '124', '128', '132', '136', '140', '144', '149', '153', '157', '161', '165', '169', '173' or '177' or null for using auto channel. Channel *int `pulumi:"channel"` // Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. - ChannelWidth *int `pulumi:"channelWidth"` + ChannelWidth *string `pulumi:"channelWidth"` // Set a manual target power for 5 GHz. Can be between '8' or '30' or null for using auto power range. TargetPower *int `pulumi:"targetPower"` } @@ -14693,7 +14693,7 @@ type WirelessRadioSettingsFiveGhzSettingsArgs struct { // Sets a manual channel for 5 GHz. Can be '36', '40', '44', '48', '52', '56', '60', '64', '100', '104', '108', '112', '116', '120', '124', '128', '132', '136', '140', '144', '149', '153', '157', '161', '165', '169', '173' or '177' or null for using auto channel. Channel pulumi.IntPtrInput `pulumi:"channel"` // Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. - ChannelWidth pulumi.IntPtrInput `pulumi:"channelWidth"` + ChannelWidth pulumi.StringPtrInput `pulumi:"channelWidth"` // Set a manual target power for 5 GHz. Can be between '8' or '30' or null for using auto power range. TargetPower pulumi.IntPtrInput `pulumi:"targetPower"` } @@ -14781,8 +14781,8 @@ func (o WirelessRadioSettingsFiveGhzSettingsOutput) Channel() pulumi.IntPtrOutpu } // Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. -func (o WirelessRadioSettingsFiveGhzSettingsOutput) ChannelWidth() pulumi.IntPtrOutput { - return o.ApplyT(func(v WirelessRadioSettingsFiveGhzSettings) *int { return v.ChannelWidth }).(pulumi.IntPtrOutput) +func (o WirelessRadioSettingsFiveGhzSettingsOutput) ChannelWidth() pulumi.StringPtrOutput { + return o.ApplyT(func(v WirelessRadioSettingsFiveGhzSettings) *string { return v.ChannelWidth }).(pulumi.StringPtrOutput) } // Set a manual target power for 5 GHz. Can be between '8' or '30' or null for using auto power range. @@ -14825,13 +14825,13 @@ func (o WirelessRadioSettingsFiveGhzSettingsPtrOutput) Channel() pulumi.IntPtrOu } // Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. -func (o WirelessRadioSettingsFiveGhzSettingsPtrOutput) ChannelWidth() pulumi.IntPtrOutput { - return o.ApplyT(func(v *WirelessRadioSettingsFiveGhzSettings) *int { +func (o WirelessRadioSettingsFiveGhzSettingsPtrOutput) ChannelWidth() pulumi.StringPtrOutput { + return o.ApplyT(func(v *WirelessRadioSettingsFiveGhzSettings) *string { if v == nil { return nil } return v.ChannelWidth - }).(pulumi.IntPtrOutput) + }).(pulumi.StringPtrOutput) } // Set a manual target power for 5 GHz. Can be between '8' or '30' or null for using auto power range. @@ -24457,9 +24457,9 @@ func (o GetWirelessRadioSettingsItemOutput) TwoFourGhzSettings() GetWirelessRadi } type GetWirelessRadioSettingsItemFiveGhzSettings struct { - Channel int `pulumi:"channel"` - ChannelWidth int `pulumi:"channelWidth"` - TargetPower int `pulumi:"targetPower"` + Channel int `pulumi:"channel"` + ChannelWidth string `pulumi:"channelWidth"` + TargetPower int `pulumi:"targetPower"` } // GetWirelessRadioSettingsItemFiveGhzSettingsInput is an input type that accepts GetWirelessRadioSettingsItemFiveGhzSettingsArgs and GetWirelessRadioSettingsItemFiveGhzSettingsOutput values. @@ -24474,9 +24474,9 @@ type GetWirelessRadioSettingsItemFiveGhzSettingsInput interface { } type GetWirelessRadioSettingsItemFiveGhzSettingsArgs struct { - Channel pulumi.IntInput `pulumi:"channel"` - ChannelWidth pulumi.IntInput `pulumi:"channelWidth"` - TargetPower pulumi.IntInput `pulumi:"targetPower"` + Channel pulumi.IntInput `pulumi:"channel"` + ChannelWidth pulumi.StringInput `pulumi:"channelWidth"` + TargetPower pulumi.IntInput `pulumi:"targetPower"` } func (GetWirelessRadioSettingsItemFiveGhzSettingsArgs) ElementType() reflect.Type { @@ -24509,8 +24509,8 @@ func (o GetWirelessRadioSettingsItemFiveGhzSettingsOutput) Channel() pulumi.IntO return o.ApplyT(func(v GetWirelessRadioSettingsItemFiveGhzSettings) int { return v.Channel }).(pulumi.IntOutput) } -func (o GetWirelessRadioSettingsItemFiveGhzSettingsOutput) ChannelWidth() pulumi.IntOutput { - return o.ApplyT(func(v GetWirelessRadioSettingsItemFiveGhzSettings) int { return v.ChannelWidth }).(pulumi.IntOutput) +func (o GetWirelessRadioSettingsItemFiveGhzSettingsOutput) ChannelWidth() pulumi.StringOutput { + return o.ApplyT(func(v GetWirelessRadioSettingsItemFiveGhzSettings) string { return v.ChannelWidth }).(pulumi.StringOutput) } func (o GetWirelessRadioSettingsItemFiveGhzSettingsOutput) TargetPower() pulumi.IntOutput { diff --git a/sdk/go/meraki/organizations/earlyAccessFeaturesOptIns.go b/sdk/go/meraki/organizations/earlyAccessFeaturesOptIns.go index dd180cb9..3be9cd8c 100644 --- a/sdk/go/meraki/organizations/earlyAccessFeaturesOptIns.go +++ b/sdk/go/meraki/organizations/earlyAccessFeaturesOptIns.go @@ -55,6 +55,8 @@ type EarlyAccessFeaturesOptIns struct { CreatedAt pulumi.StringOutput `pulumi:"createdAt"` // Networks assigned to the Early Access Feature LimitScopeToNetworks pulumi.StringArrayOutput `pulumi:"limitScopeToNetworks"` + // Networks assigned to the Early Access Feature + LimitScopeToNetworksRs pulumi.StringArrayOutput `pulumi:"limitScopeToNetworksRs"` // optInId path parameter. Opt in ID OptInId pulumi.StringPtrOutput `pulumi:"optInId"` // organizationId path parameter. Organization ID @@ -100,6 +102,8 @@ type earlyAccessFeaturesOptInsState struct { CreatedAt *string `pulumi:"createdAt"` // Networks assigned to the Early Access Feature LimitScopeToNetworks []string `pulumi:"limitScopeToNetworks"` + // Networks assigned to the Early Access Feature + LimitScopeToNetworksRs []string `pulumi:"limitScopeToNetworksRs"` // optInId path parameter. Opt in ID OptInId *string `pulumi:"optInId"` // organizationId path parameter. Organization ID @@ -113,6 +117,8 @@ type EarlyAccessFeaturesOptInsState struct { CreatedAt pulumi.StringPtrInput // Networks assigned to the Early Access Feature LimitScopeToNetworks pulumi.StringArrayInput + // Networks assigned to the Early Access Feature + LimitScopeToNetworksRs pulumi.StringArrayInput // optInId path parameter. Opt in ID OptInId pulumi.StringPtrInput // organizationId path parameter. Organization ID @@ -128,6 +134,8 @@ func (EarlyAccessFeaturesOptInsState) ElementType() reflect.Type { type earlyAccessFeaturesOptInsArgs struct { // Networks assigned to the Early Access Feature LimitScopeToNetworks []string `pulumi:"limitScopeToNetworks"` + // Networks assigned to the Early Access Feature + LimitScopeToNetworksRs []string `pulumi:"limitScopeToNetworksRs"` // optInId path parameter. Opt in ID OptInId *string `pulumi:"optInId"` // organizationId path parameter. Organization ID @@ -140,6 +148,8 @@ type earlyAccessFeaturesOptInsArgs struct { type EarlyAccessFeaturesOptInsArgs struct { // Networks assigned to the Early Access Feature LimitScopeToNetworks pulumi.StringArrayInput + // Networks assigned to the Early Access Feature + LimitScopeToNetworksRs pulumi.StringArrayInput // optInId path parameter. Opt in ID OptInId pulumi.StringPtrInput // organizationId path parameter. Organization ID @@ -245,6 +255,11 @@ func (o EarlyAccessFeaturesOptInsOutput) LimitScopeToNetworks() pulumi.StringArr return o.ApplyT(func(v *EarlyAccessFeaturesOptIns) pulumi.StringArrayOutput { return v.LimitScopeToNetworks }).(pulumi.StringArrayOutput) } +// Networks assigned to the Early Access Feature +func (o EarlyAccessFeaturesOptInsOutput) LimitScopeToNetworksRs() pulumi.StringArrayOutput { + return o.ApplyT(func(v *EarlyAccessFeaturesOptIns) pulumi.StringArrayOutput { return v.LimitScopeToNetworksRs }).(pulumi.StringArrayOutput) +} + // optInId path parameter. Opt in ID func (o EarlyAccessFeaturesOptInsOutput) OptInId() pulumi.StringPtrOutput { return o.ApplyT(func(v *EarlyAccessFeaturesOptIns) pulumi.StringPtrOutput { return v.OptInId }).(pulumi.StringPtrOutput) diff --git a/sdk/go/meraki/organizations/pulumiTypes.go b/sdk/go/meraki/organizations/pulumiTypes.go index 5bb9dc02..c0e9225f 100644 --- a/sdk/go/meraki/organizations/pulumiTypes.go +++ b/sdk/go/meraki/organizations/pulumiTypes.go @@ -28487,7 +28487,7 @@ type GetDevicesItem struct { // Firmware version of the device Firmware string `pulumi:"firmware"` // IMEI of the device, if applicable - Imei string `pulumi:"imei"` + Imei float64 `pulumi:"imei"` // LAN IP address of the device LanIp string `pulumi:"lanIp"` // Latitude of the device @@ -28531,7 +28531,7 @@ type GetDevicesItemArgs struct { // Firmware version of the device Firmware pulumi.StringInput `pulumi:"firmware"` // IMEI of the device, if applicable - Imei pulumi.StringInput `pulumi:"imei"` + Imei pulumi.Float64Input `pulumi:"imei"` // LAN IP address of the device LanIp pulumi.StringInput `pulumi:"lanIp"` // Latitude of the device @@ -28623,8 +28623,8 @@ func (o GetDevicesItemOutput) Firmware() pulumi.StringOutput { } // IMEI of the device, if applicable -func (o GetDevicesItemOutput) Imei() pulumi.StringOutput { - return o.ApplyT(func(v GetDevicesItem) string { return v.Imei }).(pulumi.StringOutput) +func (o GetDevicesItemOutput) Imei() pulumi.Float64Output { + return o.ApplyT(func(v GetDevicesItem) float64 { return v.Imei }).(pulumi.Float64Output) } // LAN IP address of the device diff --git a/sdk/go/meraki/pulumiTypes.go b/sdk/go/meraki/pulumiTypes.go index 7c9eeb66..eb6a8fba 100644 --- a/sdk/go/meraki/pulumiTypes.go +++ b/sdk/go/meraki/pulumiTypes.go @@ -21,7 +21,7 @@ type GetDevicesItem struct { // Firmware version of the device Firmware string `pulumi:"firmware"` // IMEI of the device, if applicable - Imei string `pulumi:"imei"` + Imei float64 `pulumi:"imei"` // LAN IP address of the device LanIp string `pulumi:"lanIp"` // Latitude of the device @@ -65,7 +65,7 @@ type GetDevicesItemArgs struct { // Firmware version of the device Firmware pulumi.StringInput `pulumi:"firmware"` // IMEI of the device, if applicable - Imei pulumi.StringInput `pulumi:"imei"` + Imei pulumi.Float64Input `pulumi:"imei"` // LAN IP address of the device LanIp pulumi.StringInput `pulumi:"lanIp"` // Latitude of the device @@ -157,8 +157,8 @@ func (o GetDevicesItemOutput) Firmware() pulumi.StringOutput { } // IMEI of the device, if applicable -func (o GetDevicesItemOutput) Imei() pulumi.StringOutput { - return o.ApplyT(func(v GetDevicesItem) string { return v.Imei }).(pulumi.StringOutput) +func (o GetDevicesItemOutput) Imei() pulumi.Float64Output { + return o.ApplyT(func(v GetDevicesItem) float64 { return v.Imei }).(pulumi.Float64Output) } // LAN IP address of the device diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 41feffc6..0253d927 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.12.0") + implementation("com.pulumi:pulumi:0.13.0") } task sourcesJar(type: Jar) { @@ -68,6 +68,7 @@ def genPulumiResources = tasks.register('genPulumiResources') { def info = new Object() info.metaClass.resource = true info.metaClass.name = "meraki" + info.metaClass.server = "github://api.github.com/pulumi/pulumi-meraki" info.metaClass.version = resolvedVersion def infoJson = new groovy.json.JsonBuilder(info).toPrettyString() new File(outDir, "plugin.json").text = infoJson @@ -150,4 +151,4 @@ if (signingKey) { useInMemoryPgpKeys(signingKey, signingPassword) sign publishing.publications.mainPublication } -} \ No newline at end of file +} diff --git a/sdk/java/src/main/java/com/pulumi/meraki/Provider.java b/sdk/java/src/main/java/com/pulumi/meraki/Provider.java index 50eb584f..d2de7389 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/Provider.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/Provider.java @@ -94,7 +94,14 @@ public Provider(String name, @Nullable ProviderArgs args) { * @param options A bag of options that control this resource's behavior. */ public Provider(String name, @Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki", name, args == null ? ProviderArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); + } + + private static ProviderArgs makeArgs(@Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ProviderArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { diff --git a/sdk/java/src/main/java/com/pulumi/meraki/administered/LicensingSubscriptionSubscriptionsBind.java b/sdk/java/src/main/java/com/pulumi/meraki/administered/LicensingSubscriptionSubscriptionsBind.java index 062d5668..1fae2064 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/administered/LicensingSubscriptionSubscriptionsBind.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/administered/LicensingSubscriptionSubscriptionsBind.java @@ -130,13 +130,20 @@ public LicensingSubscriptionSubscriptionsBind(String name, LicensingSubscription * @param options A bag of options that control this resource's behavior. */ public LicensingSubscriptionSubscriptionsBind(String name, LicensingSubscriptionSubscriptionsBindArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:administered/licensingSubscriptionSubscriptionsBind:LicensingSubscriptionSubscriptionsBind", name, args == null ? LicensingSubscriptionSubscriptionsBindArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:administered/licensingSubscriptionSubscriptionsBind:LicensingSubscriptionSubscriptionsBind", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LicensingSubscriptionSubscriptionsBind(String name, Output id, @Nullable LicensingSubscriptionSubscriptionsBindState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:administered/licensingSubscriptionSubscriptionsBind:LicensingSubscriptionSubscriptionsBind", name, state, makeResourceOptions(options, id)); } + private static LicensingSubscriptionSubscriptionsBindArgs makeArgs(LicensingSubscriptionSubscriptionsBindArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LicensingSubscriptionSubscriptionsBindArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/administered/LicensingSubscriptionSubscriptionsClaim.java b/sdk/java/src/main/java/com/pulumi/meraki/administered/LicensingSubscriptionSubscriptionsClaim.java index 13974a45..923feaaf 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/administered/LicensingSubscriptionSubscriptionsClaim.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/administered/LicensingSubscriptionSubscriptionsClaim.java @@ -115,13 +115,20 @@ public LicensingSubscriptionSubscriptionsClaim(String name, LicensingSubscriptio * @param options A bag of options that control this resource's behavior. */ public LicensingSubscriptionSubscriptionsClaim(String name, LicensingSubscriptionSubscriptionsClaimArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:administered/licensingSubscriptionSubscriptionsClaim:LicensingSubscriptionSubscriptionsClaim", name, args == null ? LicensingSubscriptionSubscriptionsClaimArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:administered/licensingSubscriptionSubscriptionsClaim:LicensingSubscriptionSubscriptionsClaim", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LicensingSubscriptionSubscriptionsClaim(String name, Output id, @Nullable LicensingSubscriptionSubscriptionsClaimState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:administered/licensingSubscriptionSubscriptionsClaim:LicensingSubscriptionSubscriptionsClaim", name, state, makeResourceOptions(options, id)); } + private static LicensingSubscriptionSubscriptionsClaimArgs makeArgs(LicensingSubscriptionSubscriptionsClaimArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LicensingSubscriptionSubscriptionsClaimArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/administered/LicensingSubscriptionSubscriptionsClaimKeyValidate.java b/sdk/java/src/main/java/com/pulumi/meraki/administered/LicensingSubscriptionSubscriptionsClaimKeyValidate.java index 200f46c6..5ed73fa6 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/administered/LicensingSubscriptionSubscriptionsClaimKeyValidate.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/administered/LicensingSubscriptionSubscriptionsClaimKeyValidate.java @@ -95,13 +95,20 @@ public LicensingSubscriptionSubscriptionsClaimKeyValidate(String name, Licensing * @param options A bag of options that control this resource's behavior. */ public LicensingSubscriptionSubscriptionsClaimKeyValidate(String name, LicensingSubscriptionSubscriptionsClaimKeyValidateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:administered/licensingSubscriptionSubscriptionsClaimKeyValidate:LicensingSubscriptionSubscriptionsClaimKeyValidate", name, args == null ? LicensingSubscriptionSubscriptionsClaimKeyValidateArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:administered/licensingSubscriptionSubscriptionsClaimKeyValidate:LicensingSubscriptionSubscriptionsClaimKeyValidate", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LicensingSubscriptionSubscriptionsClaimKeyValidate(String name, Output id, @Nullable LicensingSubscriptionSubscriptionsClaimKeyValidateState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:administered/licensingSubscriptionSubscriptionsClaimKeyValidate:LicensingSubscriptionSubscriptionsClaimKeyValidate", name, state, makeResourceOptions(options, id)); } + private static LicensingSubscriptionSubscriptionsClaimKeyValidateArgs makeArgs(LicensingSubscriptionSubscriptionsClaimKeyValidateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LicensingSubscriptionSubscriptionsClaimKeyValidateArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/ApplianceRadioSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/ApplianceRadioSettings.java index 85be4815..85697566 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/ApplianceRadioSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/ApplianceRadioSettings.java @@ -49,7 +49,7 @@ * var example = new ApplianceRadioSettings("example", ApplianceRadioSettingsArgs.builder() * .fiveGhzSettings(ApplianceRadioSettingsFiveGhzSettingsArgs.builder() * .channel(149) - * .channel_width(20) + * .channel_width("20") * .target_power(15) * .build()) * .rfProfileId("1234") @@ -155,13 +155,20 @@ public ApplianceRadioSettings(String name, ApplianceRadioSettingsArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApplianceRadioSettings(String name, ApplianceRadioSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/applianceRadioSettings:ApplianceRadioSettings", name, args == null ? ApplianceRadioSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/applianceRadioSettings:ApplianceRadioSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceRadioSettings(String name, Output id, @Nullable ApplianceRadioSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/applianceRadioSettings:ApplianceRadioSettings", name, state, makeResourceOptions(options, id)); } + private static ApplianceRadioSettingsArgs makeArgs(ApplianceRadioSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceRadioSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/ApplianceUplinksSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/ApplianceUplinksSettings.java index 9454b315..0df7344b 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/ApplianceUplinksSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/ApplianceUplinksSettings.java @@ -202,13 +202,20 @@ public ApplianceUplinksSettings(String name, ApplianceUplinksSettingsArgs args) * @param options A bag of options that control this resource's behavior. */ public ApplianceUplinksSettings(String name, ApplianceUplinksSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/applianceUplinksSettings:ApplianceUplinksSettings", name, args == null ? ApplianceUplinksSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/applianceUplinksSettings:ApplianceUplinksSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceUplinksSettings(String name, Output id, @Nullable ApplianceUplinksSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/applianceUplinksSettings:ApplianceUplinksSettings", name, state, makeResourceOptions(options, id)); } + private static ApplianceUplinksSettingsArgs makeArgs(ApplianceUplinksSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceUplinksSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/ApplianceVmxAuthenticationToken.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/ApplianceVmxAuthenticationToken.java index 05d2d31c..a6d1ffb8 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/ApplianceVmxAuthenticationToken.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/ApplianceVmxAuthenticationToken.java @@ -100,13 +100,20 @@ public ApplianceVmxAuthenticationToken(String name, ApplianceVmxAuthenticationTo * @param options A bag of options that control this resource's behavior. */ public ApplianceVmxAuthenticationToken(String name, ApplianceVmxAuthenticationTokenArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/applianceVmxAuthenticationToken:ApplianceVmxAuthenticationToken", name, args == null ? ApplianceVmxAuthenticationTokenArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/applianceVmxAuthenticationToken:ApplianceVmxAuthenticationToken", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceVmxAuthenticationToken(String name, Output id, @Nullable ApplianceVmxAuthenticationTokenState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/applianceVmxAuthenticationToken:ApplianceVmxAuthenticationToken", name, state, makeResourceOptions(options, id)); } + private static ApplianceVmxAuthenticationTokenArgs makeArgs(ApplianceVmxAuthenticationTokenArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceVmxAuthenticationTokenArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/Base.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/Base.java index 2f69263b..6fc51ad3 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/Base.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/Base.java @@ -307,13 +307,20 @@ public Base(String name, BaseArgs args) { * @param options A bag of options that control this resource's behavior. */ public Base(String name, BaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/base:base", name, args == null ? BaseArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/base:base", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Base(String name, Output id, @Nullable BaseState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/base:base", name, state, makeResourceOptions(options, id)); } + private static BaseArgs makeArgs(BaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BaseArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/BlinkLeds.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/BlinkLeds.java index 7ae8d241..fd47c054 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/BlinkLeds.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/BlinkLeds.java @@ -113,13 +113,20 @@ public BlinkLeds(String name, BlinkLedsArgs args) { * @param options A bag of options that control this resource's behavior. */ public BlinkLeds(String name, BlinkLedsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/blinkLeds:BlinkLeds", name, args == null ? BlinkLedsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/blinkLeds:BlinkLeds", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private BlinkLeds(String name, Output id, @Nullable BlinkLedsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/blinkLeds:BlinkLeds", name, state, makeResourceOptions(options, id)); } + private static BlinkLedsArgs makeArgs(BlinkLedsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BlinkLedsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraCustomAnalytics.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraCustomAnalytics.java index 00025ef5..3726d5d2 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraCustomAnalytics.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraCustomAnalytics.java @@ -148,13 +148,20 @@ public CameraCustomAnalytics(String name, CameraCustomAnalyticsArgs args) { * @param options A bag of options that control this resource's behavior. */ public CameraCustomAnalytics(String name, CameraCustomAnalyticsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/cameraCustomAnalytics:CameraCustomAnalytics", name, args == null ? CameraCustomAnalyticsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/cameraCustomAnalytics:CameraCustomAnalytics", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CameraCustomAnalytics(String name, Output id, @Nullable CameraCustomAnalyticsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/cameraCustomAnalytics:CameraCustomAnalytics", name, state, makeResourceOptions(options, id)); } + private static CameraCustomAnalyticsArgs makeArgs(CameraCustomAnalyticsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CameraCustomAnalyticsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraGenerateSnapshot.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraGenerateSnapshot.java index a355e2d8..95651ed1 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraGenerateSnapshot.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraGenerateSnapshot.java @@ -105,13 +105,20 @@ public CameraGenerateSnapshot(String name, CameraGenerateSnapshotArgs args) { * @param options A bag of options that control this resource's behavior. */ public CameraGenerateSnapshot(String name, CameraGenerateSnapshotArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/cameraGenerateSnapshot:CameraGenerateSnapshot", name, args == null ? CameraGenerateSnapshotArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/cameraGenerateSnapshot:CameraGenerateSnapshot", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CameraGenerateSnapshot(String name, Output id, @Nullable CameraGenerateSnapshotState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/cameraGenerateSnapshot:CameraGenerateSnapshot", name, state, makeResourceOptions(options, id)); } + private static CameraGenerateSnapshotArgs makeArgs(CameraGenerateSnapshotArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CameraGenerateSnapshotArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraQualityAndRetention.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraQualityAndRetention.java index 5ad625d7..d540878c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraQualityAndRetention.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraQualityAndRetention.java @@ -203,13 +203,20 @@ public CameraQualityAndRetention(String name, CameraQualityAndRetentionArgs args * @param options A bag of options that control this resource's behavior. */ public CameraQualityAndRetention(String name, CameraQualityAndRetentionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/cameraQualityAndRetention:CameraQualityAndRetention", name, args == null ? CameraQualityAndRetentionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/cameraQualityAndRetention:CameraQualityAndRetention", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CameraQualityAndRetention(String name, Output id, @Nullable CameraQualityAndRetentionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/cameraQualityAndRetention:CameraQualityAndRetention", name, state, makeResourceOptions(options, id)); } + private static CameraQualityAndRetentionArgs makeArgs(CameraQualityAndRetentionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CameraQualityAndRetentionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraSense.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraSense.java index f1716018..a0e77056 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraSense.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraSense.java @@ -167,13 +167,20 @@ public CameraSense(String name, CameraSenseArgs args) { * @param options A bag of options that control this resource's behavior. */ public CameraSense(String name, CameraSenseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/cameraSense:CameraSense", name, args == null ? CameraSenseArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/cameraSense:CameraSense", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CameraSense(String name, Output id, @Nullable CameraSenseState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/cameraSense:CameraSense", name, state, makeResourceOptions(options, id)); } + private static CameraSenseArgs makeArgs(CameraSenseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CameraSenseArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraVideoSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraVideoSettings.java index 12497697..536b04ad 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraVideoSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraVideoSettings.java @@ -126,13 +126,20 @@ public CameraVideoSettings(String name, CameraVideoSettingsArgs args) { * @param options A bag of options that control this resource's behavior. */ public CameraVideoSettings(String name, CameraVideoSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/cameraVideoSettings:CameraVideoSettings", name, args == null ? CameraVideoSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/cameraVideoSettings:CameraVideoSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CameraVideoSettings(String name, Output id, @Nullable CameraVideoSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/cameraVideoSettings:CameraVideoSettings", name, state, makeResourceOptions(options, id)); } + private static CameraVideoSettingsArgs makeArgs(CameraVideoSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CameraVideoSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraWirelessProfiles.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraWirelessProfiles.java index 3b737b05..b6684f1d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraWirelessProfiles.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/CameraWirelessProfiles.java @@ -117,13 +117,20 @@ public CameraWirelessProfiles(String name, CameraWirelessProfilesArgs args) { * @param options A bag of options that control this resource's behavior. */ public CameraWirelessProfiles(String name, CameraWirelessProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/cameraWirelessProfiles:CameraWirelessProfiles", name, args == null ? CameraWirelessProfilesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/cameraWirelessProfiles:CameraWirelessProfiles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CameraWirelessProfiles(String name, Output id, @Nullable CameraWirelessProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/cameraWirelessProfiles:CameraWirelessProfiles", name, state, makeResourceOptions(options, id)); } + private static CameraWirelessProfilesArgs makeArgs(CameraWirelessProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CameraWirelessProfilesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/CellularGatewayLan.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/CellularGatewayLan.java index e62de5bd..5c4fde17 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/CellularGatewayLan.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/CellularGatewayLan.java @@ -181,13 +181,20 @@ public CellularGatewayLan(String name, CellularGatewayLanArgs args) { * @param options A bag of options that control this resource's behavior. */ public CellularGatewayLan(String name, CellularGatewayLanArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/cellularGatewayLan:CellularGatewayLan", name, args == null ? CellularGatewayLanArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/cellularGatewayLan:CellularGatewayLan", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CellularGatewayLan(String name, Output id, @Nullable CellularGatewayLanState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/cellularGatewayLan:CellularGatewayLan", name, state, makeResourceOptions(options, id)); } + private static CellularGatewayLanArgs makeArgs(CellularGatewayLanArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CellularGatewayLanArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/CellularGatewayPortForwardingRules.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/CellularGatewayPortForwardingRules.java index 908c9213..fd7269f3 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/CellularGatewayPortForwardingRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/CellularGatewayPortForwardingRules.java @@ -121,13 +121,20 @@ public CellularGatewayPortForwardingRules(String name, CellularGatewayPortForwar * @param options A bag of options that control this resource's behavior. */ public CellularGatewayPortForwardingRules(String name, CellularGatewayPortForwardingRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/cellularGatewayPortForwardingRules:CellularGatewayPortForwardingRules", name, args == null ? CellularGatewayPortForwardingRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/cellularGatewayPortForwardingRules:CellularGatewayPortForwardingRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CellularGatewayPortForwardingRules(String name, Output id, @Nullable CellularGatewayPortForwardingRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/cellularGatewayPortForwardingRules:CellularGatewayPortForwardingRules", name, state, makeResourceOptions(options, id)); } + private static CellularGatewayPortForwardingRulesArgs makeArgs(CellularGatewayPortForwardingRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CellularGatewayPortForwardingRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/CellularSims.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/CellularSims.java index 9053418b..4306d409 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/CellularSims.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/CellularSims.java @@ -127,13 +127,20 @@ public CellularSims(String name, CellularSimsArgs args) { * @param options A bag of options that control this resource's behavior. */ public CellularSims(String name, CellularSimsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/cellularSims:CellularSims", name, args == null ? CellularSimsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/cellularSims:CellularSims", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CellularSims(String name, Output id, @Nullable CellularSimsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/cellularSims:CellularSims", name, state, makeResourceOptions(options, id)); } + private static CellularSimsArgs makeArgs(CellularSimsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CellularSimsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsArpTable.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsArpTable.java index 30156c09..07c3a54d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsArpTable.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsArpTable.java @@ -205,13 +205,20 @@ public LiveToolsArpTable(String name, LiveToolsArpTableArgs args) { * @param options A bag of options that control this resource's behavior. */ public LiveToolsArpTable(String name, LiveToolsArpTableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/liveToolsArpTable:LiveToolsArpTable", name, args == null ? LiveToolsArpTableArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/liveToolsArpTable:LiveToolsArpTable", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LiveToolsArpTable(String name, Output id, @Nullable LiveToolsArpTableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/liveToolsArpTable:LiveToolsArpTable", name, state, makeResourceOptions(options, id)); } + private static LiveToolsArpTableArgs makeArgs(LiveToolsArpTableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LiveToolsArpTableArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsCable.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsCable.java index 914876b8..ee804921 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsCable.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsCable.java @@ -168,13 +168,20 @@ public LiveToolsCable(String name, LiveToolsCableArgs args) { * @param options A bag of options that control this resource's behavior. */ public LiveToolsCable(String name, LiveToolsCableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/liveToolsCable:LiveToolsCable", name, args == null ? LiveToolsCableArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/liveToolsCable:LiveToolsCable", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LiveToolsCable(String name, Output id, @Nullable LiveToolsCableState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/liveToolsCable:LiveToolsCable", name, state, makeResourceOptions(options, id)); } + private static LiveToolsCableArgs makeArgs(LiveToolsCableArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LiveToolsCableArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsPing.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsPing.java index c38ec141..5aa8178c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsPing.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsPing.java @@ -131,13 +131,20 @@ public LiveToolsPing(String name, LiveToolsPingArgs args) { * @param options A bag of options that control this resource's behavior. */ public LiveToolsPing(String name, LiveToolsPingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/liveToolsPing:LiveToolsPing", name, args == null ? LiveToolsPingArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/liveToolsPing:LiveToolsPing", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LiveToolsPing(String name, Output id, @Nullable LiveToolsPingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/liveToolsPing:LiveToolsPing", name, state, makeResourceOptions(options, id)); } + private static LiveToolsPingArgs makeArgs(LiveToolsPingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LiveToolsPingArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsPingDevice.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsPingDevice.java index 00c0ce06..4c5ed51e 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsPingDevice.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsPingDevice.java @@ -130,13 +130,20 @@ public LiveToolsPingDevice(String name, LiveToolsPingDeviceArgs args) { * @param options A bag of options that control this resource's behavior. */ public LiveToolsPingDevice(String name, LiveToolsPingDeviceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/liveToolsPingDevice:LiveToolsPingDevice", name, args == null ? LiveToolsPingDeviceArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/liveToolsPingDevice:LiveToolsPingDevice", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LiveToolsPingDevice(String name, Output id, @Nullable LiveToolsPingDeviceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/liveToolsPingDevice:LiveToolsPingDevice", name, state, makeResourceOptions(options, id)); } + private static LiveToolsPingDeviceArgs makeArgs(LiveToolsPingDeviceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LiveToolsPingDeviceArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsThroughputTest.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsThroughputTest.java index a4590647..9b199100 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsThroughputTest.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsThroughputTest.java @@ -204,13 +204,20 @@ public LiveToolsThroughputTest(String name, LiveToolsThroughputTestArgs args) { * @param options A bag of options that control this resource's behavior. */ public LiveToolsThroughputTest(String name, LiveToolsThroughputTestArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/liveToolsThroughputTest:LiveToolsThroughputTest", name, args == null ? LiveToolsThroughputTestArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/liveToolsThroughputTest:LiveToolsThroughputTest", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LiveToolsThroughputTest(String name, Output id, @Nullable LiveToolsThroughputTestState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/liveToolsThroughputTest:LiveToolsThroughputTest", name, state, makeResourceOptions(options, id)); } + private static LiveToolsThroughputTestArgs makeArgs(LiveToolsThroughputTestArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LiveToolsThroughputTestArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsWakeOnLan.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsWakeOnLan.java index 9b8e5488..8846234c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsWakeOnLan.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/LiveToolsWakeOnLan.java @@ -220,13 +220,20 @@ public LiveToolsWakeOnLan(String name, LiveToolsWakeOnLanArgs args) { * @param options A bag of options that control this resource's behavior. */ public LiveToolsWakeOnLan(String name, LiveToolsWakeOnLanArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/liveToolsWakeOnLan:LiveToolsWakeOnLan", name, args == null ? LiveToolsWakeOnLanArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/liveToolsWakeOnLan:LiveToolsWakeOnLan", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LiveToolsWakeOnLan(String name, Output id, @Nullable LiveToolsWakeOnLanState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/liveToolsWakeOnLan:LiveToolsWakeOnLan", name, state, makeResourceOptions(options, id)); } + private static LiveToolsWakeOnLanArgs makeArgs(LiveToolsWakeOnLanArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LiveToolsWakeOnLanArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/ManagementInterface.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/ManagementInterface.java index 2b95e0ee..bf93a43d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/ManagementInterface.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/ManagementInterface.java @@ -165,13 +165,20 @@ public ManagementInterface(String name, ManagementInterfaceArgs args) { * @param options A bag of options that control this resource's behavior. */ public ManagementInterface(String name, ManagementInterfaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/managementInterface:ManagementInterface", name, args == null ? ManagementInterfaceArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/managementInterface:ManagementInterface", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ManagementInterface(String name, Output id, @Nullable ManagementInterfaceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/managementInterface:ManagementInterface", name, state, makeResourceOptions(options, id)); } + private static ManagementInterfaceArgs makeArgs(ManagementInterfaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ManagementInterfaceArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/SensorRelationships.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/SensorRelationships.java index 58dc971f..b2e2a100 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/SensorRelationships.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/SensorRelationships.java @@ -131,13 +131,20 @@ public SensorRelationships(String name, SensorRelationshipsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SensorRelationships(String name, SensorRelationshipsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/sensorRelationships:SensorRelationships", name, args == null ? SensorRelationshipsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/sensorRelationships:SensorRelationships", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SensorRelationships(String name, Output id, @Nullable SensorRelationshipsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/sensorRelationships:SensorRelationships", name, state, makeResourceOptions(options, id)); } + private static SensorRelationshipsArgs makeArgs(SensorRelationshipsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SensorRelationshipsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchPorts.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchPorts.java index d4b8f332..08719b73 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchPorts.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchPorts.java @@ -545,13 +545,20 @@ public SwitchPorts(String name, SwitchPortsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchPorts(String name, SwitchPortsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/switchPorts:SwitchPorts", name, args == null ? SwitchPortsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/switchPorts:SwitchPorts", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchPorts(String name, Output id, @Nullable SwitchPortsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/switchPorts:SwitchPorts", name, state, makeResourceOptions(options, id)); } + private static SwitchPortsArgs makeArgs(SwitchPortsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchPortsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchPortsCycle.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchPortsCycle.java index 51844f31..514ab538 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchPortsCycle.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchPortsCycle.java @@ -115,13 +115,20 @@ public SwitchPortsCycle(String name, SwitchPortsCycleArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchPortsCycle(String name, SwitchPortsCycleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/switchPortsCycle:SwitchPortsCycle", name, args == null ? SwitchPortsCycleArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/switchPortsCycle:SwitchPortsCycle", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchPortsCycle(String name, Output id, @Nullable SwitchPortsCycleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/switchPortsCycle:SwitchPortsCycle", name, state, makeResourceOptions(options, id)); } + private static SwitchPortsCycleArgs makeArgs(SwitchPortsCycleArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchPortsCycleArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchRoutingInterfaces.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchRoutingInterfaces.java index a76062e7..157836ff 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchRoutingInterfaces.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchRoutingInterfaces.java @@ -265,13 +265,20 @@ public SwitchRoutingInterfaces(String name, SwitchRoutingInterfacesArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchRoutingInterfaces(String name, SwitchRoutingInterfacesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/switchRoutingInterfaces:SwitchRoutingInterfaces", name, args == null ? SwitchRoutingInterfacesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/switchRoutingInterfaces:SwitchRoutingInterfaces", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchRoutingInterfaces(String name, Output id, @Nullable SwitchRoutingInterfacesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/switchRoutingInterfaces:SwitchRoutingInterfaces", name, state, makeResourceOptions(options, id)); } + private static SwitchRoutingInterfacesArgs makeArgs(SwitchRoutingInterfacesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchRoutingInterfacesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchRoutingInterfacesDhcp.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchRoutingInterfacesDhcp.java index 37931362..f9f2b81c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchRoutingInterfacesDhcp.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchRoutingInterfacesDhcp.java @@ -296,13 +296,20 @@ public SwitchRoutingInterfacesDhcp(String name, SwitchRoutingInterfacesDhcpArgs * @param options A bag of options that control this resource's behavior. */ public SwitchRoutingInterfacesDhcp(String name, SwitchRoutingInterfacesDhcpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/switchRoutingInterfacesDhcp:SwitchRoutingInterfacesDhcp", name, args == null ? SwitchRoutingInterfacesDhcpArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/switchRoutingInterfacesDhcp:SwitchRoutingInterfacesDhcp", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchRoutingInterfacesDhcp(String name, Output id, @Nullable SwitchRoutingInterfacesDhcpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/switchRoutingInterfacesDhcp:SwitchRoutingInterfacesDhcp", name, state, makeResourceOptions(options, id)); } + private static SwitchRoutingInterfacesDhcpArgs makeArgs(SwitchRoutingInterfacesDhcpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchRoutingInterfacesDhcpArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchRoutingStaticRoutes.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchRoutingStaticRoutes.java index c91d2c12..1fbd47fc 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchRoutingStaticRoutes.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchRoutingStaticRoutes.java @@ -186,13 +186,20 @@ public SwitchRoutingStaticRoutes(String name, SwitchRoutingStaticRoutesArgs args * @param options A bag of options that control this resource's behavior. */ public SwitchRoutingStaticRoutes(String name, SwitchRoutingStaticRoutesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/switchRoutingStaticRoutes:SwitchRoutingStaticRoutes", name, args == null ? SwitchRoutingStaticRoutesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/switchRoutingStaticRoutes:SwitchRoutingStaticRoutes", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchRoutingStaticRoutes(String name, Output id, @Nullable SwitchRoutingStaticRoutesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/switchRoutingStaticRoutes:SwitchRoutingStaticRoutes", name, state, makeResourceOptions(options, id)); } + private static SwitchRoutingStaticRoutesArgs makeArgs(SwitchRoutingStaticRoutesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchRoutingStaticRoutesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchWarmSpare.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchWarmSpare.java index ce72e3c8..933f5879 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchWarmSpare.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/SwitchWarmSpare.java @@ -141,13 +141,20 @@ public SwitchWarmSpare(String name, SwitchWarmSpareArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchWarmSpare(String name, SwitchWarmSpareArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/switchWarmSpare:SwitchWarmSpare", name, args == null ? SwitchWarmSpareArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/switchWarmSpare:SwitchWarmSpare", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchWarmSpare(String name, Output id, @Nullable SwitchWarmSpareState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/switchWarmSpare:SwitchWarmSpare", name, state, makeResourceOptions(options, id)); } + private static SwitchWarmSpareArgs makeArgs(SwitchWarmSpareArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchWarmSpareArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/WirelessAlternateManagementInterfaceIpv6.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/WirelessAlternateManagementInterfaceIpv6.java index e58e3a6f..3f5fe25a 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/WirelessAlternateManagementInterfaceIpv6.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/WirelessAlternateManagementInterfaceIpv6.java @@ -122,13 +122,20 @@ public WirelessAlternateManagementInterfaceIpv6(String name, WirelessAlternateMa * @param options A bag of options that control this resource's behavior. */ public WirelessAlternateManagementInterfaceIpv6(String name, WirelessAlternateManagementInterfaceIpv6Args args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/wirelessAlternateManagementInterfaceIpv6:WirelessAlternateManagementInterfaceIpv6", name, args == null ? WirelessAlternateManagementInterfaceIpv6Args.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/wirelessAlternateManagementInterfaceIpv6:WirelessAlternateManagementInterfaceIpv6", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessAlternateManagementInterfaceIpv6(String name, Output id, @Nullable WirelessAlternateManagementInterfaceIpv6State state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/wirelessAlternateManagementInterfaceIpv6:WirelessAlternateManagementInterfaceIpv6", name, state, makeResourceOptions(options, id)); } + private static WirelessAlternateManagementInterfaceIpv6Args makeArgs(WirelessAlternateManagementInterfaceIpv6Args args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessAlternateManagementInterfaceIpv6Args.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/WirelessBluetoothSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/WirelessBluetoothSettings.java index bc318d9e..2aeca892 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/WirelessBluetoothSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/WirelessBluetoothSettings.java @@ -142,13 +142,20 @@ public WirelessBluetoothSettings(String name, WirelessBluetoothSettingsArgs args * @param options A bag of options that control this resource's behavior. */ public WirelessBluetoothSettings(String name, WirelessBluetoothSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/wirelessBluetoothSettings:WirelessBluetoothSettings", name, args == null ? WirelessBluetoothSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/wirelessBluetoothSettings:WirelessBluetoothSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessBluetoothSettings(String name, Output id, @Nullable WirelessBluetoothSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/wirelessBluetoothSettings:WirelessBluetoothSettings", name, state, makeResourceOptions(options, id)); } + private static WirelessBluetoothSettingsArgs makeArgs(WirelessBluetoothSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessBluetoothSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/WirelessRadioSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/WirelessRadioSettings.java index 1bcce88d..1d01cbcc 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/WirelessRadioSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/WirelessRadioSettings.java @@ -152,13 +152,20 @@ public WirelessRadioSettings(String name, WirelessRadioSettingsArgs args) { * @param options A bag of options that control this resource's behavior. */ public WirelessRadioSettings(String name, WirelessRadioSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:devices/wirelessRadioSettings:WirelessRadioSettings", name, args == null ? WirelessRadioSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:devices/wirelessRadioSettings:WirelessRadioSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessRadioSettings(String name, Output id, @Nullable WirelessRadioSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:devices/wirelessRadioSettings:WirelessRadioSettings", name, state, makeResourceOptions(options, id)); } + private static WirelessRadioSettingsArgs makeArgs(WirelessRadioSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessRadioSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/inputs/WirelessRadioSettingsFiveGhzSettingsArgs.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/inputs/WirelessRadioSettingsFiveGhzSettingsArgs.java index 2e95d501..a793fb16 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/inputs/WirelessRadioSettingsFiveGhzSettingsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/inputs/WirelessRadioSettingsFiveGhzSettingsArgs.java @@ -6,6 +6,7 @@ import com.pulumi.core.Output; import com.pulumi.core.annotations.Import; import java.lang.Integer; +import java.lang.String; import java.util.Objects; import java.util.Optional; import javax.annotation.Nullable; @@ -35,13 +36,13 @@ public Optional> channel() { * */ @Import(name="channelWidth") - private @Nullable Output channelWidth; + private @Nullable Output channelWidth; /** * @return Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. * */ - public Optional> channelWidth() { + public Optional> channelWidth() { return Optional.ofNullable(this.channelWidth); } @@ -113,7 +114,7 @@ public Builder channel(Integer channel) { * @return builder * */ - public Builder channelWidth(@Nullable Output channelWidth) { + public Builder channelWidth(@Nullable Output channelWidth) { $.channelWidth = channelWidth; return this; } @@ -124,7 +125,7 @@ public Builder channelWidth(@Nullable Output channelWidth) { * @return builder * */ - public Builder channelWidth(Integer channelWidth) { + public Builder channelWidth(String channelWidth) { return channelWidth(Output.of(channelWidth)); } diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/outputs/GetWirelessRadioSettingsItemFiveGhzSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/outputs/GetWirelessRadioSettingsItemFiveGhzSettings.java index e35edc65..263cdfcc 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/outputs/GetWirelessRadioSettingsItemFiveGhzSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/outputs/GetWirelessRadioSettingsItemFiveGhzSettings.java @@ -6,19 +6,20 @@ import com.pulumi.core.annotations.CustomType; import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.Integer; +import java.lang.String; import java.util.Objects; @CustomType public final class GetWirelessRadioSettingsItemFiveGhzSettings { private Integer channel; - private Integer channelWidth; + private String channelWidth; private Integer targetPower; private GetWirelessRadioSettingsItemFiveGhzSettings() {} public Integer channel() { return this.channel; } - public Integer channelWidth() { + public String channelWidth() { return this.channelWidth; } public Integer targetPower() { @@ -35,7 +36,7 @@ public static Builder builder(GetWirelessRadioSettingsItemFiveGhzSettings defaul @CustomType.Builder public static final class Builder { private Integer channel; - private Integer channelWidth; + private String channelWidth; private Integer targetPower; public Builder() {} public Builder(GetWirelessRadioSettingsItemFiveGhzSettings defaults) { @@ -54,7 +55,7 @@ public Builder channel(Integer channel) { return this; } @CustomType.Setter - public Builder channelWidth(Integer channelWidth) { + public Builder channelWidth(String channelWidth) { if (channelWidth == null) { throw new MissingRequiredPropertyException("GetWirelessRadioSettingsItemFiveGhzSettings", "channelWidth"); } diff --git a/sdk/java/src/main/java/com/pulumi/meraki/devices/outputs/WirelessRadioSettingsFiveGhzSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/devices/outputs/WirelessRadioSettingsFiveGhzSettings.java index f04d07f1..d72e2ea0 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/devices/outputs/WirelessRadioSettingsFiveGhzSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/devices/outputs/WirelessRadioSettingsFiveGhzSettings.java @@ -5,6 +5,7 @@ import com.pulumi.core.annotations.CustomType; import java.lang.Integer; +import java.lang.String; import java.util.Objects; import java.util.Optional; import javax.annotation.Nullable; @@ -20,7 +21,7 @@ public final class WirelessRadioSettingsFiveGhzSettings { * @return Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. * */ - private @Nullable Integer channelWidth; + private @Nullable String channelWidth; /** * @return Set a manual target power for 5 GHz. Can be between '8' or '30' or null for using auto power range. * @@ -39,7 +40,7 @@ public Optional channel() { * @return Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. * */ - public Optional channelWidth() { + public Optional channelWidth() { return Optional.ofNullable(this.channelWidth); } /** @@ -60,7 +61,7 @@ public static Builder builder(WirelessRadioSettingsFiveGhzSettings defaults) { @CustomType.Builder public static final class Builder { private @Nullable Integer channel; - private @Nullable Integer channelWidth; + private @Nullable String channelWidth; private @Nullable Integer targetPower; public Builder() {} public Builder(WirelessRadioSettingsFiveGhzSettings defaults) { @@ -77,7 +78,7 @@ public Builder channel(@Nullable Integer channel) { return this; } @CustomType.Setter - public Builder channelWidth(@Nullable Integer channelWidth) { + public Builder channelWidth(@Nullable String channelWidth) { this.channelWidth = channelWidth; return this; diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/AlertsSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/AlertsSettings.java index 6c557f89..bdf06a01 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/AlertsSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/AlertsSettings.java @@ -175,13 +175,20 @@ public AlertsSettings(String name, AlertsSettingsArgs args) { * @param options A bag of options that control this resource's behavior. */ public AlertsSettings(String name, AlertsSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/alertsSettings:AlertsSettings", name, args == null ? AlertsSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/alertsSettings:AlertsSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AlertsSettings(String name, Output id, @Nullable AlertsSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/alertsSettings:AlertsSettings", name, state, makeResourceOptions(options, id)); } + private static AlertsSettingsArgs makeArgs(AlertsSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AlertsSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceConnectivityMonitoringDestinations.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceConnectivityMonitoringDestinations.java index cacfca00..bc9c7040 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceConnectivityMonitoringDestinations.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceConnectivityMonitoringDestinations.java @@ -118,13 +118,20 @@ public ApplianceConnectivityMonitoringDestinations(String name, ApplianceConnect * @param options A bag of options that control this resource's behavior. */ public ApplianceConnectivityMonitoringDestinations(String name, ApplianceConnectivityMonitoringDestinationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceConnectivityMonitoringDestinations:ApplianceConnectivityMonitoringDestinations", name, args == null ? ApplianceConnectivityMonitoringDestinationsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceConnectivityMonitoringDestinations:ApplianceConnectivityMonitoringDestinations", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceConnectivityMonitoringDestinations(String name, Output id, @Nullable ApplianceConnectivityMonitoringDestinationsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceConnectivityMonitoringDestinations:ApplianceConnectivityMonitoringDestinations", name, state, makeResourceOptions(options, id)); } + private static ApplianceConnectivityMonitoringDestinationsArgs makeArgs(ApplianceConnectivityMonitoringDestinationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceConnectivityMonitoringDestinationsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceContentFiltering.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceContentFiltering.java index 9583141a..d2017bb0 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceContentFiltering.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceContentFiltering.java @@ -171,13 +171,20 @@ public ApplianceContentFiltering(String name, ApplianceContentFilteringArgs args * @param options A bag of options that control this resource's behavior. */ public ApplianceContentFiltering(String name, ApplianceContentFilteringArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceContentFiltering:ApplianceContentFiltering", name, args == null ? ApplianceContentFilteringArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceContentFiltering:ApplianceContentFiltering", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceContentFiltering(String name, Output id, @Nullable ApplianceContentFilteringState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceContentFiltering:ApplianceContentFiltering", name, state, makeResourceOptions(options, id)); } + private static ApplianceContentFilteringArgs makeArgs(ApplianceContentFilteringArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceContentFilteringArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallCellularFirewallRules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallCellularFirewallRules.java index 041aa9a9..69180bfe 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallCellularFirewallRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallCellularFirewallRules.java @@ -123,13 +123,20 @@ public ApplianceFirewallCellularFirewallRules(String name, ApplianceFirewallCell * @param options A bag of options that control this resource's behavior. */ public ApplianceFirewallCellularFirewallRules(String name, ApplianceFirewallCellularFirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceFirewallCellularFirewallRules:ApplianceFirewallCellularFirewallRules", name, args == null ? ApplianceFirewallCellularFirewallRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceFirewallCellularFirewallRules:ApplianceFirewallCellularFirewallRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceFirewallCellularFirewallRules(String name, Output id, @Nullable ApplianceFirewallCellularFirewallRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceFirewallCellularFirewallRules:ApplianceFirewallCellularFirewallRules", name, state, makeResourceOptions(options, id)); } + private static ApplianceFirewallCellularFirewallRulesArgs makeArgs(ApplianceFirewallCellularFirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceFirewallCellularFirewallRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallFirewalledServices.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallFirewalledServices.java index da0d7844..c02f9985 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallFirewalledServices.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallFirewalledServices.java @@ -142,13 +142,20 @@ public ApplianceFirewallFirewalledServices(String name, ApplianceFirewallFirewal * @param options A bag of options that control this resource's behavior. */ public ApplianceFirewallFirewalledServices(String name, ApplianceFirewallFirewalledServicesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceFirewallFirewalledServices:ApplianceFirewallFirewalledServices", name, args == null ? ApplianceFirewallFirewalledServicesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceFirewallFirewalledServices:ApplianceFirewallFirewalledServices", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceFirewallFirewalledServices(String name, Output id, @Nullable ApplianceFirewallFirewalledServicesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceFirewallFirewalledServices:ApplianceFirewallFirewalledServices", name, state, makeResourceOptions(options, id)); } + private static ApplianceFirewallFirewalledServicesArgs makeArgs(ApplianceFirewallFirewalledServicesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceFirewallFirewalledServicesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallInboundFirewallRules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallInboundFirewallRules.java index d5fd24de..35a789b3 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallInboundFirewallRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallInboundFirewallRules.java @@ -155,13 +155,20 @@ public ApplianceFirewallInboundFirewallRules(String name, ApplianceFirewallInbou * @param options A bag of options that control this resource's behavior. */ public ApplianceFirewallInboundFirewallRules(String name, ApplianceFirewallInboundFirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceFirewallInboundFirewallRules:ApplianceFirewallInboundFirewallRules", name, args == null ? ApplianceFirewallInboundFirewallRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceFirewallInboundFirewallRules:ApplianceFirewallInboundFirewallRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceFirewallInboundFirewallRules(String name, Output id, @Nullable ApplianceFirewallInboundFirewallRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceFirewallInboundFirewallRules:ApplianceFirewallInboundFirewallRules", name, state, makeResourceOptions(options, id)); } + private static ApplianceFirewallInboundFirewallRulesArgs makeArgs(ApplianceFirewallInboundFirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceFirewallInboundFirewallRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallL3FirewallRules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallL3FirewallRules.java index 02aaa08d..e3696951 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallL3FirewallRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallL3FirewallRules.java @@ -154,13 +154,20 @@ public ApplianceFirewallL3FirewallRules(String name, ApplianceFirewallL3Firewall * @param options A bag of options that control this resource's behavior. */ public ApplianceFirewallL3FirewallRules(String name, ApplianceFirewallL3FirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceFirewallL3FirewallRules:ApplianceFirewallL3FirewallRules", name, args == null ? ApplianceFirewallL3FirewallRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceFirewallL3FirewallRules:ApplianceFirewallL3FirewallRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceFirewallL3FirewallRules(String name, Output id, @Nullable ApplianceFirewallL3FirewallRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceFirewallL3FirewallRules:ApplianceFirewallL3FirewallRules", name, state, makeResourceOptions(options, id)); } + private static ApplianceFirewallL3FirewallRulesArgs makeArgs(ApplianceFirewallL3FirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceFirewallL3FirewallRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallL7FirewallRules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallL7FirewallRules.java index 63fd8568..49a510ea 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallL7FirewallRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallL7FirewallRules.java @@ -220,13 +220,20 @@ public ApplianceFirewallL7FirewallRules(String name, ApplianceFirewallL7Firewall * @param options A bag of options that control this resource's behavior. */ public ApplianceFirewallL7FirewallRules(String name, ApplianceFirewallL7FirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceFirewallL7FirewallRules:ApplianceFirewallL7FirewallRules", name, args == null ? ApplianceFirewallL7FirewallRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceFirewallL7FirewallRules:ApplianceFirewallL7FirewallRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceFirewallL7FirewallRules(String name, Output id, @Nullable ApplianceFirewallL7FirewallRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceFirewallL7FirewallRules:ApplianceFirewallL7FirewallRules", name, state, makeResourceOptions(options, id)); } + private static ApplianceFirewallL7FirewallRulesArgs makeArgs(ApplianceFirewallL7FirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceFirewallL7FirewallRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallOneToManyNatRules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallOneToManyNatRules.java index 26183995..73eb992c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallOneToManyNatRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallOneToManyNatRules.java @@ -118,13 +118,20 @@ public ApplianceFirewallOneToManyNatRules(String name, ApplianceFirewallOneToMan * @param options A bag of options that control this resource's behavior. */ public ApplianceFirewallOneToManyNatRules(String name, ApplianceFirewallOneToManyNatRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceFirewallOneToManyNatRules:ApplianceFirewallOneToManyNatRules", name, args == null ? ApplianceFirewallOneToManyNatRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceFirewallOneToManyNatRules:ApplianceFirewallOneToManyNatRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceFirewallOneToManyNatRules(String name, Output id, @Nullable ApplianceFirewallOneToManyNatRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceFirewallOneToManyNatRules:ApplianceFirewallOneToManyNatRules", name, state, makeResourceOptions(options, id)); } + private static ApplianceFirewallOneToManyNatRulesArgs makeArgs(ApplianceFirewallOneToManyNatRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceFirewallOneToManyNatRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallOneToOneNatRules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallOneToOneNatRules.java index ec6e6c1f..dd4c4a28 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallOneToOneNatRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallOneToOneNatRules.java @@ -120,13 +120,20 @@ public ApplianceFirewallOneToOneNatRules(String name, ApplianceFirewallOneToOneN * @param options A bag of options that control this resource's behavior. */ public ApplianceFirewallOneToOneNatRules(String name, ApplianceFirewallOneToOneNatRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceFirewallOneToOneNatRules:ApplianceFirewallOneToOneNatRules", name, args == null ? ApplianceFirewallOneToOneNatRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceFirewallOneToOneNatRules:ApplianceFirewallOneToOneNatRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceFirewallOneToOneNatRules(String name, Output id, @Nullable ApplianceFirewallOneToOneNatRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceFirewallOneToOneNatRules:ApplianceFirewallOneToOneNatRules", name, state, makeResourceOptions(options, id)); } + private static ApplianceFirewallOneToOneNatRulesArgs makeArgs(ApplianceFirewallOneToOneNatRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceFirewallOneToOneNatRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallPortForwardingRules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallPortForwardingRules.java index 9941929f..76cf620d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallPortForwardingRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallPortForwardingRules.java @@ -122,13 +122,20 @@ public ApplianceFirewallPortForwardingRules(String name, ApplianceFirewallPortFo * @param options A bag of options that control this resource's behavior. */ public ApplianceFirewallPortForwardingRules(String name, ApplianceFirewallPortForwardingRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceFirewallPortForwardingRules:ApplianceFirewallPortForwardingRules", name, args == null ? ApplianceFirewallPortForwardingRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceFirewallPortForwardingRules:ApplianceFirewallPortForwardingRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceFirewallPortForwardingRules(String name, Output id, @Nullable ApplianceFirewallPortForwardingRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceFirewallPortForwardingRules:ApplianceFirewallPortForwardingRules", name, state, makeResourceOptions(options, id)); } + private static ApplianceFirewallPortForwardingRulesArgs makeArgs(ApplianceFirewallPortForwardingRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceFirewallPortForwardingRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallSettings.java index 15d21a9d..bea9be74 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceFirewallSettings.java @@ -115,13 +115,20 @@ public ApplianceFirewallSettings(String name, ApplianceFirewallSettingsArgs args * @param options A bag of options that control this resource's behavior. */ public ApplianceFirewallSettings(String name, ApplianceFirewallSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceFirewallSettings:ApplianceFirewallSettings", name, args == null ? ApplianceFirewallSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceFirewallSettings:ApplianceFirewallSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceFirewallSettings(String name, Output id, @Nullable ApplianceFirewallSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceFirewallSettings:ApplianceFirewallSettings", name, state, makeResourceOptions(options, id)); } + private static ApplianceFirewallSettingsArgs makeArgs(ApplianceFirewallSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceFirewallSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/AppliancePorts.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/AppliancePorts.java index 9c97addf..f3a757dc 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/AppliancePorts.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/AppliancePorts.java @@ -217,13 +217,20 @@ public AppliancePorts(String name, AppliancePortsArgs args) { * @param options A bag of options that control this resource's behavior. */ public AppliancePorts(String name, AppliancePortsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/appliancePorts:AppliancePorts", name, args == null ? AppliancePortsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/appliancePorts:AppliancePorts", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AppliancePorts(String name, Output id, @Nullable AppliancePortsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/appliancePorts:AppliancePorts", name, state, makeResourceOptions(options, id)); } + private static AppliancePortsArgs makeArgs(AppliancePortsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AppliancePortsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/AppliancePrefixesDelegatedStatics.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/AppliancePrefixesDelegatedStatics.java index ebaae6bf..04a579e9 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/AppliancePrefixesDelegatedStatics.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/AppliancePrefixesDelegatedStatics.java @@ -188,13 +188,20 @@ public AppliancePrefixesDelegatedStatics(String name, AppliancePrefixesDelegated * @param options A bag of options that control this resource's behavior. */ public AppliancePrefixesDelegatedStatics(String name, AppliancePrefixesDelegatedStaticsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/appliancePrefixesDelegatedStatics:AppliancePrefixesDelegatedStatics", name, args == null ? AppliancePrefixesDelegatedStaticsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/appliancePrefixesDelegatedStatics:AppliancePrefixesDelegatedStatics", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AppliancePrefixesDelegatedStatics(String name, Output id, @Nullable AppliancePrefixesDelegatedStaticsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/appliancePrefixesDelegatedStatics:AppliancePrefixesDelegatedStatics", name, state, makeResourceOptions(options, id)); } + private static AppliancePrefixesDelegatedStaticsArgs makeArgs(AppliancePrefixesDelegatedStaticsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AppliancePrefixesDelegatedStaticsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceRfProfiles.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceRfProfiles.java index 397b4e3e..b8f1df6d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceRfProfiles.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceRfProfiles.java @@ -188,13 +188,20 @@ public ApplianceRfProfiles(String name, ApplianceRfProfilesArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApplianceRfProfiles(String name, ApplianceRfProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceRfProfiles:ApplianceRfProfiles", name, args == null ? ApplianceRfProfilesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceRfProfiles:ApplianceRfProfiles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceRfProfiles(String name, Output id, @Nullable ApplianceRfProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceRfProfiles:ApplianceRfProfiles", name, state, makeResourceOptions(options, id)); } + private static ApplianceRfProfilesArgs makeArgs(ApplianceRfProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceRfProfilesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSecurityIntrusion.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSecurityIntrusion.java index 8dd56234..ec442344 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSecurityIntrusion.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSecurityIntrusion.java @@ -153,13 +153,20 @@ public ApplianceSecurityIntrusion(String name, ApplianceSecurityIntrusionArgs ar * @param options A bag of options that control this resource's behavior. */ public ApplianceSecurityIntrusion(String name, ApplianceSecurityIntrusionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceSecurityIntrusion:ApplianceSecurityIntrusion", name, args == null ? ApplianceSecurityIntrusionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceSecurityIntrusion:ApplianceSecurityIntrusion", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceSecurityIntrusion(String name, Output id, @Nullable ApplianceSecurityIntrusionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceSecurityIntrusion:ApplianceSecurityIntrusion", name, state, makeResourceOptions(options, id)); } + private static ApplianceSecurityIntrusionArgs makeArgs(ApplianceSecurityIntrusionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceSecurityIntrusionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSecurityMalware.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSecurityMalware.java index 2434357a..f7b66319 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSecurityMalware.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSecurityMalware.java @@ -152,13 +152,20 @@ public ApplianceSecurityMalware(String name, ApplianceSecurityMalwareArgs args) * @param options A bag of options that control this resource's behavior. */ public ApplianceSecurityMalware(String name, ApplianceSecurityMalwareArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceSecurityMalware:ApplianceSecurityMalware", name, args == null ? ApplianceSecurityMalwareArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceSecurityMalware:ApplianceSecurityMalware", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceSecurityMalware(String name, Output id, @Nullable ApplianceSecurityMalwareState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceSecurityMalware:ApplianceSecurityMalware", name, state, makeResourceOptions(options, id)); } + private static ApplianceSecurityMalwareArgs makeArgs(ApplianceSecurityMalwareArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceSecurityMalwareArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSettings.java index 28c1f868..e4c792c7 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSettings.java @@ -146,13 +146,20 @@ public ApplianceSettings(String name, ApplianceSettingsArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApplianceSettings(String name, ApplianceSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceSettings:ApplianceSettings", name, args == null ? ApplianceSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceSettings:ApplianceSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceSettings(String name, Output id, @Nullable ApplianceSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceSettings:ApplianceSettings", name, state, makeResourceOptions(options, id)); } + private static ApplianceSettingsArgs makeArgs(ApplianceSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSingleLan.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSingleLan.java index 15b17840..74c18822 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSingleLan.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSingleLan.java @@ -165,13 +165,20 @@ public ApplianceSingleLan(String name, ApplianceSingleLanArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApplianceSingleLan(String name, ApplianceSingleLanArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceSingleLan:ApplianceSingleLan", name, args == null ? ApplianceSingleLanArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceSingleLan:ApplianceSingleLan", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceSingleLan(String name, Output id, @Nullable ApplianceSingleLanState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceSingleLan:ApplianceSingleLan", name, state, makeResourceOptions(options, id)); } + private static ApplianceSingleLanArgs makeArgs(ApplianceSingleLanArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceSingleLanArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSsids.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSsids.java index 93f58530..ba4e2055 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSsids.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceSsids.java @@ -309,13 +309,20 @@ public ApplianceSsids(String name, ApplianceSsidsArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApplianceSsids(String name, ApplianceSsidsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceSsids:ApplianceSsids", name, args == null ? ApplianceSsidsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceSsids:ApplianceSsids", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceSsids(String name, Output id, @Nullable ApplianceSsidsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceSsids:ApplianceSsids", name, state, makeResourceOptions(options, id)); } + private static ApplianceSsidsArgs makeArgs(ApplianceSsidsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceSsidsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShaping.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShaping.java index a52f625d..6bcbaacd 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShaping.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShaping.java @@ -116,13 +116,20 @@ public ApplianceTrafficShaping(String name, ApplianceTrafficShapingArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApplianceTrafficShaping(String name, ApplianceTrafficShapingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceTrafficShaping:ApplianceTrafficShaping", name, args == null ? ApplianceTrafficShapingArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceTrafficShaping:ApplianceTrafficShaping", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceTrafficShaping(String name, Output id, @Nullable ApplianceTrafficShapingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceTrafficShaping:ApplianceTrafficShaping", name, state, makeResourceOptions(options, id)); } + private static ApplianceTrafficShapingArgs makeArgs(ApplianceTrafficShapingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceTrafficShapingArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingCustomPerformanceClasses.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingCustomPerformanceClasses.java index 662e9982..452d2281 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingCustomPerformanceClasses.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingCustomPerformanceClasses.java @@ -107,13 +107,20 @@ public ApplianceTrafficShapingCustomPerformanceClasses(String name, ApplianceTra * @param options A bag of options that control this resource's behavior. */ public ApplianceTrafficShapingCustomPerformanceClasses(String name, ApplianceTrafficShapingCustomPerformanceClassesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceTrafficShapingCustomPerformanceClasses:ApplianceTrafficShapingCustomPerformanceClasses", name, args == null ? ApplianceTrafficShapingCustomPerformanceClassesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceTrafficShapingCustomPerformanceClasses:ApplianceTrafficShapingCustomPerformanceClasses", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceTrafficShapingCustomPerformanceClasses(String name, Output id, @Nullable ApplianceTrafficShapingCustomPerformanceClassesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceTrafficShapingCustomPerformanceClasses:ApplianceTrafficShapingCustomPerformanceClasses", name, state, makeResourceOptions(options, id)); } + private static ApplianceTrafficShapingCustomPerformanceClassesArgs makeArgs(ApplianceTrafficShapingCustomPerformanceClassesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceTrafficShapingCustomPerformanceClassesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingRules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingRules.java index ee9efac4..5b350206 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingRules.java @@ -142,13 +142,20 @@ public ApplianceTrafficShapingRules(String name, ApplianceTrafficShapingRulesArg * @param options A bag of options that control this resource's behavior. */ public ApplianceTrafficShapingRules(String name, ApplianceTrafficShapingRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceTrafficShapingRules:ApplianceTrafficShapingRules", name, args == null ? ApplianceTrafficShapingRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceTrafficShapingRules:ApplianceTrafficShapingRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceTrafficShapingRules(String name, Output id, @Nullable ApplianceTrafficShapingRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceTrafficShapingRules:ApplianceTrafficShapingRules", name, state, makeResourceOptions(options, id)); } + private static ApplianceTrafficShapingRulesArgs makeArgs(ApplianceTrafficShapingRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceTrafficShapingRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingUplinkBandwidth.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingUplinkBandwidth.java index 2f0de85a..464a65de 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingUplinkBandwidth.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingUplinkBandwidth.java @@ -129,13 +129,20 @@ public ApplianceTrafficShapingUplinkBandwidth(String name, ApplianceTrafficShapi * @param options A bag of options that control this resource's behavior. */ public ApplianceTrafficShapingUplinkBandwidth(String name, ApplianceTrafficShapingUplinkBandwidthArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceTrafficShapingUplinkBandwidth:ApplianceTrafficShapingUplinkBandwidth", name, args == null ? ApplianceTrafficShapingUplinkBandwidthArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceTrafficShapingUplinkBandwidth:ApplianceTrafficShapingUplinkBandwidth", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceTrafficShapingUplinkBandwidth(String name, Output id, @Nullable ApplianceTrafficShapingUplinkBandwidthState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceTrafficShapingUplinkBandwidth:ApplianceTrafficShapingUplinkBandwidth", name, state, makeResourceOptions(options, id)); } + private static ApplianceTrafficShapingUplinkBandwidthArgs makeArgs(ApplianceTrafficShapingUplinkBandwidthArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceTrafficShapingUplinkBandwidthArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingUplinkSelection.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingUplinkSelection.java index c6761bc0..1da743ef 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingUplinkSelection.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingUplinkSelection.java @@ -207,13 +207,20 @@ public ApplianceTrafficShapingUplinkSelection(String name, ApplianceTrafficShapi * @param options A bag of options that control this resource's behavior. */ public ApplianceTrafficShapingUplinkSelection(String name, ApplianceTrafficShapingUplinkSelectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceTrafficShapingUplinkSelection:ApplianceTrafficShapingUplinkSelection", name, args == null ? ApplianceTrafficShapingUplinkSelectionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceTrafficShapingUplinkSelection:ApplianceTrafficShapingUplinkSelection", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceTrafficShapingUplinkSelection(String name, Output id, @Nullable ApplianceTrafficShapingUplinkSelectionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceTrafficShapingUplinkSelection:ApplianceTrafficShapingUplinkSelection", name, state, makeResourceOptions(options, id)); } + private static ApplianceTrafficShapingUplinkSelectionArgs makeArgs(ApplianceTrafficShapingUplinkSelectionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceTrafficShapingUplinkSelectionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingVpnExclusions.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingVpnExclusions.java index d6c564b6..e2f7414e 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingVpnExclusions.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceTrafficShapingVpnExclusions.java @@ -112,13 +112,20 @@ public ApplianceTrafficShapingVpnExclusions(String name, ApplianceTrafficShaping * @param options A bag of options that control this resource's behavior. */ public ApplianceTrafficShapingVpnExclusions(String name, ApplianceTrafficShapingVpnExclusionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceTrafficShapingVpnExclusions:ApplianceTrafficShapingVpnExclusions", name, args == null ? ApplianceTrafficShapingVpnExclusionsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceTrafficShapingVpnExclusions:ApplianceTrafficShapingVpnExclusions", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceTrafficShapingVpnExclusions(String name, Output id, @Nullable ApplianceTrafficShapingVpnExclusionsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceTrafficShapingVpnExclusions:ApplianceTrafficShapingVpnExclusions", name, state, makeResourceOptions(options, id)); } + private static ApplianceTrafficShapingVpnExclusionsArgs makeArgs(ApplianceTrafficShapingVpnExclusionsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceTrafficShapingVpnExclusionsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVlans.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVlans.java index 331d6663..f65c829d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVlans.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVlans.java @@ -415,13 +415,20 @@ public ApplianceVlans(String name, ApplianceVlansArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApplianceVlans(String name, ApplianceVlansArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceVlans:ApplianceVlans", name, args == null ? ApplianceVlansArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceVlans:ApplianceVlans", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceVlans(String name, Output id, @Nullable ApplianceVlansState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceVlans:ApplianceVlans", name, state, makeResourceOptions(options, id)); } + private static ApplianceVlansArgs makeArgs(ApplianceVlansArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceVlansArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVlansSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVlansSettings.java index 4ce0bd09..2c68917c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVlansSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVlansSettings.java @@ -112,13 +112,20 @@ public ApplianceVlansSettings(String name, ApplianceVlansSettingsArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApplianceVlansSettings(String name, ApplianceVlansSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceVlansSettings:ApplianceVlansSettings", name, args == null ? ApplianceVlansSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceVlansSettings:ApplianceVlansSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceVlansSettings(String name, Output id, @Nullable ApplianceVlansSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceVlansSettings:ApplianceVlansSettings", name, state, makeResourceOptions(options, id)); } + private static ApplianceVlansSettingsArgs makeArgs(ApplianceVlansSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceVlansSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVpnBgp.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVpnBgp.java index d3f81216..f74d7f7b 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVpnBgp.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVpnBgp.java @@ -168,13 +168,20 @@ public ApplianceVpnBgp(String name, ApplianceVpnBgpArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApplianceVpnBgp(String name, ApplianceVpnBgpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceVpnBgp:ApplianceVpnBgp", name, args == null ? ApplianceVpnBgpArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceVpnBgp:ApplianceVpnBgp", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceVpnBgp(String name, Output id, @Nullable ApplianceVpnBgpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceVpnBgp:ApplianceVpnBgp", name, state, makeResourceOptions(options, id)); } + private static ApplianceVpnBgpArgs makeArgs(ApplianceVpnBgpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceVpnBgpArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVpnSiteToSiteVpn.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVpnSiteToSiteVpn.java index f548ccae..54169db6 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVpnSiteToSiteVpn.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceVpnSiteToSiteVpn.java @@ -152,13 +152,20 @@ public ApplianceVpnSiteToSiteVpn(String name, ApplianceVpnSiteToSiteVpnArgs args * @param options A bag of options that control this resource's behavior. */ public ApplianceVpnSiteToSiteVpn(String name, ApplianceVpnSiteToSiteVpnArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceVpnSiteToSiteVpn:ApplianceVpnSiteToSiteVpn", name, args == null ? ApplianceVpnSiteToSiteVpnArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceVpnSiteToSiteVpn:ApplianceVpnSiteToSiteVpn", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceVpnSiteToSiteVpn(String name, Output id, @Nullable ApplianceVpnSiteToSiteVpnState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceVpnSiteToSiteVpn:ApplianceVpnSiteToSiteVpn", name, state, makeResourceOptions(options, id)); } + private static ApplianceVpnSiteToSiteVpnArgs makeArgs(ApplianceVpnSiteToSiteVpnArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceVpnSiteToSiteVpnArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceWarmSpare.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceWarmSpare.java index a7878955..00f22f2a 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceWarmSpare.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceWarmSpare.java @@ -192,13 +192,20 @@ public ApplianceWarmSpare(String name, ApplianceWarmSpareArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApplianceWarmSpare(String name, ApplianceWarmSpareArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceWarmSpare:ApplianceWarmSpare", name, args == null ? ApplianceWarmSpareArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceWarmSpare:ApplianceWarmSpare", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceWarmSpare(String name, Output id, @Nullable ApplianceWarmSpareState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceWarmSpare:ApplianceWarmSpare", name, state, makeResourceOptions(options, id)); } + private static ApplianceWarmSpareArgs makeArgs(ApplianceWarmSpareArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceWarmSpareArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceWarmSpareSwap.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceWarmSpareSwap.java index a9338fa6..5abb49e7 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceWarmSpareSwap.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ApplianceWarmSpareSwap.java @@ -93,13 +93,20 @@ public ApplianceWarmSpareSwap(String name, ApplianceWarmSpareSwapArgs args) { * @param options A bag of options that control this resource's behavior. */ public ApplianceWarmSpareSwap(String name, ApplianceWarmSpareSwapArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/applianceWarmSpareSwap:ApplianceWarmSpareSwap", name, args == null ? ApplianceWarmSpareSwapArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/applianceWarmSpareSwap:ApplianceWarmSpareSwap", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceWarmSpareSwap(String name, Output id, @Nullable ApplianceWarmSpareSwapState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/applianceWarmSpareSwap:ApplianceWarmSpareSwap", name, state, makeResourceOptions(options, id)); } + private static ApplianceWarmSpareSwapArgs makeArgs(ApplianceWarmSpareSwapArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceWarmSpareSwapArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/Base.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/Base.java index a9f850db..4839e69c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/Base.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/Base.java @@ -234,13 +234,20 @@ public Base(String name, BaseArgs args) { * @param options A bag of options that control this resource's behavior. */ public Base(String name, BaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/base:base", name, args == null ? BaseArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/base:base", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Base(String name, Output id, @Nullable BaseState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/base:base", name, state, makeResourceOptions(options, id)); } + private static BaseArgs makeArgs(BaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BaseArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/Bind.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/Bind.java index 40da698c..9cef1dad 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/Bind.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/Bind.java @@ -112,13 +112,20 @@ public Bind(String name, BindArgs args) { * @param options A bag of options that control this resource's behavior. */ public Bind(String name, BindArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/bind:Bind", name, args == null ? BindArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/bind:Bind", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Bind(String name, Output id, @Nullable BindState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/bind:Bind", name, state, makeResourceOptions(options, id)); } + private static BindArgs makeArgs(BindArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BindArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/CameraQualityRetentionProfiles.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/CameraQualityRetentionProfiles.java index 4f74db38..ad8d7670 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/CameraQualityRetentionProfiles.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/CameraQualityRetentionProfiles.java @@ -240,13 +240,20 @@ public CameraQualityRetentionProfiles(String name, CameraQualityRetentionProfile * @param options A bag of options that control this resource's behavior. */ public CameraQualityRetentionProfiles(String name, CameraQualityRetentionProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/cameraQualityRetentionProfiles:CameraQualityRetentionProfiles", name, args == null ? CameraQualityRetentionProfilesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/cameraQualityRetentionProfiles:CameraQualityRetentionProfiles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CameraQualityRetentionProfiles(String name, Output id, @Nullable CameraQualityRetentionProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/cameraQualityRetentionProfiles:CameraQualityRetentionProfiles", name, state, makeResourceOptions(options, id)); } + private static CameraQualityRetentionProfilesArgs makeArgs(CameraQualityRetentionProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CameraQualityRetentionProfilesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/CameraWirelessProfiles.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/CameraWirelessProfiles.java index 9d69cb13..e9610f1d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/CameraWirelessProfiles.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/CameraWirelessProfiles.java @@ -169,13 +169,20 @@ public CameraWirelessProfiles(String name, CameraWirelessProfilesArgs args) { * @param options A bag of options that control this resource's behavior. */ public CameraWirelessProfiles(String name, CameraWirelessProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/cameraWirelessProfiles:CameraWirelessProfiles", name, args == null ? CameraWirelessProfilesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/cameraWirelessProfiles:CameraWirelessProfiles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CameraWirelessProfiles(String name, Output id, @Nullable CameraWirelessProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/cameraWirelessProfiles:CameraWirelessProfiles", name, state, makeResourceOptions(options, id)); } + private static CameraWirelessProfilesArgs makeArgs(CameraWirelessProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CameraWirelessProfilesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewayConnectivityMonitoringDestinations.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewayConnectivityMonitoringDestinations.java index a10a8562..7d821d92 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewayConnectivityMonitoringDestinations.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewayConnectivityMonitoringDestinations.java @@ -118,13 +118,20 @@ public CellularGatewayConnectivityMonitoringDestinations(String name, CellularGa * @param options A bag of options that control this resource's behavior. */ public CellularGatewayConnectivityMonitoringDestinations(String name, CellularGatewayConnectivityMonitoringDestinationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/cellularGatewayConnectivityMonitoringDestinations:CellularGatewayConnectivityMonitoringDestinations", name, args == null ? CellularGatewayConnectivityMonitoringDestinationsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/cellularGatewayConnectivityMonitoringDestinations:CellularGatewayConnectivityMonitoringDestinations", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CellularGatewayConnectivityMonitoringDestinations(String name, Output id, @Nullable CellularGatewayConnectivityMonitoringDestinationsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/cellularGatewayConnectivityMonitoringDestinations:CellularGatewayConnectivityMonitoringDestinations", name, state, makeResourceOptions(options, id)); } + private static CellularGatewayConnectivityMonitoringDestinationsArgs makeArgs(CellularGatewayConnectivityMonitoringDestinationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CellularGatewayConnectivityMonitoringDestinationsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewayDhcp.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewayDhcp.java index f4a07f33..09d7f9ad 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewayDhcp.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewayDhcp.java @@ -144,13 +144,20 @@ public CellularGatewayDhcp(String name, CellularGatewayDhcpArgs args) { * @param options A bag of options that control this resource's behavior. */ public CellularGatewayDhcp(String name, CellularGatewayDhcpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/cellularGatewayDhcp:CellularGatewayDhcp", name, args == null ? CellularGatewayDhcpArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/cellularGatewayDhcp:CellularGatewayDhcp", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CellularGatewayDhcp(String name, Output id, @Nullable CellularGatewayDhcpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/cellularGatewayDhcp:CellularGatewayDhcp", name, state, makeResourceOptions(options, id)); } + private static CellularGatewayDhcpArgs makeArgs(CellularGatewayDhcpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CellularGatewayDhcpArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewaySubnetPool.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewaySubnetPool.java index 1ccc8641..307dceed 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewaySubnetPool.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewaySubnetPool.java @@ -141,13 +141,20 @@ public CellularGatewaySubnetPool(String name, CellularGatewaySubnetPoolArgs args * @param options A bag of options that control this resource's behavior. */ public CellularGatewaySubnetPool(String name, CellularGatewaySubnetPoolArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/cellularGatewaySubnetPool:CellularGatewaySubnetPool", name, args == null ? CellularGatewaySubnetPoolArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/cellularGatewaySubnetPool:CellularGatewaySubnetPool", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CellularGatewaySubnetPool(String name, Output id, @Nullable CellularGatewaySubnetPoolState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/cellularGatewaySubnetPool:CellularGatewaySubnetPool", name, state, makeResourceOptions(options, id)); } + private static CellularGatewaySubnetPoolArgs makeArgs(CellularGatewaySubnetPoolArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CellularGatewaySubnetPoolArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewayUplink.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewayUplink.java index 2cd77f92..f2c45bf6 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewayUplink.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/CellularGatewayUplink.java @@ -116,13 +116,20 @@ public CellularGatewayUplink(String name, CellularGatewayUplinkArgs args) { * @param options A bag of options that control this resource's behavior. */ public CellularGatewayUplink(String name, CellularGatewayUplinkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/cellularGatewayUplink:CellularGatewayUplink", name, args == null ? CellularGatewayUplinkArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/cellularGatewayUplink:CellularGatewayUplink", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CellularGatewayUplink(String name, Output id, @Nullable CellularGatewayUplinkState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/cellularGatewayUplink:CellularGatewayUplink", name, state, makeResourceOptions(options, id)); } + private static CellularGatewayUplinkArgs makeArgs(CellularGatewayUplinkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CellularGatewayUplinkArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ClientsPolicy.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ClientsPolicy.java index 7c6d1696..b0ee6cf4 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ClientsPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ClientsPolicy.java @@ -155,13 +155,20 @@ public ClientsPolicy(String name, ClientsPolicyArgs args) { * @param options A bag of options that control this resource's behavior. */ public ClientsPolicy(String name, ClientsPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/clientsPolicy:ClientsPolicy", name, args == null ? ClientsPolicyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/clientsPolicy:ClientsPolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ClientsPolicy(String name, Output id, @Nullable ClientsPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/clientsPolicy:ClientsPolicy", name, state, makeResourceOptions(options, id)); } + private static ClientsPolicyArgs makeArgs(ClientsPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ClientsPolicyArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ClientsProvision.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ClientsProvision.java index 1e07c8f4..70b6c77a 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ClientsProvision.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ClientsProvision.java @@ -118,13 +118,20 @@ public ClientsProvision(String name, ClientsProvisionArgs args) { * @param options A bag of options that control this resource's behavior. */ public ClientsProvision(String name, ClientsProvisionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/clientsProvision:ClientsProvision", name, args == null ? ClientsProvisionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/clientsProvision:ClientsProvision", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ClientsProvision(String name, Output id, @Nullable ClientsProvisionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/clientsProvision:ClientsProvision", name, state, makeResourceOptions(options, id)); } + private static ClientsProvisionArgs makeArgs(ClientsProvisionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ClientsProvisionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/ClientsSplashAuthorizationStatus.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/ClientsSplashAuthorizationStatus.java index e69e8e82..f517ef97 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/ClientsSplashAuthorizationStatus.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/ClientsSplashAuthorizationStatus.java @@ -131,13 +131,20 @@ public ClientsSplashAuthorizationStatus(String name, ClientsSplashAuthorizationS * @param options A bag of options that control this resource's behavior. */ public ClientsSplashAuthorizationStatus(String name, ClientsSplashAuthorizationStatusArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/clientsSplashAuthorizationStatus:ClientsSplashAuthorizationStatus", name, args == null ? ClientsSplashAuthorizationStatusArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/clientsSplashAuthorizationStatus:ClientsSplashAuthorizationStatus", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ClientsSplashAuthorizationStatus(String name, Output id, @Nullable ClientsSplashAuthorizationStatusState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/clientsSplashAuthorizationStatus:ClientsSplashAuthorizationStatus", name, state, makeResourceOptions(options, id)); } + private static ClientsSplashAuthorizationStatusArgs makeArgs(ClientsSplashAuthorizationStatusArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ClientsSplashAuthorizationStatusArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/DevicesClaim.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/DevicesClaim.java index af0a0c95..953bfa28 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/DevicesClaim.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/DevicesClaim.java @@ -114,13 +114,20 @@ public DevicesClaim(String name, DevicesClaimArgs args) { * @param options A bag of options that control this resource's behavior. */ public DevicesClaim(String name, DevicesClaimArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/devicesClaim:DevicesClaim", name, args == null ? DevicesClaimArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/devicesClaim:DevicesClaim", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private DevicesClaim(String name, Output id, @Nullable DevicesClaimState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/devicesClaim:DevicesClaim", name, state, makeResourceOptions(options, id)); } + private static DevicesClaimArgs makeArgs(DevicesClaimArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? DevicesClaimArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/DevicesClaimVmx.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/DevicesClaimVmx.java index e22fb090..2bc6faf6 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/DevicesClaimVmx.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/DevicesClaimVmx.java @@ -111,13 +111,20 @@ public DevicesClaimVmx(String name, DevicesClaimVmxArgs args) { * @param options A bag of options that control this resource's behavior. */ public DevicesClaimVmx(String name, DevicesClaimVmxArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/devicesClaimVmx:DevicesClaimVmx", name, args == null ? DevicesClaimVmxArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/devicesClaimVmx:DevicesClaimVmx", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private DevicesClaimVmx(String name, Output id, @Nullable DevicesClaimVmxState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/devicesClaimVmx:DevicesClaimVmx", name, state, makeResourceOptions(options, id)); } + private static DevicesClaimVmxArgs makeArgs(DevicesClaimVmxArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? DevicesClaimVmxArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/DevicesRemove.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/DevicesRemove.java index c9d146f4..29b9bead 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/DevicesRemove.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/DevicesRemove.java @@ -104,13 +104,20 @@ public DevicesRemove(String name, DevicesRemoveArgs args) { * @param options A bag of options that control this resource's behavior. */ public DevicesRemove(String name, DevicesRemoveArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/devicesRemove:DevicesRemove", name, args == null ? DevicesRemoveArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/devicesRemove:DevicesRemove", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private DevicesRemove(String name, Output id, @Nullable DevicesRemoveState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/devicesRemove:DevicesRemove", name, state, makeResourceOptions(options, id)); } + private static DevicesRemoveArgs makeArgs(DevicesRemoveArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? DevicesRemoveArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgrades.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgrades.java index 809f380e..a2c10255 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgrades.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgrades.java @@ -211,13 +211,20 @@ public FirmwareUpgrades(String name, FirmwareUpgradesArgs args) { * @param options A bag of options that control this resource's behavior. */ public FirmwareUpgrades(String name, FirmwareUpgradesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/firmwareUpgrades:FirmwareUpgrades", name, args == null ? FirmwareUpgradesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/firmwareUpgrades:FirmwareUpgrades", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private FirmwareUpgrades(String name, Output id, @Nullable FirmwareUpgradesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/firmwareUpgrades:FirmwareUpgrades", name, state, makeResourceOptions(options, id)); } + private static FirmwareUpgradesArgs makeArgs(FirmwareUpgradesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? FirmwareUpgradesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesRollbacks.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesRollbacks.java index 67401c7f..98e8977b 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesRollbacks.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesRollbacks.java @@ -117,13 +117,20 @@ public FirmwareUpgradesRollbacks(String name, FirmwareUpgradesRollbacksArgs args * @param options A bag of options that control this resource's behavior. */ public FirmwareUpgradesRollbacks(String name, FirmwareUpgradesRollbacksArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/firmwareUpgradesRollbacks:FirmwareUpgradesRollbacks", name, args == null ? FirmwareUpgradesRollbacksArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/firmwareUpgradesRollbacks:FirmwareUpgradesRollbacks", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private FirmwareUpgradesRollbacks(String name, Output id, @Nullable FirmwareUpgradesRollbacksState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/firmwareUpgradesRollbacks:FirmwareUpgradesRollbacks", name, state, makeResourceOptions(options, id)); } + private static FirmwareUpgradesRollbacksArgs makeArgs(FirmwareUpgradesRollbacksArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? FirmwareUpgradesRollbacksArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedEvents.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedEvents.java index 98bd27a3..af1f1148 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedEvents.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedEvents.java @@ -167,13 +167,20 @@ public FirmwareUpgradesStagedEvents(String name, FirmwareUpgradesStagedEventsArg * @param options A bag of options that control this resource's behavior. */ public FirmwareUpgradesStagedEvents(String name, FirmwareUpgradesStagedEventsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/firmwareUpgradesStagedEvents:FirmwareUpgradesStagedEvents", name, args == null ? FirmwareUpgradesStagedEventsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/firmwareUpgradesStagedEvents:FirmwareUpgradesStagedEvents", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private FirmwareUpgradesStagedEvents(String name, Output id, @Nullable FirmwareUpgradesStagedEventsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/firmwareUpgradesStagedEvents:FirmwareUpgradesStagedEvents", name, state, makeResourceOptions(options, id)); } + private static FirmwareUpgradesStagedEventsArgs makeArgs(FirmwareUpgradesStagedEventsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? FirmwareUpgradesStagedEventsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedEventsDefer.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedEventsDefer.java index 0d84ec06..c84717dd 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedEventsDefer.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedEventsDefer.java @@ -100,13 +100,20 @@ public FirmwareUpgradesStagedEventsDefer(String name, FirmwareUpgradesStagedEven * @param options A bag of options that control this resource's behavior. */ public FirmwareUpgradesStagedEventsDefer(String name, FirmwareUpgradesStagedEventsDeferArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/firmwareUpgradesStagedEventsDefer:FirmwareUpgradesStagedEventsDefer", name, args == null ? FirmwareUpgradesStagedEventsDeferArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/firmwareUpgradesStagedEventsDefer:FirmwareUpgradesStagedEventsDefer", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private FirmwareUpgradesStagedEventsDefer(String name, Output id, @Nullable FirmwareUpgradesStagedEventsDeferState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/firmwareUpgradesStagedEventsDefer:FirmwareUpgradesStagedEventsDefer", name, state, makeResourceOptions(options, id)); } + private static FirmwareUpgradesStagedEventsDeferArgs makeArgs(FirmwareUpgradesStagedEventsDeferArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? FirmwareUpgradesStagedEventsDeferArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedEventsRollbacks.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedEventsRollbacks.java index 6742b3ff..4e49312f 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedEventsRollbacks.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedEventsRollbacks.java @@ -122,13 +122,20 @@ public FirmwareUpgradesStagedEventsRollbacks(String name, FirmwareUpgradesStaged * @param options A bag of options that control this resource's behavior. */ public FirmwareUpgradesStagedEventsRollbacks(String name, FirmwareUpgradesStagedEventsRollbacksArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/firmwareUpgradesStagedEventsRollbacks:FirmwareUpgradesStagedEventsRollbacks", name, args == null ? FirmwareUpgradesStagedEventsRollbacksArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/firmwareUpgradesStagedEventsRollbacks:FirmwareUpgradesStagedEventsRollbacks", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private FirmwareUpgradesStagedEventsRollbacks(String name, Output id, @Nullable FirmwareUpgradesStagedEventsRollbacksState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/firmwareUpgradesStagedEventsRollbacks:FirmwareUpgradesStagedEventsRollbacks", name, state, makeResourceOptions(options, id)); } + private static FirmwareUpgradesStagedEventsRollbacksArgs makeArgs(FirmwareUpgradesStagedEventsRollbacksArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? FirmwareUpgradesStagedEventsRollbacksArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedGroups.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedGroups.java index 25dc08cd..2f2c90f2 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedGroups.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedGroups.java @@ -179,13 +179,20 @@ public FirmwareUpgradesStagedGroups(String name, FirmwareUpgradesStagedGroupsArg * @param options A bag of options that control this resource's behavior. */ public FirmwareUpgradesStagedGroups(String name, FirmwareUpgradesStagedGroupsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/firmwareUpgradesStagedGroups:FirmwareUpgradesStagedGroups", name, args == null ? FirmwareUpgradesStagedGroupsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/firmwareUpgradesStagedGroups:FirmwareUpgradesStagedGroups", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private FirmwareUpgradesStagedGroups(String name, Output id, @Nullable FirmwareUpgradesStagedGroupsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/firmwareUpgradesStagedGroups:FirmwareUpgradesStagedGroups", name, state, makeResourceOptions(options, id)); } + private static FirmwareUpgradesStagedGroupsArgs makeArgs(FirmwareUpgradesStagedGroupsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? FirmwareUpgradesStagedGroupsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedStages.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedStages.java index 51130fb4..96e64885 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedStages.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/FirmwareUpgradesStagedStages.java @@ -134,13 +134,20 @@ public FirmwareUpgradesStagedStages(String name, FirmwareUpgradesStagedStagesArg * @param options A bag of options that control this resource's behavior. */ public FirmwareUpgradesStagedStages(String name, FirmwareUpgradesStagedStagesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/firmwareUpgradesStagedStages:FirmwareUpgradesStagedStages", name, args == null ? FirmwareUpgradesStagedStagesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/firmwareUpgradesStagedStages:FirmwareUpgradesStagedStages", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private FirmwareUpgradesStagedStages(String name, Output id, @Nullable FirmwareUpgradesStagedStagesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/firmwareUpgradesStagedStages:FirmwareUpgradesStagedStages", name, state, makeResourceOptions(options, id)); } + private static FirmwareUpgradesStagedStagesArgs makeArgs(FirmwareUpgradesStagedStagesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? FirmwareUpgradesStagedStagesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/FloorPlans.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/FloorPlans.java index 5459b65d..75dfcfdd 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/FloorPlans.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/FloorPlans.java @@ -283,13 +283,20 @@ public FloorPlans(String name, FloorPlansArgs args) { * @param options A bag of options that control this resource's behavior. */ public FloorPlans(String name, FloorPlansArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/floorPlans:FloorPlans", name, args == null ? FloorPlansArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/floorPlans:FloorPlans", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private FloorPlans(String name, Output id, @Nullable FloorPlansState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/floorPlans:FloorPlans", name, state, makeResourceOptions(options, id)); } + private static FloorPlansArgs makeArgs(FloorPlansArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? FloorPlansArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/GroupPolicies.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/GroupPolicies.java index c0e9acf5..64bf38c1 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/GroupPolicies.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/GroupPolicies.java @@ -308,13 +308,20 @@ public GroupPolicies(String name, GroupPoliciesArgs args) { * @param options A bag of options that control this resource's behavior. */ public GroupPolicies(String name, GroupPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/groupPolicies:GroupPolicies", name, args == null ? GroupPoliciesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/groupPolicies:GroupPolicies", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private GroupPolicies(String name, Output id, @Nullable GroupPoliciesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/groupPolicies:GroupPolicies", name, state, makeResourceOptions(options, id)); } + private static GroupPoliciesArgs makeArgs(GroupPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? GroupPoliciesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/MerakiAuthUsers.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/MerakiAuthUsers.java index 7559a438..b8f39cec 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/MerakiAuthUsers.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/MerakiAuthUsers.java @@ -237,13 +237,20 @@ public MerakiAuthUsers(String name, MerakiAuthUsersArgs args) { * @param options A bag of options that control this resource's behavior. */ public MerakiAuthUsers(String name, MerakiAuthUsersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/merakiAuthUsers:MerakiAuthUsers", name, args == null ? MerakiAuthUsersArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/merakiAuthUsers:MerakiAuthUsers", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MerakiAuthUsers(String name, Output id, @Nullable MerakiAuthUsersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/merakiAuthUsers:MerakiAuthUsers", name, state, makeResourceOptions(options, id)); } + private static MerakiAuthUsersArgs makeArgs(MerakiAuthUsersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MerakiAuthUsersArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/MqttBrokers.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/MqttBrokers.java index ffb579d9..4529b918 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/MqttBrokers.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/MqttBrokers.java @@ -127,13 +127,20 @@ public MqttBrokers(String name, MqttBrokersArgs args) { * @param options A bag of options that control this resource's behavior. */ public MqttBrokers(String name, MqttBrokersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/mqttBrokers:MqttBrokers", name, args == null ? MqttBrokersArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/mqttBrokers:MqttBrokers", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private MqttBrokers(String name, Output id, @Nullable MqttBrokersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/mqttBrokers:MqttBrokers", name, state, makeResourceOptions(options, id)); } + private static MqttBrokersArgs makeArgs(MqttBrokersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? MqttBrokersArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/Netflow.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/Netflow.java index 14d88012..4bd6279c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/Netflow.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/Netflow.java @@ -173,13 +173,20 @@ public Netflow(String name, NetflowArgs args) { * @param options A bag of options that control this resource's behavior. */ public Netflow(String name, NetflowArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/netflow:Netflow", name, args == null ? NetflowArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/netflow:Netflow", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Netflow(String name, Output id, @Nullable NetflowState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/netflow:Netflow", name, state, makeResourceOptions(options, id)); } + private static NetflowArgs makeArgs(NetflowArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? NetflowArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/PiiRequestsDelete.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/PiiRequestsDelete.java index 43077688..70fd9c9c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/PiiRequestsDelete.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/PiiRequestsDelete.java @@ -108,13 +108,20 @@ public PiiRequestsDelete(String name, PiiRequestsDeleteArgs args) { * @param options A bag of options that control this resource's behavior. */ public PiiRequestsDelete(String name, PiiRequestsDeleteArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/piiRequestsDelete:PiiRequestsDelete", name, args == null ? PiiRequestsDeleteArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/piiRequestsDelete:PiiRequestsDelete", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private PiiRequestsDelete(String name, Output id, @Nullable PiiRequestsDeleteState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/piiRequestsDelete:PiiRequestsDelete", name, state, makeResourceOptions(options, id)); } + private static PiiRequestsDeleteArgs makeArgs(PiiRequestsDeleteArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? PiiRequestsDeleteArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SensorAlertsProfiles.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SensorAlertsProfiles.java index c96da874..5e2dacda 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SensorAlertsProfiles.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SensorAlertsProfiles.java @@ -294,13 +294,20 @@ public SensorAlertsProfiles(String name, SensorAlertsProfilesArgs args) { * @param options A bag of options that control this resource's behavior. */ public SensorAlertsProfiles(String name, SensorAlertsProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/sensorAlertsProfiles:SensorAlertsProfiles", name, args == null ? SensorAlertsProfilesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/sensorAlertsProfiles:SensorAlertsProfiles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SensorAlertsProfiles(String name, Output id, @Nullable SensorAlertsProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/sensorAlertsProfiles:SensorAlertsProfiles", name, state, makeResourceOptions(options, id)); } + private static SensorAlertsProfilesArgs makeArgs(SensorAlertsProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SensorAlertsProfilesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SensorMqttBrokers.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SensorMqttBrokers.java index 0b00ce87..239dada4 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SensorMqttBrokers.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SensorMqttBrokers.java @@ -127,13 +127,20 @@ public SensorMqttBrokers(String name, SensorMqttBrokersArgs args) { * @param options A bag of options that control this resource's behavior. */ public SensorMqttBrokers(String name, SensorMqttBrokersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/sensorMqttBrokers:SensorMqttBrokers", name, args == null ? SensorMqttBrokersArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/sensorMqttBrokers:SensorMqttBrokers", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SensorMqttBrokers(String name, Output id, @Nullable SensorMqttBrokersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/sensorMqttBrokers:SensorMqttBrokers", name, state, makeResourceOptions(options, id)); } + private static SensorMqttBrokersArgs makeArgs(SensorMqttBrokersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SensorMqttBrokersArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/Settings.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/Settings.java index a30818fa..56981c7b 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/Settings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/Settings.java @@ -203,13 +203,20 @@ public Settings(String name, SettingsArgs args) { * @param options A bag of options that control this resource's behavior. */ public Settings(String name, SettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/settings:Settings", name, args == null ? SettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/settings:Settings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Settings(String name, Output id, @Nullable SettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/settings:Settings", name, state, makeResourceOptions(options, id)); } + private static SettingsArgs makeArgs(SettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmBypassActivationLockAttempts.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmBypassActivationLockAttempts.java index 3e3c34ea..71b4ade9 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmBypassActivationLockAttempts.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmBypassActivationLockAttempts.java @@ -142,13 +142,20 @@ public SmBypassActivationLockAttempts(String name, SmBypassActivationLockAttempt * @param options A bag of options that control this resource's behavior. */ public SmBypassActivationLockAttempts(String name, SmBypassActivationLockAttemptsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smBypassActivationLockAttempts:SmBypassActivationLockAttempts", name, args == null ? SmBypassActivationLockAttemptsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smBypassActivationLockAttempts:SmBypassActivationLockAttempts", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmBypassActivationLockAttempts(String name, Output id, @Nullable SmBypassActivationLockAttemptsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smBypassActivationLockAttempts:SmBypassActivationLockAttempts", name, state, makeResourceOptions(options, id)); } + private static SmBypassActivationLockAttemptsArgs makeArgs(SmBypassActivationLockAttemptsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmBypassActivationLockAttemptsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesCheckin.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesCheckin.java index 18e1362c..a67e2416 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesCheckin.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesCheckin.java @@ -122,13 +122,20 @@ public SmDevicesCheckin(String name, SmDevicesCheckinArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmDevicesCheckin(String name, SmDevicesCheckinArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smDevicesCheckin:SmDevicesCheckin", name, args == null ? SmDevicesCheckinArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smDevicesCheckin:SmDevicesCheckin", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmDevicesCheckin(String name, Output id, @Nullable SmDevicesCheckinState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smDevicesCheckin:SmDevicesCheckin", name, state, makeResourceOptions(options, id)); } + private static SmDevicesCheckinArgs makeArgs(SmDevicesCheckinArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmDevicesCheckinArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesFields.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesFields.java index 3498b74e..616026c2 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesFields.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesFields.java @@ -123,13 +123,20 @@ public SmDevicesFields(String name, SmDevicesFieldsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmDevicesFields(String name, SmDevicesFieldsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smDevicesFields:SmDevicesFields", name, args == null ? SmDevicesFieldsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smDevicesFields:SmDevicesFields", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmDevicesFields(String name, Output id, @Nullable SmDevicesFieldsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smDevicesFields:SmDevicesFields", name, state, makeResourceOptions(options, id)); } + private static SmDevicesFieldsArgs makeArgs(SmDevicesFieldsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmDevicesFieldsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesInstallApps.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesInstallApps.java index 6d89ac95..098a1460 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesInstallApps.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesInstallApps.java @@ -122,13 +122,20 @@ public SmDevicesInstallApps(String name, SmDevicesInstallAppsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmDevicesInstallApps(String name, SmDevicesInstallAppsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smDevicesInstallApps:SmDevicesInstallApps", name, args == null ? SmDevicesInstallAppsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smDevicesInstallApps:SmDevicesInstallApps", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmDevicesInstallApps(String name, Output id, @Nullable SmDevicesInstallAppsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smDevicesInstallApps:SmDevicesInstallApps", name, state, makeResourceOptions(options, id)); } + private static SmDevicesInstallAppsArgs makeArgs(SmDevicesInstallAppsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmDevicesInstallAppsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesLock.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesLock.java index dea9bf50..bd2229f4 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesLock.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesLock.java @@ -123,13 +123,20 @@ public SmDevicesLock(String name, SmDevicesLockArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmDevicesLock(String name, SmDevicesLockArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smDevicesLock:SmDevicesLock", name, args == null ? SmDevicesLockArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smDevicesLock:SmDevicesLock", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmDevicesLock(String name, Output id, @Nullable SmDevicesLockState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smDevicesLock:SmDevicesLock", name, state, makeResourceOptions(options, id)); } + private static SmDevicesLockArgs makeArgs(SmDevicesLockArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmDevicesLockArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesModifyTags.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesModifyTags.java index 655c6fef..f84feff8 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesModifyTags.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesModifyTags.java @@ -132,13 +132,20 @@ public SmDevicesModifyTags(String name, SmDevicesModifyTagsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmDevicesModifyTags(String name, SmDevicesModifyTagsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smDevicesModifyTags:SmDevicesModifyTags", name, args == null ? SmDevicesModifyTagsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smDevicesModifyTags:SmDevicesModifyTags", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmDevicesModifyTags(String name, Output id, @Nullable SmDevicesModifyTagsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smDevicesModifyTags:SmDevicesModifyTags", name, state, makeResourceOptions(options, id)); } + private static SmDevicesModifyTagsArgs makeArgs(SmDevicesModifyTagsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmDevicesModifyTagsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesMove.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesMove.java index da86c264..64735e82 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesMove.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesMove.java @@ -123,13 +123,20 @@ public SmDevicesMove(String name, SmDevicesMoveArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmDevicesMove(String name, SmDevicesMoveArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smDevicesMove:SmDevicesMove", name, args == null ? SmDevicesMoveArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smDevicesMove:SmDevicesMove", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmDevicesMove(String name, Output id, @Nullable SmDevicesMoveState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smDevicesMove:SmDevicesMove", name, state, makeResourceOptions(options, id)); } + private static SmDevicesMoveArgs makeArgs(SmDevicesMoveArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmDevicesMoveArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesReboot.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesReboot.java index 354c8702..093f2f3a 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesReboot.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesReboot.java @@ -126,13 +126,20 @@ public SmDevicesReboot(String name, SmDevicesRebootArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmDevicesReboot(String name, SmDevicesRebootArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smDevicesReboot:SmDevicesReboot", name, args == null ? SmDevicesRebootArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smDevicesReboot:SmDevicesReboot", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmDevicesReboot(String name, Output id, @Nullable SmDevicesRebootState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smDevicesReboot:SmDevicesReboot", name, state, makeResourceOptions(options, id)); } + private static SmDevicesRebootArgs makeArgs(SmDevicesRebootArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmDevicesRebootArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesRefreshDetails.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesRefreshDetails.java index d7f7eac3..74740720 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesRefreshDetails.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesRefreshDetails.java @@ -108,13 +108,20 @@ public SmDevicesRefreshDetails(String name, SmDevicesRefreshDetailsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmDevicesRefreshDetails(String name, SmDevicesRefreshDetailsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smDevicesRefreshDetails:SmDevicesRefreshDetails", name, args == null ? SmDevicesRefreshDetailsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smDevicesRefreshDetails:SmDevicesRefreshDetails", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmDevicesRefreshDetails(String name, Output id, @Nullable SmDevicesRefreshDetailsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smDevicesRefreshDetails:SmDevicesRefreshDetails", name, state, makeResourceOptions(options, id)); } + private static SmDevicesRefreshDetailsArgs makeArgs(SmDevicesRefreshDetailsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmDevicesRefreshDetailsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesShutdown.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesShutdown.java index 79cea7dc..35446e89 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesShutdown.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesShutdown.java @@ -122,13 +122,20 @@ public SmDevicesShutdown(String name, SmDevicesShutdownArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmDevicesShutdown(String name, SmDevicesShutdownArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smDevicesShutdown:SmDevicesShutdown", name, args == null ? SmDevicesShutdownArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smDevicesShutdown:SmDevicesShutdown", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmDevicesShutdown(String name, Output id, @Nullable SmDevicesShutdownState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smDevicesShutdown:SmDevicesShutdown", name, state, makeResourceOptions(options, id)); } + private static SmDevicesShutdownArgs makeArgs(SmDevicesShutdownArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmDevicesShutdownArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesUnenroll.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesUnenroll.java index 1da5d5a2..ec285a4d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesUnenroll.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesUnenroll.java @@ -115,13 +115,20 @@ public SmDevicesUnenroll(String name, SmDevicesUnenrollArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmDevicesUnenroll(String name, SmDevicesUnenrollArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smDevicesUnenroll:SmDevicesUnenroll", name, args == null ? SmDevicesUnenrollArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smDevicesUnenroll:SmDevicesUnenroll", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmDevicesUnenroll(String name, Output id, @Nullable SmDevicesUnenrollState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smDevicesUnenroll:SmDevicesUnenroll", name, state, makeResourceOptions(options, id)); } + private static SmDevicesUnenrollArgs makeArgs(SmDevicesUnenrollArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmDevicesUnenrollArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesUninstallApps.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesUninstallApps.java index 920f4294..defadf60 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesUninstallApps.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesUninstallApps.java @@ -121,13 +121,20 @@ public SmDevicesUninstallApps(String name, SmDevicesUninstallAppsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmDevicesUninstallApps(String name, SmDevicesUninstallAppsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smDevicesUninstallApps:SmDevicesUninstallApps", name, args == null ? SmDevicesUninstallAppsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smDevicesUninstallApps:SmDevicesUninstallApps", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmDevicesUninstallApps(String name, Output id, @Nullable SmDevicesUninstallAppsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smDevicesUninstallApps:SmDevicesUninstallApps", name, state, makeResourceOptions(options, id)); } + private static SmDevicesUninstallAppsArgs makeArgs(SmDevicesUninstallAppsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmDevicesUninstallAppsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesWipe.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesWipe.java index 6f98de46..182dc05c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesWipe.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmDevicesWipe.java @@ -114,13 +114,20 @@ public SmDevicesWipe(String name, SmDevicesWipeArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmDevicesWipe(String name, SmDevicesWipeArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smDevicesWipe:SmDevicesWipe", name, args == null ? SmDevicesWipeArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smDevicesWipe:SmDevicesWipe", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmDevicesWipe(String name, Output id, @Nullable SmDevicesWipeState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smDevicesWipe:SmDevicesWipe", name, state, makeResourceOptions(options, id)); } + private static SmDevicesWipeArgs makeArgs(SmDevicesWipeArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmDevicesWipeArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmTargetGroups.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmTargetGroups.java index d7fbf07e..66b40da0 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmTargetGroups.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmTargetGroups.java @@ -156,13 +156,20 @@ public SmTargetGroups(String name, SmTargetGroupsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmTargetGroups(String name, SmTargetGroupsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smTargetGroups:SmTargetGroups", name, args == null ? SmTargetGroupsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smTargetGroups:SmTargetGroups", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmTargetGroups(String name, Output id, @Nullable SmTargetGroupsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smTargetGroups:SmTargetGroups", name, state, makeResourceOptions(options, id)); } + private static SmTargetGroupsArgs makeArgs(SmTargetGroupsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmTargetGroupsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmUserAccessDevicesDelete.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmUserAccessDevicesDelete.java index 67189716..e1ba6514 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SmUserAccessDevicesDelete.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SmUserAccessDevicesDelete.java @@ -108,13 +108,20 @@ public SmUserAccessDevicesDelete(String name, SmUserAccessDevicesDeleteArgs args * @param options A bag of options that control this resource's behavior. */ public SmUserAccessDevicesDelete(String name, SmUserAccessDevicesDeleteArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/smUserAccessDevicesDelete:SmUserAccessDevicesDelete", name, args == null ? SmUserAccessDevicesDeleteArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/smUserAccessDevicesDelete:SmUserAccessDevicesDelete", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmUserAccessDevicesDelete(String name, Output id, @Nullable SmUserAccessDevicesDeleteState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/smUserAccessDevicesDelete:SmUserAccessDevicesDelete", name, state, makeResourceOptions(options, id)); } + private static SmUserAccessDevicesDeleteArgs makeArgs(SmUserAccessDevicesDeleteArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmUserAccessDevicesDeleteArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/Snmp.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/Snmp.java index 8e6ea808..972dfa85 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/Snmp.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/Snmp.java @@ -147,13 +147,20 @@ public Snmp(String name, SnmpArgs args) { * @param options A bag of options that control this resource's behavior. */ public Snmp(String name, SnmpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/snmp:Snmp", name, args == null ? SnmpArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/snmp:Snmp", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Snmp(String name, Output id, @Nullable SnmpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/snmp:Snmp", name, state, makeResourceOptions(options, id)); } + private static SnmpArgs makeArgs(SnmpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SnmpArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/Split.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/Split.java index 072f7015..adc3ba46 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/Split.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/Split.java @@ -97,13 +97,20 @@ public Split(String name, SplitArgs args) { * @param options A bag of options that control this resource's behavior. */ public Split(String name, SplitArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/split:Split", name, args == null ? SplitArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/split:Split", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Split(String name, Output id, @Nullable SplitState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/split:Split", name, state, makeResourceOptions(options, id)); } + private static SplitArgs makeArgs(SplitArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SplitArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchAccessControlLists.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchAccessControlLists.java index a1eda86e..0e4798eb 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchAccessControlLists.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchAccessControlLists.java @@ -139,13 +139,20 @@ public SwitchAccessControlLists(String name, SwitchAccessControlListsArgs args) * @param options A bag of options that control this resource's behavior. */ public SwitchAccessControlLists(String name, SwitchAccessControlListsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchAccessControlLists:SwitchAccessControlLists", name, args == null ? SwitchAccessControlListsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchAccessControlLists:SwitchAccessControlLists", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchAccessControlLists(String name, Output id, @Nullable SwitchAccessControlListsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchAccessControlLists:SwitchAccessControlLists", name, state, makeResourceOptions(options, id)); } + private static SwitchAccessControlListsArgs makeArgs(SwitchAccessControlListsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchAccessControlListsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchAccessPolicies.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchAccessPolicies.java index f2710f94..45a8fd3f 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchAccessPolicies.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchAccessPolicies.java @@ -436,13 +436,20 @@ public SwitchAccessPolicies(String name, SwitchAccessPoliciesArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchAccessPolicies(String name, SwitchAccessPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchAccessPolicies:SwitchAccessPolicies", name, args == null ? SwitchAccessPoliciesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchAccessPolicies:SwitchAccessPolicies", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchAccessPolicies(String name, Output id, @Nullable SwitchAccessPoliciesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchAccessPolicies:SwitchAccessPolicies", name, state, makeResourceOptions(options, id)); } + private static SwitchAccessPoliciesArgs makeArgs(SwitchAccessPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchAccessPoliciesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchAlternateManagementInterface.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchAlternateManagementInterface.java index eb3ed8de..764bb498 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchAlternateManagementInterface.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchAlternateManagementInterface.java @@ -169,13 +169,20 @@ public SwitchAlternateManagementInterface(String name, SwitchAlternateManagement * @param options A bag of options that control this resource's behavior. */ public SwitchAlternateManagementInterface(String name, SwitchAlternateManagementInterfaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchAlternateManagementInterface:SwitchAlternateManagementInterface", name, args == null ? SwitchAlternateManagementInterfaceArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchAlternateManagementInterface:SwitchAlternateManagementInterface", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchAlternateManagementInterface(String name, Output id, @Nullable SwitchAlternateManagementInterfaceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchAlternateManagementInterface:SwitchAlternateManagementInterface", name, state, makeResourceOptions(options, id)); } + private static SwitchAlternateManagementInterfaceArgs makeArgs(SwitchAlternateManagementInterfaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchAlternateManagementInterfaceArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchDhcpServerPolicy.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchDhcpServerPolicy.java index ab5f2243..ae1fe078 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchDhcpServerPolicy.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchDhcpServerPolicy.java @@ -191,13 +191,20 @@ public SwitchDhcpServerPolicy(String name, SwitchDhcpServerPolicyArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchDhcpServerPolicy(String name, SwitchDhcpServerPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchDhcpServerPolicy:SwitchDhcpServerPolicy", name, args == null ? SwitchDhcpServerPolicyArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchDhcpServerPolicy:SwitchDhcpServerPolicy", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchDhcpServerPolicy(String name, Output id, @Nullable SwitchDhcpServerPolicyState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchDhcpServerPolicy:SwitchDhcpServerPolicy", name, state, makeResourceOptions(options, id)); } + private static SwitchDhcpServerPolicyArgs makeArgs(SwitchDhcpServerPolicyArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchDhcpServerPolicyArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchDhcpServerPolicyArpInspectionTrustedServers.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchDhcpServerPolicyArpInspectionTrustedServers.java index f40270b2..c932c875 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchDhcpServerPolicyArpInspectionTrustedServers.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchDhcpServerPolicyArpInspectionTrustedServers.java @@ -160,13 +160,20 @@ public SwitchDhcpServerPolicyArpInspectionTrustedServers(String name, SwitchDhcp * @param options A bag of options that control this resource's behavior. */ public SwitchDhcpServerPolicyArpInspectionTrustedServers(String name, SwitchDhcpServerPolicyArpInspectionTrustedServersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchDhcpServerPolicyArpInspectionTrustedServers:SwitchDhcpServerPolicyArpInspectionTrustedServers", name, args == null ? SwitchDhcpServerPolicyArpInspectionTrustedServersArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchDhcpServerPolicyArpInspectionTrustedServers:SwitchDhcpServerPolicyArpInspectionTrustedServers", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchDhcpServerPolicyArpInspectionTrustedServers(String name, Output id, @Nullable SwitchDhcpServerPolicyArpInspectionTrustedServersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchDhcpServerPolicyArpInspectionTrustedServers:SwitchDhcpServerPolicyArpInspectionTrustedServers", name, state, makeResourceOptions(options, id)); } + private static SwitchDhcpServerPolicyArpInspectionTrustedServersArgs makeArgs(SwitchDhcpServerPolicyArpInspectionTrustedServersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchDhcpServerPolicyArpInspectionTrustedServersArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchDscpToCosMappings.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchDscpToCosMappings.java index fb2d8bd8..42e647c1 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchDscpToCosMappings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchDscpToCosMappings.java @@ -118,13 +118,20 @@ public SwitchDscpToCosMappings(String name, SwitchDscpToCosMappingsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchDscpToCosMappings(String name, SwitchDscpToCosMappingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchDscpToCosMappings:SwitchDscpToCosMappings", name, args == null ? SwitchDscpToCosMappingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchDscpToCosMappings:SwitchDscpToCosMappings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchDscpToCosMappings(String name, Output id, @Nullable SwitchDscpToCosMappingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchDscpToCosMappings:SwitchDscpToCosMappings", name, state, makeResourceOptions(options, id)); } + private static SwitchDscpToCosMappingsArgs makeArgs(SwitchDscpToCosMappingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchDscpToCosMappingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchLinkAggregations.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchLinkAggregations.java index 49ef787d..ed05fe71 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchLinkAggregations.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchLinkAggregations.java @@ -146,13 +146,20 @@ public SwitchLinkAggregations(String name, SwitchLinkAggregationsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchLinkAggregations(String name, SwitchLinkAggregationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchLinkAggregations:SwitchLinkAggregations", name, args == null ? SwitchLinkAggregationsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchLinkAggregations:SwitchLinkAggregations", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchLinkAggregations(String name, Output id, @Nullable SwitchLinkAggregationsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchLinkAggregations:SwitchLinkAggregations", name, state, makeResourceOptions(options, id)); } + private static SwitchLinkAggregationsArgs makeArgs(SwitchLinkAggregationsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchLinkAggregationsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchMtu.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchMtu.java index 4c418ad2..230748ce 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchMtu.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchMtu.java @@ -138,13 +138,20 @@ public SwitchMtu(String name, SwitchMtuArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchMtu(String name, SwitchMtuArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchMtu:SwitchMtu", name, args == null ? SwitchMtuArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchMtu:SwitchMtu", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchMtu(String name, Output id, @Nullable SwitchMtuState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchMtu:SwitchMtu", name, state, makeResourceOptions(options, id)); } + private static SwitchMtuArgs makeArgs(SwitchMtuArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchMtuArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchPortSchedules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchPortSchedules.java index 64efb593..572a0779 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchPortSchedules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchPortSchedules.java @@ -189,13 +189,20 @@ public SwitchPortSchedules(String name, SwitchPortSchedulesArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchPortSchedules(String name, SwitchPortSchedulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchPortSchedules:SwitchPortSchedules", name, args == null ? SwitchPortSchedulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchPortSchedules:SwitchPortSchedules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchPortSchedules(String name, Output id, @Nullable SwitchPortSchedulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchPortSchedules:SwitchPortSchedules", name, state, makeResourceOptions(options, id)); } + private static SwitchPortSchedulesArgs makeArgs(SwitchPortSchedulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchPortSchedulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchQosRulesOrder.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchQosRulesOrder.java index f2c1ed53..95e0a07f 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchQosRulesOrder.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchQosRulesOrder.java @@ -216,13 +216,20 @@ public SwitchQosRulesOrder(String name, SwitchQosRulesOrderArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchQosRulesOrder(String name, SwitchQosRulesOrderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchQosRulesOrder:SwitchQosRulesOrder", name, args == null ? SwitchQosRulesOrderArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchQosRulesOrder:SwitchQosRulesOrder", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchQosRulesOrder(String name, Output id, @Nullable SwitchQosRulesOrderState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchQosRulesOrder:SwitchQosRulesOrder", name, state, makeResourceOptions(options, id)); } + private static SwitchQosRulesOrderArgs makeArgs(SwitchQosRulesOrderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchQosRulesOrderArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchRoutingMulticast.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchRoutingMulticast.java index 3eea403c..9dd66c10 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchRoutingMulticast.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchRoutingMulticast.java @@ -152,13 +152,20 @@ public SwitchRoutingMulticast(String name, SwitchRoutingMulticastArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchRoutingMulticast(String name, SwitchRoutingMulticastArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchRoutingMulticast:SwitchRoutingMulticast", name, args == null ? SwitchRoutingMulticastArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchRoutingMulticast:SwitchRoutingMulticast", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchRoutingMulticast(String name, Output id, @Nullable SwitchRoutingMulticastState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchRoutingMulticast:SwitchRoutingMulticast", name, state, makeResourceOptions(options, id)); } + private static SwitchRoutingMulticastArgs makeArgs(SwitchRoutingMulticastArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchRoutingMulticastArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchRoutingMulticastRendezvousPoints.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchRoutingMulticastRendezvousPoints.java index 6b5bb15c..8a873c4d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchRoutingMulticastRendezvousPoints.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchRoutingMulticastRendezvousPoints.java @@ -152,13 +152,20 @@ public SwitchRoutingMulticastRendezvousPoints(String name, SwitchRoutingMulticas * @param options A bag of options that control this resource's behavior. */ public SwitchRoutingMulticastRendezvousPoints(String name, SwitchRoutingMulticastRendezvousPointsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchRoutingMulticastRendezvousPoints:SwitchRoutingMulticastRendezvousPoints", name, args == null ? SwitchRoutingMulticastRendezvousPointsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchRoutingMulticastRendezvousPoints:SwitchRoutingMulticastRendezvousPoints", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchRoutingMulticastRendezvousPoints(String name, Output id, @Nullable SwitchRoutingMulticastRendezvousPointsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchRoutingMulticastRendezvousPoints:SwitchRoutingMulticastRendezvousPoints", name, state, makeResourceOptions(options, id)); } + private static SwitchRoutingMulticastRendezvousPointsArgs makeArgs(SwitchRoutingMulticastRendezvousPointsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchRoutingMulticastRendezvousPointsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchRoutingOspf.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchRoutingOspf.java index b2b107e7..79c127a6 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchRoutingOspf.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchRoutingOspf.java @@ -226,13 +226,20 @@ public SwitchRoutingOspf(String name, SwitchRoutingOspfArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchRoutingOspf(String name, SwitchRoutingOspfArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchRoutingOspf:SwitchRoutingOspf", name, args == null ? SwitchRoutingOspfArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchRoutingOspf:SwitchRoutingOspf", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchRoutingOspf(String name, Output id, @Nullable SwitchRoutingOspfState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchRoutingOspf:SwitchRoutingOspf", name, state, makeResourceOptions(options, id)); } + private static SwitchRoutingOspfArgs makeArgs(SwitchRoutingOspfArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchRoutingOspfArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchSettings.java index eda33ff9..a9a92e30 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchSettings.java @@ -187,13 +187,20 @@ public SwitchSettings(String name, SwitchSettingsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchSettings(String name, SwitchSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchSettings:SwitchSettings", name, args == null ? SwitchSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchSettings:SwitchSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchSettings(String name, Output id, @Nullable SwitchSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchSettings:SwitchSettings", name, state, makeResourceOptions(options, id)); } + private static SwitchSettingsArgs makeArgs(SwitchSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacks.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacks.java index fd0cca4f..5a3cbde0 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacks.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacks.java @@ -143,13 +143,20 @@ public SwitchStacks(String name, SwitchStacksArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchStacks(String name, SwitchStacksArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchStacks:SwitchStacks", name, args == null ? SwitchStacksArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchStacks:SwitchStacks", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchStacks(String name, Output id, @Nullable SwitchStacksState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchStacks:SwitchStacks", name, state, makeResourceOptions(options, id)); } + private static SwitchStacksArgs makeArgs(SwitchStacksArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchStacksArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksAdd.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksAdd.java index 880768f8..799e2b3e 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksAdd.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksAdd.java @@ -126,13 +126,20 @@ public SwitchStacksAdd(String name, SwitchStacksAddArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchStacksAdd(String name, SwitchStacksAddArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchStacksAdd:SwitchStacksAdd", name, args == null ? SwitchStacksAddArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchStacksAdd:SwitchStacksAdd", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchStacksAdd(String name, Output id, @Nullable SwitchStacksAddState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchStacksAdd:SwitchStacksAdd", name, state, makeResourceOptions(options, id)); } + private static SwitchStacksAddArgs makeArgs(SwitchStacksAddArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchStacksAddArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRemove.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRemove.java index e88ef2bc..b25730ad 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRemove.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRemove.java @@ -126,13 +126,20 @@ public SwitchStacksRemove(String name, SwitchStacksRemoveArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchStacksRemove(String name, SwitchStacksRemoveArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchStacksRemove:SwitchStacksRemove", name, args == null ? SwitchStacksRemoveArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchStacksRemove:SwitchStacksRemove", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchStacksRemove(String name, Output id, @Nullable SwitchStacksRemoveState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchStacksRemove:SwitchStacksRemove", name, state, makeResourceOptions(options, id)); } + private static SwitchStacksRemoveArgs makeArgs(SwitchStacksRemoveArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchStacksRemoveArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRoutingInterfaces.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRoutingInterfaces.java index 7fbf134e..8fcd8738 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRoutingInterfaces.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRoutingInterfaces.java @@ -288,13 +288,20 @@ public SwitchStacksRoutingInterfaces(String name, SwitchStacksRoutingInterfacesA * @param options A bag of options that control this resource's behavior. */ public SwitchStacksRoutingInterfaces(String name, SwitchStacksRoutingInterfacesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchStacksRoutingInterfaces:SwitchStacksRoutingInterfaces", name, args == null ? SwitchStacksRoutingInterfacesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchStacksRoutingInterfaces:SwitchStacksRoutingInterfaces", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchStacksRoutingInterfaces(String name, Output id, @Nullable SwitchStacksRoutingInterfacesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchStacksRoutingInterfaces:SwitchStacksRoutingInterfaces", name, state, makeResourceOptions(options, id)); } + private static SwitchStacksRoutingInterfacesArgs makeArgs(SwitchStacksRoutingInterfacesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchStacksRoutingInterfacesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRoutingInterfacesDhcp.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRoutingInterfacesDhcp.java index db7e5f03..c9a49659 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRoutingInterfacesDhcp.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRoutingInterfacesDhcp.java @@ -311,13 +311,20 @@ public SwitchStacksRoutingInterfacesDhcp(String name, SwitchStacksRoutingInterfa * @param options A bag of options that control this resource's behavior. */ public SwitchStacksRoutingInterfacesDhcp(String name, SwitchStacksRoutingInterfacesDhcpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchStacksRoutingInterfacesDhcp:SwitchStacksRoutingInterfacesDhcp", name, args == null ? SwitchStacksRoutingInterfacesDhcpArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchStacksRoutingInterfacesDhcp:SwitchStacksRoutingInterfacesDhcp", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchStacksRoutingInterfacesDhcp(String name, Output id, @Nullable SwitchStacksRoutingInterfacesDhcpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchStacksRoutingInterfacesDhcp:SwitchStacksRoutingInterfacesDhcp", name, state, makeResourceOptions(options, id)); } + private static SwitchStacksRoutingInterfacesDhcpArgs makeArgs(SwitchStacksRoutingInterfacesDhcpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchStacksRoutingInterfacesDhcpArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRoutingStaticRoutes.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRoutingStaticRoutes.java index 06bd4a74..5cfce679 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRoutingStaticRoutes.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStacksRoutingStaticRoutes.java @@ -201,13 +201,20 @@ public SwitchStacksRoutingStaticRoutes(String name, SwitchStacksRoutingStaticRou * @param options A bag of options that control this resource's behavior. */ public SwitchStacksRoutingStaticRoutes(String name, SwitchStacksRoutingStaticRoutesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchStacksRoutingStaticRoutes:SwitchStacksRoutingStaticRoutes", name, args == null ? SwitchStacksRoutingStaticRoutesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchStacksRoutingStaticRoutes:SwitchStacksRoutingStaticRoutes", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchStacksRoutingStaticRoutes(String name, Output id, @Nullable SwitchStacksRoutingStaticRoutesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchStacksRoutingStaticRoutes:SwitchStacksRoutingStaticRoutes", name, state, makeResourceOptions(options, id)); } + private static SwitchStacksRoutingStaticRoutesArgs makeArgs(SwitchStacksRoutingStaticRoutesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchStacksRoutingStaticRoutesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStormControl.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStormControl.java index 2e733f12..7c2f07af 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStormControl.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStormControl.java @@ -142,13 +142,20 @@ public SwitchStormControl(String name, SwitchStormControlArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchStormControl(String name, SwitchStormControlArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchStormControl:SwitchStormControl", name, args == null ? SwitchStormControlArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchStormControl:SwitchStormControl", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchStormControl(String name, Output id, @Nullable SwitchStormControlState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchStormControl:SwitchStormControl", name, state, makeResourceOptions(options, id)); } + private static SwitchStormControlArgs makeArgs(SwitchStormControlArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchStormControlArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStp.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStp.java index 7295b4ac..fc665e75 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStp.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SwitchStp.java @@ -152,13 +152,20 @@ public SwitchStp(String name, SwitchStpArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchStp(String name, SwitchStpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/switchStp:SwitchStp", name, args == null ? SwitchStpArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/switchStp:SwitchStp", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchStp(String name, Output id, @Nullable SwitchStpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/switchStp:SwitchStp", name, state, makeResourceOptions(options, id)); } + private static SwitchStpArgs makeArgs(SwitchStpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchStpArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/SyslogServers.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/SyslogServers.java index c7a5c0b5..f0674c07 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/SyslogServers.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/SyslogServers.java @@ -120,13 +120,20 @@ public SyslogServers(String name, SyslogServersArgs args) { * @param options A bag of options that control this resource's behavior. */ public SyslogServers(String name, SyslogServersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/syslogServers:SyslogServers", name, args == null ? SyslogServersArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/syslogServers:SyslogServers", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SyslogServers(String name, Output id, @Nullable SyslogServersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/syslogServers:SyslogServers", name, state, makeResourceOptions(options, id)); } + private static SyslogServersArgs makeArgs(SyslogServersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SyslogServersArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/TrafficAnalysis.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/TrafficAnalysis.java index 4bbe61bf..9255acdb 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/TrafficAnalysis.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/TrafficAnalysis.java @@ -135,13 +135,20 @@ public TrafficAnalysis(String name, TrafficAnalysisArgs args) { * @param options A bag of options that control this resource's behavior. */ public TrafficAnalysis(String name, TrafficAnalysisArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/trafficAnalysis:TrafficAnalysis", name, args == null ? TrafficAnalysisArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/trafficAnalysis:TrafficAnalysis", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private TrafficAnalysis(String name, Output id, @Nullable TrafficAnalysisState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/trafficAnalysis:TrafficAnalysis", name, state, makeResourceOptions(options, id)); } + private static TrafficAnalysisArgs makeArgs(TrafficAnalysisArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? TrafficAnalysisArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/Unbind.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/Unbind.java index f5bdbe50..28a20fc6 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/Unbind.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/Unbind.java @@ -111,13 +111,20 @@ public Unbind(String name, UnbindArgs args) { * @param options A bag of options that control this resource's behavior. */ public Unbind(String name, UnbindArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/unbind:Unbind", name, args == null ? UnbindArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/unbind:Unbind", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Unbind(String name, Output id, @Nullable UnbindState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/unbind:Unbind", name, state, makeResourceOptions(options, id)); } + private static UnbindArgs makeArgs(UnbindArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? UnbindArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/VlanProfiles.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/VlanProfiles.java index 5ac258ae..c8cc22a4 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/VlanProfiles.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/VlanProfiles.java @@ -183,13 +183,20 @@ public VlanProfiles(String name, VlanProfilesArgs args) { * @param options A bag of options that control this resource's behavior. */ public VlanProfiles(String name, VlanProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/vlanProfiles:VlanProfiles", name, args == null ? VlanProfilesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/vlanProfiles:VlanProfiles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private VlanProfiles(String name, Output id, @Nullable VlanProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/vlanProfiles:VlanProfiles", name, state, makeResourceOptions(options, id)); } + private static VlanProfilesArgs makeArgs(VlanProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? VlanProfilesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/VlanProfilesAssignmentsReassign.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/VlanProfilesAssignmentsReassign.java index 443a2c31..943a5454 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/VlanProfilesAssignmentsReassign.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/VlanProfilesAssignmentsReassign.java @@ -113,13 +113,20 @@ public VlanProfilesAssignmentsReassign(String name, VlanProfilesAssignmentsReass * @param options A bag of options that control this resource's behavior. */ public VlanProfilesAssignmentsReassign(String name, VlanProfilesAssignmentsReassignArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/vlanProfilesAssignmentsReassign:VlanProfilesAssignmentsReassign", name, args == null ? VlanProfilesAssignmentsReassignArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/vlanProfilesAssignmentsReassign:VlanProfilesAssignmentsReassign", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private VlanProfilesAssignmentsReassign(String name, Output id, @Nullable VlanProfilesAssignmentsReassignState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/vlanProfilesAssignmentsReassign:VlanProfilesAssignmentsReassign", name, state, makeResourceOptions(options, id)); } + private static VlanProfilesAssignmentsReassignArgs makeArgs(VlanProfilesAssignmentsReassignArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? VlanProfilesAssignmentsReassignArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WebhooksHttpServers.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WebhooksHttpServers.java index 879767d7..22750bea 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WebhooksHttpServers.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WebhooksHttpServers.java @@ -175,13 +175,20 @@ public WebhooksHttpServers(String name, WebhooksHttpServersArgs args) { * @param options A bag of options that control this resource's behavior. */ public WebhooksHttpServers(String name, WebhooksHttpServersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/webhooksHttpServers:WebhooksHttpServers", name, args == null ? WebhooksHttpServersArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/webhooksHttpServers:WebhooksHttpServers", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WebhooksHttpServers(String name, Output id, @Nullable WebhooksHttpServersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/webhooksHttpServers:WebhooksHttpServers", name, state, makeResourceOptions(options, id)); } + private static WebhooksHttpServersArgs makeArgs(WebhooksHttpServersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WebhooksHttpServersArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WebhooksPayloadTemplates.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WebhooksPayloadTemplates.java index b37cf283..7fb3215b 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WebhooksPayloadTemplates.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WebhooksPayloadTemplates.java @@ -220,13 +220,20 @@ public WebhooksPayloadTemplates(String name, WebhooksPayloadTemplatesArgs args) * @param options A bag of options that control this resource's behavior. */ public WebhooksPayloadTemplates(String name, WebhooksPayloadTemplatesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/webhooksPayloadTemplates:WebhooksPayloadTemplates", name, args == null ? WebhooksPayloadTemplatesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/webhooksPayloadTemplates:WebhooksPayloadTemplates", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WebhooksPayloadTemplates(String name, Output id, @Nullable WebhooksPayloadTemplatesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/webhooksPayloadTemplates:WebhooksPayloadTemplates", name, state, makeResourceOptions(options, id)); } + private static WebhooksPayloadTemplatesArgs makeArgs(WebhooksPayloadTemplatesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WebhooksPayloadTemplatesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessAlternateManagementInterface.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessAlternateManagementInterface.java index 75c7c5c9..3018af7e 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessAlternateManagementInterface.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessAlternateManagementInterface.java @@ -172,13 +172,20 @@ public WirelessAlternateManagementInterface(String name, WirelessAlternateManage * @param options A bag of options that control this resource's behavior. */ public WirelessAlternateManagementInterface(String name, WirelessAlternateManagementInterfaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessAlternateManagementInterface:WirelessAlternateManagementInterface", name, args == null ? WirelessAlternateManagementInterfaceArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessAlternateManagementInterface:WirelessAlternateManagementInterface", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessAlternateManagementInterface(String name, Output id, @Nullable WirelessAlternateManagementInterfaceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessAlternateManagementInterface:WirelessAlternateManagementInterface", name, state, makeResourceOptions(options, id)); } + private static WirelessAlternateManagementInterfaceArgs makeArgs(WirelessAlternateManagementInterfaceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessAlternateManagementInterfaceArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessBilling.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessBilling.java index 5137062b..6dc36afc 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessBilling.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessBilling.java @@ -134,13 +134,20 @@ public WirelessBilling(String name, WirelessBillingArgs args) { * @param options A bag of options that control this resource's behavior. */ public WirelessBilling(String name, WirelessBillingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessBilling:WirelessBilling", name, args == null ? WirelessBillingArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessBilling:WirelessBilling", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessBilling(String name, Output id, @Nullable WirelessBillingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessBilling:WirelessBilling", name, state, makeResourceOptions(options, id)); } + private static WirelessBillingArgs makeArgs(WirelessBillingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessBillingArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessBluetoothSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessBluetoothSettings.java index c949e1f2..231fbabd 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessBluetoothSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessBluetoothSettings.java @@ -202,13 +202,20 @@ public WirelessBluetoothSettings(String name, WirelessBluetoothSettingsArgs args * @param options A bag of options that control this resource's behavior. */ public WirelessBluetoothSettings(String name, WirelessBluetoothSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessBluetoothSettings:WirelessBluetoothSettings", name, args == null ? WirelessBluetoothSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessBluetoothSettings:WirelessBluetoothSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessBluetoothSettings(String name, Output id, @Nullable WirelessBluetoothSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessBluetoothSettings:WirelessBluetoothSettings", name, state, makeResourceOptions(options, id)); } + private static WirelessBluetoothSettingsArgs makeArgs(WirelessBluetoothSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessBluetoothSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessEthernetPortsProfiles.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessEthernetPortsProfiles.java index dc398cf2..a6b3b085 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessEthernetPortsProfiles.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessEthernetPortsProfiles.java @@ -185,13 +185,20 @@ public WirelessEthernetPortsProfiles(String name, WirelessEthernetPortsProfilesA * @param options A bag of options that control this resource's behavior. */ public WirelessEthernetPortsProfiles(String name, WirelessEthernetPortsProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessEthernetPortsProfiles:WirelessEthernetPortsProfiles", name, args == null ? WirelessEthernetPortsProfilesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessEthernetPortsProfiles:WirelessEthernetPortsProfiles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessEthernetPortsProfiles(String name, Output id, @Nullable WirelessEthernetPortsProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessEthernetPortsProfiles:WirelessEthernetPortsProfiles", name, state, makeResourceOptions(options, id)); } + private static WirelessEthernetPortsProfilesArgs makeArgs(WirelessEthernetPortsProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessEthernetPortsProfilesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessEthernetPortsProfilesAssign.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessEthernetPortsProfilesAssign.java index c0b5fa18..0efb5941 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessEthernetPortsProfilesAssign.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessEthernetPortsProfilesAssign.java @@ -115,13 +115,20 @@ public WirelessEthernetPortsProfilesAssign(String name, WirelessEthernetPortsPro * @param options A bag of options that control this resource's behavior. */ public WirelessEthernetPortsProfilesAssign(String name, WirelessEthernetPortsProfilesAssignArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessEthernetPortsProfilesAssign:WirelessEthernetPortsProfilesAssign", name, args == null ? WirelessEthernetPortsProfilesAssignArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessEthernetPortsProfilesAssign:WirelessEthernetPortsProfilesAssign", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessEthernetPortsProfilesAssign(String name, Output id, @Nullable WirelessEthernetPortsProfilesAssignState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessEthernetPortsProfilesAssign:WirelessEthernetPortsProfilesAssign", name, state, makeResourceOptions(options, id)); } + private static WirelessEthernetPortsProfilesAssignArgs makeArgs(WirelessEthernetPortsProfilesAssignArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessEthernetPortsProfilesAssignArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessEthernetPortsProfilesSetDefault.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessEthernetPortsProfilesSetDefault.java index 74bbe218..570702b5 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessEthernetPortsProfilesSetDefault.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessEthernetPortsProfilesSetDefault.java @@ -111,13 +111,20 @@ public WirelessEthernetPortsProfilesSetDefault(String name, WirelessEthernetPort * @param options A bag of options that control this resource's behavior. */ public WirelessEthernetPortsProfilesSetDefault(String name, WirelessEthernetPortsProfilesSetDefaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessEthernetPortsProfilesSetDefault:WirelessEthernetPortsProfilesSetDefault", name, args == null ? WirelessEthernetPortsProfilesSetDefaultArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessEthernetPortsProfilesSetDefault:WirelessEthernetPortsProfilesSetDefault", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessEthernetPortsProfilesSetDefault(String name, Output id, @Nullable WirelessEthernetPortsProfilesSetDefaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessEthernetPortsProfilesSetDefault:WirelessEthernetPortsProfilesSetDefault", name, state, makeResourceOptions(options, id)); } + private static WirelessEthernetPortsProfilesSetDefaultArgs makeArgs(WirelessEthernetPortsProfilesSetDefaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessEthernetPortsProfilesSetDefaultArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessRfProfiles.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessRfProfiles.java index 31ecd5b1..84bd983e 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessRfProfiles.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessRfProfiles.java @@ -242,13 +242,20 @@ public WirelessRfProfiles(String name, WirelessRfProfilesArgs args) { * @param options A bag of options that control this resource's behavior. */ public WirelessRfProfiles(String name, WirelessRfProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessRfProfiles:WirelessRfProfiles", name, args == null ? WirelessRfProfilesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessRfProfiles:WirelessRfProfiles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessRfProfiles(String name, Output id, @Nullable WirelessRfProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessRfProfiles:WirelessRfProfiles", name, state, makeResourceOptions(options, id)); } + private static WirelessRfProfilesArgs makeArgs(WirelessRfProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessRfProfilesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSettings.java index 1989d549..6fa0af2e 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSettings.java @@ -206,13 +206,20 @@ public WirelessSettings(String name, WirelessSettingsArgs args) { * @param options A bag of options that control this resource's behavior. */ public WirelessSettings(String name, WirelessSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSettings:WirelessSettings", name, args == null ? WirelessSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSettings:WirelessSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSettings(String name, Output id, @Nullable WirelessSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSettings:WirelessSettings", name, state, makeResourceOptions(options, id)); } + private static WirelessSettingsArgs makeArgs(WirelessSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsids.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsids.java index 972d51b2..a8787305 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsids.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsids.java @@ -1229,13 +1229,20 @@ public WirelessSsids(String name, WirelessSsidsArgs args) { * @param options A bag of options that control this resource's behavior. */ public WirelessSsids(String name, WirelessSsidsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSsids:WirelessSsids", name, args == null ? WirelessSsidsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSsids:WirelessSsids", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSsids(String name, Output id, @Nullable WirelessSsidsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSsids:WirelessSsids", name, state, makeResourceOptions(options, id)); } + private static WirelessSsidsArgs makeArgs(WirelessSsidsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSsidsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsBonjourForwarding.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsBonjourForwarding.java index 16465b97..c8ae0895 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsBonjourForwarding.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsBonjourForwarding.java @@ -168,13 +168,20 @@ public WirelessSsidsBonjourForwarding(String name, WirelessSsidsBonjourForwardin * @param options A bag of options that control this resource's behavior. */ public WirelessSsidsBonjourForwarding(String name, WirelessSsidsBonjourForwardingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSsidsBonjourForwarding:WirelessSsidsBonjourForwarding", name, args == null ? WirelessSsidsBonjourForwardingArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSsidsBonjourForwarding:WirelessSsidsBonjourForwarding", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSsidsBonjourForwarding(String name, Output id, @Nullable WirelessSsidsBonjourForwardingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSsidsBonjourForwarding:WirelessSsidsBonjourForwarding", name, state, makeResourceOptions(options, id)); } + private static WirelessSsidsBonjourForwardingArgs makeArgs(WirelessSsidsBonjourForwardingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSsidsBonjourForwardingArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsDeviceTypeGroupPolicies.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsDeviceTypeGroupPolicies.java index 97b98338..ea8e16bb 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsDeviceTypeGroupPolicies.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsDeviceTypeGroupPolicies.java @@ -148,13 +148,20 @@ public WirelessSsidsDeviceTypeGroupPolicies(String name, WirelessSsidsDeviceType * @param options A bag of options that control this resource's behavior. */ public WirelessSsidsDeviceTypeGroupPolicies(String name, WirelessSsidsDeviceTypeGroupPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSsidsDeviceTypeGroupPolicies:WirelessSsidsDeviceTypeGroupPolicies", name, args == null ? WirelessSsidsDeviceTypeGroupPoliciesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSsidsDeviceTypeGroupPolicies:WirelessSsidsDeviceTypeGroupPolicies", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSsidsDeviceTypeGroupPolicies(String name, Output id, @Nullable WirelessSsidsDeviceTypeGroupPoliciesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSsidsDeviceTypeGroupPolicies:WirelessSsidsDeviceTypeGroupPolicies", name, state, makeResourceOptions(options, id)); } + private static WirelessSsidsDeviceTypeGroupPoliciesArgs makeArgs(WirelessSsidsDeviceTypeGroupPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSsidsDeviceTypeGroupPoliciesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsEapOverride.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsEapOverride.java index e05ef691..bb2c303f 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsEapOverride.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsEapOverride.java @@ -182,13 +182,20 @@ public WirelessSsidsEapOverride(String name, WirelessSsidsEapOverrideArgs args) * @param options A bag of options that control this resource's behavior. */ public WirelessSsidsEapOverride(String name, WirelessSsidsEapOverrideArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSsidsEapOverride:WirelessSsidsEapOverride", name, args == null ? WirelessSsidsEapOverrideArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSsidsEapOverride:WirelessSsidsEapOverride", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSsidsEapOverride(String name, Output id, @Nullable WirelessSsidsEapOverrideState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSsidsEapOverride:WirelessSsidsEapOverride", name, state, makeResourceOptions(options, id)); } + private static WirelessSsidsEapOverrideArgs makeArgs(WirelessSsidsEapOverrideArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSsidsEapOverrideArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsFirewallL3FirewallRules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsFirewallL3FirewallRules.java index 8e940a31..f7f28e5b 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsFirewallL3FirewallRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsFirewallL3FirewallRules.java @@ -167,13 +167,20 @@ public WirelessSsidsFirewallL3FirewallRules(String name, WirelessSsidsFirewallL3 * @param options A bag of options that control this resource's behavior. */ public WirelessSsidsFirewallL3FirewallRules(String name, WirelessSsidsFirewallL3FirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSsidsFirewallL3FirewallRules:WirelessSsidsFirewallL3FirewallRules", name, args == null ? WirelessSsidsFirewallL3FirewallRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSsidsFirewallL3FirewallRules:WirelessSsidsFirewallL3FirewallRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSsidsFirewallL3FirewallRules(String name, Output id, @Nullable WirelessSsidsFirewallL3FirewallRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSsidsFirewallL3FirewallRules:WirelessSsidsFirewallL3FirewallRules", name, state, makeResourceOptions(options, id)); } + private static WirelessSsidsFirewallL3FirewallRulesArgs makeArgs(WirelessSsidsFirewallL3FirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSsidsFirewallL3FirewallRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsFirewallL7FirewallRules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsFirewallL7FirewallRules.java index b8638da6..976accb0 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsFirewallL7FirewallRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsFirewallL7FirewallRules.java @@ -133,13 +133,20 @@ public WirelessSsidsFirewallL7FirewallRules(String name, WirelessSsidsFirewallL7 * @param options A bag of options that control this resource's behavior. */ public WirelessSsidsFirewallL7FirewallRules(String name, WirelessSsidsFirewallL7FirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSsidsFirewallL7FirewallRules:WirelessSsidsFirewallL7FirewallRules", name, args == null ? WirelessSsidsFirewallL7FirewallRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSsidsFirewallL7FirewallRules:WirelessSsidsFirewallL7FirewallRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSsidsFirewallL7FirewallRules(String name, Output id, @Nullable WirelessSsidsFirewallL7FirewallRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSsidsFirewallL7FirewallRules:WirelessSsidsFirewallL7FirewallRules", name, state, makeResourceOptions(options, id)); } + private static WirelessSsidsFirewallL7FirewallRulesArgs makeArgs(WirelessSsidsFirewallL7FirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSsidsFirewallL7FirewallRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsHotspot20.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsHotspot20.java index 298245cc..7bc8f55c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsHotspot20.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsHotspot20.java @@ -262,13 +262,20 @@ public WirelessSsidsHotspot20(String name, WirelessSsidsHotspot20Args args) { * @param options A bag of options that control this resource's behavior. */ public WirelessSsidsHotspot20(String name, WirelessSsidsHotspot20Args args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSsidsHotspot20:WirelessSsidsHotspot20", name, args == null ? WirelessSsidsHotspot20Args.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSsidsHotspot20:WirelessSsidsHotspot20", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSsidsHotspot20(String name, Output id, @Nullable WirelessSsidsHotspot20State state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSsidsHotspot20:WirelessSsidsHotspot20", name, state, makeResourceOptions(options, id)); } + private static WirelessSsidsHotspot20Args makeArgs(WirelessSsidsHotspot20Args args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSsidsHotspot20Args.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsIdentityPsks.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsIdentityPsks.java index 24f7d6a6..06f68c43 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsIdentityPsks.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsIdentityPsks.java @@ -213,13 +213,20 @@ public WirelessSsidsIdentityPsks(String name, WirelessSsidsIdentityPsksArgs args * @param options A bag of options that control this resource's behavior. */ public WirelessSsidsIdentityPsks(String name, WirelessSsidsIdentityPsksArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSsidsIdentityPsks:WirelessSsidsIdentityPsks", name, args == null ? WirelessSsidsIdentityPsksArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSsidsIdentityPsks:WirelessSsidsIdentityPsks", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSsidsIdentityPsks(String name, Output id, @Nullable WirelessSsidsIdentityPsksState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSsidsIdentityPsks:WirelessSsidsIdentityPsks", name, state, makeResourceOptions(options, id)); } + private static WirelessSsidsIdentityPsksArgs makeArgs(WirelessSsidsIdentityPsksArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSsidsIdentityPsksArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsSchedules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsSchedules.java index 2a33638c..9b177d4b 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsSchedules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsSchedules.java @@ -165,13 +165,20 @@ public WirelessSsidsSchedules(String name, WirelessSsidsSchedulesArgs args) { * @param options A bag of options that control this resource's behavior. */ public WirelessSsidsSchedules(String name, WirelessSsidsSchedulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSsidsSchedules:WirelessSsidsSchedules", name, args == null ? WirelessSsidsSchedulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSsidsSchedules:WirelessSsidsSchedules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSsidsSchedules(String name, Output id, @Nullable WirelessSsidsSchedulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSsidsSchedules:WirelessSsidsSchedules", name, state, makeResourceOptions(options, id)); } + private static WirelessSsidsSchedulesArgs makeArgs(WirelessSsidsSchedulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSsidsSchedulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsSplashSettings.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsSplashSettings.java index d816f28e..49eb6e6d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsSplashSettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsSplashSettings.java @@ -443,13 +443,20 @@ public WirelessSsidsSplashSettings(String name, WirelessSsidsSplashSettingsArgs * @param options A bag of options that control this resource's behavior. */ public WirelessSsidsSplashSettings(String name, WirelessSsidsSplashSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSsidsSplashSettings:WirelessSsidsSplashSettings", name, args == null ? WirelessSsidsSplashSettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSsidsSplashSettings:WirelessSsidsSplashSettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSsidsSplashSettings(String name, Output id, @Nullable WirelessSsidsSplashSettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSsidsSplashSettings:WirelessSsidsSplashSettings", name, state, makeResourceOptions(options, id)); } + private static WirelessSsidsSplashSettingsArgs makeArgs(WirelessSsidsSplashSettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSsidsSplashSettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsTrafficShapingRules.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsTrafficShapingRules.java index b3f2bb53..896d892b 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsTrafficShapingRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsTrafficShapingRules.java @@ -172,13 +172,20 @@ public WirelessSsidsTrafficShapingRules(String name, WirelessSsidsTrafficShaping * @param options A bag of options that control this resource's behavior. */ public WirelessSsidsTrafficShapingRules(String name, WirelessSsidsTrafficShapingRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSsidsTrafficShapingRules:WirelessSsidsTrafficShapingRules", name, args == null ? WirelessSsidsTrafficShapingRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSsidsTrafficShapingRules:WirelessSsidsTrafficShapingRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSsidsTrafficShapingRules(String name, Output id, @Nullable WirelessSsidsTrafficShapingRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSsidsTrafficShapingRules:WirelessSsidsTrafficShapingRules", name, state, makeResourceOptions(options, id)); } + private static WirelessSsidsTrafficShapingRulesArgs makeArgs(WirelessSsidsTrafficShapingRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSsidsTrafficShapingRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsVpn.java b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsVpn.java index 31decac7..483744c0 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsVpn.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/networks/WirelessSsidsVpn.java @@ -178,13 +178,20 @@ public WirelessSsidsVpn(String name, WirelessSsidsVpnArgs args) { * @param options A bag of options that control this resource's behavior. */ public WirelessSsidsVpn(String name, WirelessSsidsVpnArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:networks/wirelessSsidsVpn:WirelessSsidsVpn", name, args == null ? WirelessSsidsVpnArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:networks/wirelessSsidsVpn:WirelessSsidsVpn", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private WirelessSsidsVpn(String name, Output id, @Nullable WirelessSsidsVpnState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:networks/wirelessSsidsVpn:WirelessSsidsVpn", name, state, makeResourceOptions(options, id)); } + private static WirelessSsidsVpnArgs makeArgs(WirelessSsidsVpnArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? WirelessSsidsVpnArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/ActionBatches.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/ActionBatches.java index 174c95e1..77bdab7f 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/ActionBatches.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/ActionBatches.java @@ -199,13 +199,20 @@ public ActionBatches(String name, ActionBatchesArgs args) { * @param options A bag of options that control this resource's behavior. */ public ActionBatches(String name, ActionBatchesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/actionBatches:ActionBatches", name, args == null ? ActionBatchesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/actionBatches:ActionBatches", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ActionBatches(String name, Output id, @Nullable ActionBatchesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/actionBatches:ActionBatches", name, state, makeResourceOptions(options, id)); } + private static ActionBatchesArgs makeArgs(ActionBatchesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ActionBatchesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicyAcls.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicyAcls.java index 11768d1d..85a75d20 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicyAcls.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicyAcls.java @@ -206,13 +206,20 @@ public AdaptivePolicyAcls(String name, AdaptivePolicyAclsArgs args) { * @param options A bag of options that control this resource's behavior. */ public AdaptivePolicyAcls(String name, AdaptivePolicyAclsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/adaptivePolicyAcls:AdaptivePolicyAcls", name, args == null ? AdaptivePolicyAclsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/adaptivePolicyAcls:AdaptivePolicyAcls", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AdaptivePolicyAcls(String name, Output id, @Nullable AdaptivePolicyAclsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/adaptivePolicyAcls:AdaptivePolicyAcls", name, state, makeResourceOptions(options, id)); } + private static AdaptivePolicyAclsArgs makeArgs(AdaptivePolicyAclsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AdaptivePolicyAclsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicyGroups.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicyGroups.java index e202fd19..5ae205f8 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicyGroups.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicyGroups.java @@ -194,13 +194,20 @@ public AdaptivePolicyGroups(String name, AdaptivePolicyGroupsArgs args) { * @param options A bag of options that control this resource's behavior. */ public AdaptivePolicyGroups(String name, AdaptivePolicyGroupsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/adaptivePolicyGroups:AdaptivePolicyGroups", name, args == null ? AdaptivePolicyGroupsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/adaptivePolicyGroups:AdaptivePolicyGroups", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AdaptivePolicyGroups(String name, Output id, @Nullable AdaptivePolicyGroupsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/adaptivePolicyGroups:AdaptivePolicyGroups", name, state, makeResourceOptions(options, id)); } + private static AdaptivePolicyGroupsArgs makeArgs(AdaptivePolicyGroupsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AdaptivePolicyGroupsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicyPolicies.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicyPolicies.java index f772dd55..9295a0fc 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicyPolicies.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicyPolicies.java @@ -192,13 +192,20 @@ public AdaptivePolicyPolicies(String name, AdaptivePolicyPoliciesArgs args) { * @param options A bag of options that control this resource's behavior. */ public AdaptivePolicyPolicies(String name, AdaptivePolicyPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/adaptivePolicyPolicies:AdaptivePolicyPolicies", name, args == null ? AdaptivePolicyPoliciesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/adaptivePolicyPolicies:AdaptivePolicyPolicies", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AdaptivePolicyPolicies(String name, Output id, @Nullable AdaptivePolicyPoliciesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/adaptivePolicyPolicies:AdaptivePolicyPolicies", name, state, makeResourceOptions(options, id)); } + private static AdaptivePolicyPoliciesArgs makeArgs(AdaptivePolicyPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AdaptivePolicyPoliciesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicySettings.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicySettings.java index ba588ed4..e7284894 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicySettings.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/AdaptivePolicySettings.java @@ -116,13 +116,20 @@ public AdaptivePolicySettings(String name, AdaptivePolicySettingsArgs args) { * @param options A bag of options that control this resource's behavior. */ public AdaptivePolicySettings(String name, AdaptivePolicySettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/adaptivePolicySettings:AdaptivePolicySettings", name, args == null ? AdaptivePolicySettingsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/adaptivePolicySettings:AdaptivePolicySettings", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AdaptivePolicySettings(String name, Output id, @Nullable AdaptivePolicySettingsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/adaptivePolicySettings:AdaptivePolicySettings", name, state, makeResourceOptions(options, id)); } + private static AdaptivePolicySettingsArgs makeArgs(AdaptivePolicySettingsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AdaptivePolicySettingsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Admins.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Admins.java index c9c5b82b..07273703 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Admins.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Admins.java @@ -269,13 +269,20 @@ public Admins(String name, AdminsArgs args) { * @param options A bag of options that control this resource's behavior. */ public Admins(String name, AdminsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/admins:Admins", name, args == null ? AdminsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/admins:Admins", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Admins(String name, Output id, @Nullable AdminsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/admins:Admins", name, state, makeResourceOptions(options, id)); } + private static AdminsArgs makeArgs(AdminsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AdminsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/AlertsProfiles.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/AlertsProfiles.java index 3c5ae341..8c59a986 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/AlertsProfiles.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/AlertsProfiles.java @@ -219,13 +219,20 @@ public AlertsProfiles(String name, AlertsProfilesArgs args) { * @param options A bag of options that control this resource's behavior. */ public AlertsProfiles(String name, AlertsProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/alertsProfiles:AlertsProfiles", name, args == null ? AlertsProfilesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/alertsProfiles:AlertsProfiles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private AlertsProfiles(String name, Output id, @Nullable AlertsProfilesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/alertsProfiles:AlertsProfiles", name, state, makeResourceOptions(options, id)); } + private static AlertsProfilesArgs makeArgs(AlertsProfilesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? AlertsProfilesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/ApplianceSecurityIntrusion.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/ApplianceSecurityIntrusion.java index 5fdbc358..bd9a285b 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/ApplianceSecurityIntrusion.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/ApplianceSecurityIntrusion.java @@ -117,13 +117,20 @@ public ApplianceSecurityIntrusion(String name, ApplianceSecurityIntrusionArgs ar * @param options A bag of options that control this resource's behavior. */ public ApplianceSecurityIntrusion(String name, ApplianceSecurityIntrusionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/applianceSecurityIntrusion:ApplianceSecurityIntrusion", name, args == null ? ApplianceSecurityIntrusionArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/applianceSecurityIntrusion:ApplianceSecurityIntrusion", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceSecurityIntrusion(String name, Output id, @Nullable ApplianceSecurityIntrusionState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/applianceSecurityIntrusion:ApplianceSecurityIntrusion", name, state, makeResourceOptions(options, id)); } + private static ApplianceSecurityIntrusionArgs makeArgs(ApplianceSecurityIntrusionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceSecurityIntrusionArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/ApplianceVpnThirdPartyVpnpeers.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/ApplianceVpnThirdPartyVpnpeers.java index 0026e5db..8d919d65 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/ApplianceVpnThirdPartyVpnpeers.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/ApplianceVpnThirdPartyVpnpeers.java @@ -143,13 +143,20 @@ public ApplianceVpnThirdPartyVpnpeers(String name, ApplianceVpnThirdPartyVpnpeer * @param options A bag of options that control this resource's behavior. */ public ApplianceVpnThirdPartyVpnpeers(String name, ApplianceVpnThirdPartyVpnpeersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/applianceVpnThirdPartyVpnpeers:ApplianceVpnThirdPartyVpnpeers", name, args == null ? ApplianceVpnThirdPartyVpnpeersArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/applianceVpnThirdPartyVpnpeers:ApplianceVpnThirdPartyVpnpeers", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceVpnThirdPartyVpnpeers(String name, Output id, @Nullable ApplianceVpnThirdPartyVpnpeersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/applianceVpnThirdPartyVpnpeers:ApplianceVpnThirdPartyVpnpeers", name, state, makeResourceOptions(options, id)); } + private static ApplianceVpnThirdPartyVpnpeersArgs makeArgs(ApplianceVpnThirdPartyVpnpeersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceVpnThirdPartyVpnpeersArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/ApplianceVpnVpnFirewallRules.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/ApplianceVpnVpnFirewallRules.java index 134f0f25..0475e817 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/ApplianceVpnVpnFirewallRules.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/ApplianceVpnVpnFirewallRules.java @@ -139,13 +139,20 @@ public ApplianceVpnVpnFirewallRules(String name, ApplianceVpnVpnFirewallRulesArg * @param options A bag of options that control this resource's behavior. */ public ApplianceVpnVpnFirewallRules(String name, ApplianceVpnVpnFirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/applianceVpnVpnFirewallRules:ApplianceVpnVpnFirewallRules", name, args == null ? ApplianceVpnVpnFirewallRulesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/applianceVpnVpnFirewallRules:ApplianceVpnVpnFirewallRules", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ApplianceVpnVpnFirewallRules(String name, Output id, @Nullable ApplianceVpnVpnFirewallRulesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/applianceVpnVpnFirewallRules:ApplianceVpnVpnFirewallRules", name, state, makeResourceOptions(options, id)); } + private static ApplianceVpnVpnFirewallRulesArgs makeArgs(ApplianceVpnVpnFirewallRulesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ApplianceVpnVpnFirewallRulesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Base.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Base.java index 6b3d08f1..10fd9dcf 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Base.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Base.java @@ -191,13 +191,20 @@ public Base(String name, @Nullable BaseArgs args) { * @param options A bag of options that control this resource's behavior. */ public Base(String name, @Nullable BaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/base:base", name, args == null ? BaseArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/base:base", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Base(String name, Output id, @Nullable BaseState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/base:base", name, state, makeResourceOptions(options, id)); } + private static BaseArgs makeArgs(@Nullable BaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BaseArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/BrandingPolicies.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/BrandingPolicies.java index 32d9ff3a..a5c6edc2 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/BrandingPolicies.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/BrandingPolicies.java @@ -227,13 +227,20 @@ public BrandingPolicies(String name, BrandingPoliciesArgs args) { * @param options A bag of options that control this resource's behavior. */ public BrandingPolicies(String name, BrandingPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/brandingPolicies:BrandingPolicies", name, args == null ? BrandingPoliciesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/brandingPolicies:BrandingPolicies", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private BrandingPolicies(String name, Output id, @Nullable BrandingPoliciesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/brandingPolicies:BrandingPolicies", name, state, makeResourceOptions(options, id)); } + private static BrandingPoliciesArgs makeArgs(BrandingPoliciesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BrandingPoliciesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/BrandingPoliciesPriorities.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/BrandingPoliciesPriorities.java index cb8feb3a..cd12eab9 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/BrandingPoliciesPriorities.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/BrandingPoliciesPriorities.java @@ -115,13 +115,20 @@ public BrandingPoliciesPriorities(String name, BrandingPoliciesPrioritiesArgs ar * @param options A bag of options that control this resource's behavior. */ public BrandingPoliciesPriorities(String name, BrandingPoliciesPrioritiesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/brandingPoliciesPriorities:BrandingPoliciesPriorities", name, args == null ? BrandingPoliciesPrioritiesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/brandingPoliciesPriorities:BrandingPoliciesPriorities", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private BrandingPoliciesPriorities(String name, Output id, @Nullable BrandingPoliciesPrioritiesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/brandingPoliciesPriorities:BrandingPoliciesPriorities", name, state, makeResourceOptions(options, id)); } + private static BrandingPoliciesPrioritiesArgs makeArgs(BrandingPoliciesPrioritiesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? BrandingPoliciesPrioritiesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/CameraCustomAnalyticsArtifacts.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/CameraCustomAnalyticsArtifacts.java index 0d6eeee2..c530491d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/CameraCustomAnalyticsArtifacts.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/CameraCustomAnalyticsArtifacts.java @@ -140,13 +140,20 @@ public CameraCustomAnalyticsArtifacts(String name, CameraCustomAnalyticsArtifact * @param options A bag of options that control this resource's behavior. */ public CameraCustomAnalyticsArtifacts(String name, CameraCustomAnalyticsArtifactsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/cameraCustomAnalyticsArtifacts:CameraCustomAnalyticsArtifacts", name, args == null ? CameraCustomAnalyticsArtifactsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/cameraCustomAnalyticsArtifacts:CameraCustomAnalyticsArtifacts", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CameraCustomAnalyticsArtifacts(String name, Output id, @Nullable CameraCustomAnalyticsArtifactsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/cameraCustomAnalyticsArtifacts:CameraCustomAnalyticsArtifacts", name, state, makeResourceOptions(options, id)); } + private static CameraCustomAnalyticsArtifactsArgs makeArgs(CameraCustomAnalyticsArtifactsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CameraCustomAnalyticsArtifactsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/CameraRoles.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/CameraRoles.java index 5ac1f2d5..54701a21 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/CameraRoles.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/CameraRoles.java @@ -188,13 +188,20 @@ public CameraRoles(String name, CameraRolesArgs args) { * @param options A bag of options that control this resource's behavior. */ public CameraRoles(String name, CameraRolesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/cameraRoles:CameraRoles", name, args == null ? CameraRolesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/cameraRoles:CameraRoles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private CameraRoles(String name, Output id, @Nullable CameraRolesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/cameraRoles:CameraRoles", name, state, makeResourceOptions(options, id)); } + private static CameraRolesArgs makeArgs(CameraRolesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CameraRolesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Claim.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Claim.java index 47dd040f..62f3759b 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Claim.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Claim.java @@ -116,13 +116,20 @@ public Claim(String name, ClaimArgs args) { * @param options A bag of options that control this resource's behavior. */ public Claim(String name, ClaimArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/claim:Claim", name, args == null ? ClaimArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/claim:Claim", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Claim(String name, Output id, @Nullable ClaimState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/claim:Claim", name, state, makeResourceOptions(options, id)); } + private static ClaimArgs makeArgs(ClaimArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ClaimArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Clone.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Clone.java index 1efd0df0..7f271523 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Clone.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Clone.java @@ -111,13 +111,20 @@ public Clone(String name, CloneArgs args) { * @param options A bag of options that control this resource's behavior. */ public Clone(String name, CloneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/clone:Clone", name, args == null ? CloneArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/clone:Clone", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Clone(String name, Output id, @Nullable CloneState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/clone:Clone", name, state, makeResourceOptions(options, id)); } + private static CloneArgs makeArgs(CloneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? CloneArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/ConfigTemplates.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/ConfigTemplates.java index d9a2dbe5..e3f4a90f 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/ConfigTemplates.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/ConfigTemplates.java @@ -156,13 +156,20 @@ public ConfigTemplates(String name, ConfigTemplatesArgs args) { * @param options A bag of options that control this resource's behavior. */ public ConfigTemplates(String name, ConfigTemplatesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/configTemplates:ConfigTemplates", name, args == null ? ConfigTemplatesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/configTemplates:ConfigTemplates", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ConfigTemplates(String name, Output id, @Nullable ConfigTemplatesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/configTemplates:ConfigTemplates", name, state, makeResourceOptions(options, id)); } + private static ConfigTemplatesArgs makeArgs(ConfigTemplatesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ConfigTemplatesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/ConfigTemplatesSwitchProfilesPorts.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/ConfigTemplatesSwitchProfilesPorts.java index 1798b81e..ab9320fa 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/ConfigTemplatesSwitchProfilesPorts.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/ConfigTemplatesSwitchProfilesPorts.java @@ -545,13 +545,20 @@ public ConfigTemplatesSwitchProfilesPorts(String name, ConfigTemplatesSwitchProf * @param options A bag of options that control this resource's behavior. */ public ConfigTemplatesSwitchProfilesPorts(String name, ConfigTemplatesSwitchProfilesPortsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/configTemplatesSwitchProfilesPorts:ConfigTemplatesSwitchProfilesPorts", name, args == null ? ConfigTemplatesSwitchProfilesPortsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/configTemplatesSwitchProfilesPorts:ConfigTemplatesSwitchProfilesPorts", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private ConfigTemplatesSwitchProfilesPorts(String name, Output id, @Nullable ConfigTemplatesSwitchProfilesPortsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/configTemplatesSwitchProfilesPorts:ConfigTemplatesSwitchProfilesPorts", name, state, makeResourceOptions(options, id)); } + private static ConfigTemplatesSwitchProfilesPortsArgs makeArgs(ConfigTemplatesSwitchProfilesPortsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? ConfigTemplatesSwitchProfilesPortsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/EarlyAccessFeaturesOptIns.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/EarlyAccessFeaturesOptIns.java index 6b90be6b..466aec4c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/EarlyAccessFeaturesOptIns.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/EarlyAccessFeaturesOptIns.java @@ -91,6 +91,20 @@ public Output createdAt() { public Output> limitScopeToNetworks() { return this.limitScopeToNetworks; } + /** + * Networks assigned to the Early Access Feature + * + */ + @Export(name="limitScopeToNetworksRs", refs={List.class,String.class}, tree="[0,1]") + private Output> limitScopeToNetworksRs; + + /** + * @return Networks assigned to the Early Access Feature + * + */ + public Output> limitScopeToNetworksRs() { + return this.limitScopeToNetworksRs; + } /** * optInId path parameter. Opt in ID * @@ -156,13 +170,20 @@ public EarlyAccessFeaturesOptIns(String name, EarlyAccessFeaturesOptInsArgs args * @param options A bag of options that control this resource's behavior. */ public EarlyAccessFeaturesOptIns(String name, EarlyAccessFeaturesOptInsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/earlyAccessFeaturesOptIns:EarlyAccessFeaturesOptIns", name, args == null ? EarlyAccessFeaturesOptInsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/earlyAccessFeaturesOptIns:EarlyAccessFeaturesOptIns", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private EarlyAccessFeaturesOptIns(String name, Output id, @Nullable EarlyAccessFeaturesOptInsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/earlyAccessFeaturesOptIns:EarlyAccessFeaturesOptIns", name, state, makeResourceOptions(options, id)); } + private static EarlyAccessFeaturesOptInsArgs makeArgs(EarlyAccessFeaturesOptInsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? EarlyAccessFeaturesOptInsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/EarlyAccessFeaturesOptInsArgs.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/EarlyAccessFeaturesOptInsArgs.java index cc6ad9ca..e1f785e8 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/EarlyAccessFeaturesOptInsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/EarlyAccessFeaturesOptInsArgs.java @@ -32,6 +32,21 @@ public Optional>> limitScopeToNetworks() { return Optional.ofNullable(this.limitScopeToNetworks); } + /** + * Networks assigned to the Early Access Feature + * + */ + @Import(name="limitScopeToNetworksRs") + private @Nullable Output> limitScopeToNetworksRs; + + /** + * @return Networks assigned to the Early Access Feature + * + */ + public Optional>> limitScopeToNetworksRs() { + return Optional.ofNullable(this.limitScopeToNetworksRs); + } + /** * optInId path parameter. Opt in ID * @@ -81,6 +96,7 @@ private EarlyAccessFeaturesOptInsArgs() {} private EarlyAccessFeaturesOptInsArgs(EarlyAccessFeaturesOptInsArgs $) { this.limitScopeToNetworks = $.limitScopeToNetworks; + this.limitScopeToNetworksRs = $.limitScopeToNetworksRs; this.optInId = $.optInId; this.organizationId = $.organizationId; this.shortName = $.shortName; @@ -135,6 +151,37 @@ public Builder limitScopeToNetworks(String... limitScopeToNetworks) { return limitScopeToNetworks(List.of(limitScopeToNetworks)); } + /** + * @param limitScopeToNetworksRs Networks assigned to the Early Access Feature + * + * @return builder + * + */ + public Builder limitScopeToNetworksRs(@Nullable Output> limitScopeToNetworksRs) { + $.limitScopeToNetworksRs = limitScopeToNetworksRs; + return this; + } + + /** + * @param limitScopeToNetworksRs Networks assigned to the Early Access Feature + * + * @return builder + * + */ + public Builder limitScopeToNetworksRs(List limitScopeToNetworksRs) { + return limitScopeToNetworksRs(Output.of(limitScopeToNetworksRs)); + } + + /** + * @param limitScopeToNetworksRs Networks assigned to the Early Access Feature + * + * @return builder + * + */ + public Builder limitScopeToNetworksRs(String... limitScopeToNetworksRs) { + return limitScopeToNetworksRs(List.of(limitScopeToNetworksRs)); + } + /** * @param optInId optInId path parameter. Opt in ID * diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/InsightMonitoredMediaServers.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/InsightMonitoredMediaServers.java index 575c826a..6a9df54c 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/InsightMonitoredMediaServers.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/InsightMonitoredMediaServers.java @@ -157,13 +157,20 @@ public InsightMonitoredMediaServers(String name, InsightMonitoredMediaServersArg * @param options A bag of options that control this resource's behavior. */ public InsightMonitoredMediaServers(String name, InsightMonitoredMediaServersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/insightMonitoredMediaServers:InsightMonitoredMediaServers", name, args == null ? InsightMonitoredMediaServersArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/insightMonitoredMediaServers:InsightMonitoredMediaServers", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private InsightMonitoredMediaServers(String name, Output id, @Nullable InsightMonitoredMediaServersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/insightMonitoredMediaServers:InsightMonitoredMediaServers", name, state, makeResourceOptions(options, id)); } + private static InsightMonitoredMediaServersArgs makeArgs(InsightMonitoredMediaServersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InsightMonitoredMediaServersArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryClaim.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryClaim.java index de3c62fc..e75b40a7 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryClaim.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryClaim.java @@ -116,13 +116,20 @@ public InventoryClaim(String name, InventoryClaimArgs args) { * @param options A bag of options that control this resource's behavior. */ public InventoryClaim(String name, InventoryClaimArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/inventoryClaim:InventoryClaim", name, args == null ? InventoryClaimArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/inventoryClaim:InventoryClaim", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private InventoryClaim(String name, Output id, @Nullable InventoryClaimState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/inventoryClaim:InventoryClaim", name, state, makeResourceOptions(options, id)); } + private static InventoryClaimArgs makeArgs(InventoryClaimArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InventoryClaimArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryOnboardingCloudMonitoringExportEvents.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryOnboardingCloudMonitoringExportEvents.java index 3805dc96..05d533b9 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryOnboardingCloudMonitoringExportEvents.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryOnboardingCloudMonitoringExportEvents.java @@ -107,13 +107,20 @@ public InventoryOnboardingCloudMonitoringExportEvents(String name, InventoryOnbo * @param options A bag of options that control this resource's behavior. */ public InventoryOnboardingCloudMonitoringExportEvents(String name, InventoryOnboardingCloudMonitoringExportEventsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/inventoryOnboardingCloudMonitoringExportEvents:InventoryOnboardingCloudMonitoringExportEvents", name, args == null ? InventoryOnboardingCloudMonitoringExportEventsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/inventoryOnboardingCloudMonitoringExportEvents:InventoryOnboardingCloudMonitoringExportEvents", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private InventoryOnboardingCloudMonitoringExportEvents(String name, Output id, @Nullable InventoryOnboardingCloudMonitoringExportEventsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/inventoryOnboardingCloudMonitoringExportEvents:InventoryOnboardingCloudMonitoringExportEvents", name, state, makeResourceOptions(options, id)); } + private static InventoryOnboardingCloudMonitoringExportEventsArgs makeArgs(InventoryOnboardingCloudMonitoringExportEventsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InventoryOnboardingCloudMonitoringExportEventsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryOnboardingCloudMonitoringImports.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryOnboardingCloudMonitoringImports.java index 43530d02..b6714a71 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryOnboardingCloudMonitoringImports.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryOnboardingCloudMonitoringImports.java @@ -114,13 +114,20 @@ public InventoryOnboardingCloudMonitoringImports(String name, InventoryOnboardin * @param options A bag of options that control this resource's behavior. */ public InventoryOnboardingCloudMonitoringImports(String name, InventoryOnboardingCloudMonitoringImportsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/inventoryOnboardingCloudMonitoringImports:InventoryOnboardingCloudMonitoringImports", name, args == null ? InventoryOnboardingCloudMonitoringImportsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/inventoryOnboardingCloudMonitoringImports:InventoryOnboardingCloudMonitoringImports", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private InventoryOnboardingCloudMonitoringImports(String name, Output id, @Nullable InventoryOnboardingCloudMonitoringImportsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/inventoryOnboardingCloudMonitoringImports:InventoryOnboardingCloudMonitoringImports", name, state, makeResourceOptions(options, id)); } + private static InventoryOnboardingCloudMonitoringImportsArgs makeArgs(InventoryOnboardingCloudMonitoringImportsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InventoryOnboardingCloudMonitoringImportsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryOnboardingCloudMonitoringPrepare.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryOnboardingCloudMonitoringPrepare.java index dd57ecb2..9b75be6e 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryOnboardingCloudMonitoringPrepare.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryOnboardingCloudMonitoringPrepare.java @@ -179,13 +179,20 @@ public InventoryOnboardingCloudMonitoringPrepare(String name, InventoryOnboardin * @param options A bag of options that control this resource's behavior. */ public InventoryOnboardingCloudMonitoringPrepare(String name, InventoryOnboardingCloudMonitoringPrepareArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/inventoryOnboardingCloudMonitoringPrepare:InventoryOnboardingCloudMonitoringPrepare", name, args == null ? InventoryOnboardingCloudMonitoringPrepareArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/inventoryOnboardingCloudMonitoringPrepare:InventoryOnboardingCloudMonitoringPrepare", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private InventoryOnboardingCloudMonitoringPrepare(String name, Output id, @Nullable InventoryOnboardingCloudMonitoringPrepareState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/inventoryOnboardingCloudMonitoringPrepare:InventoryOnboardingCloudMonitoringPrepare", name, state, makeResourceOptions(options, id)); } + private static InventoryOnboardingCloudMonitoringPrepareArgs makeArgs(InventoryOnboardingCloudMonitoringPrepareArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InventoryOnboardingCloudMonitoringPrepareArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryRelease.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryRelease.java index 2ed0acf8..acdf11d1 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryRelease.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/InventoryRelease.java @@ -111,13 +111,20 @@ public InventoryRelease(String name, InventoryReleaseArgs args) { * @param options A bag of options that control this resource's behavior. */ public InventoryRelease(String name, InventoryReleaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/inventoryRelease:InventoryRelease", name, args == null ? InventoryReleaseArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/inventoryRelease:InventoryRelease", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private InventoryRelease(String name, Output id, @Nullable InventoryReleaseState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/inventoryRelease:InventoryRelease", name, state, makeResourceOptions(options, id)); } + private static InventoryReleaseArgs makeArgs(InventoryReleaseArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? InventoryReleaseArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Licenses.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Licenses.java index 8ef02065..6f6e7d9e 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Licenses.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Licenses.java @@ -311,13 +311,20 @@ public Licenses(String name, LicensesArgs args) { * @param options A bag of options that control this resource's behavior. */ public Licenses(String name, LicensesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/licenses:Licenses", name, args == null ? LicensesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/licenses:Licenses", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Licenses(String name, Output id, @Nullable LicensesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/licenses:Licenses", name, state, makeResourceOptions(options, id)); } + private static LicensesArgs makeArgs(LicensesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LicensesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesAssignSeats.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesAssignSeats.java index 29fe1598..154c3a23 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesAssignSeats.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesAssignSeats.java @@ -113,13 +113,20 @@ public LicensesAssignSeats(String name, LicensesAssignSeatsArgs args) { * @param options A bag of options that control this resource's behavior. */ public LicensesAssignSeats(String name, LicensesAssignSeatsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/licensesAssignSeats:LicensesAssignSeats", name, args == null ? LicensesAssignSeatsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/licensesAssignSeats:LicensesAssignSeats", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LicensesAssignSeats(String name, Output id, @Nullable LicensesAssignSeatsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/licensesAssignSeats:LicensesAssignSeats", name, state, makeResourceOptions(options, id)); } + private static LicensesAssignSeatsArgs makeArgs(LicensesAssignSeatsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LicensesAssignSeatsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesMove.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesMove.java index 352664cf..93823166 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesMove.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesMove.java @@ -114,13 +114,20 @@ public LicensesMove(String name, LicensesMoveArgs args) { * @param options A bag of options that control this resource's behavior. */ public LicensesMove(String name, LicensesMoveArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/licensesMove:LicensesMove", name, args == null ? LicensesMoveArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/licensesMove:LicensesMove", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LicensesMove(String name, Output id, @Nullable LicensesMoveState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/licensesMove:LicensesMove", name, state, makeResourceOptions(options, id)); } + private static LicensesMoveArgs makeArgs(LicensesMoveArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LicensesMoveArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesMoveSeats.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesMoveSeats.java index d93b2f5c..51709146 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesMoveSeats.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesMoveSeats.java @@ -113,13 +113,20 @@ public LicensesMoveSeats(String name, LicensesMoveSeatsArgs args) { * @param options A bag of options that control this resource's behavior. */ public LicensesMoveSeats(String name, LicensesMoveSeatsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/licensesMoveSeats:LicensesMoveSeats", name, args == null ? LicensesMoveSeatsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/licensesMoveSeats:LicensesMoveSeats", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LicensesMoveSeats(String name, Output id, @Nullable LicensesMoveSeatsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/licensesMoveSeats:LicensesMoveSeats", name, state, makeResourceOptions(options, id)); } + private static LicensesMoveSeatsArgs makeArgs(LicensesMoveSeatsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LicensesMoveSeatsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesRenewSeats.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesRenewSeats.java index fde4651f..54ec45f8 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesRenewSeats.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensesRenewSeats.java @@ -112,13 +112,20 @@ public LicensesRenewSeats(String name, LicensesRenewSeatsArgs args) { * @param options A bag of options that control this resource's behavior. */ public LicensesRenewSeats(String name, LicensesRenewSeatsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/licensesRenewSeats:LicensesRenewSeats", name, args == null ? LicensesRenewSeatsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/licensesRenewSeats:LicensesRenewSeats", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LicensesRenewSeats(String name, Output id, @Nullable LicensesRenewSeatsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/licensesRenewSeats:LicensesRenewSeats", name, state, makeResourceOptions(options, id)); } + private static LicensesRenewSeatsArgs makeArgs(LicensesRenewSeatsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LicensesRenewSeatsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensingCotermLicensesMove.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensingCotermLicensesMove.java index b7f1d857..3ea5d0e4 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensingCotermLicensesMove.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/LicensingCotermLicensesMove.java @@ -122,13 +122,20 @@ public LicensingCotermLicensesMove(String name, LicensingCotermLicensesMoveArgs * @param options A bag of options that control this resource's behavior. */ public LicensingCotermLicensesMove(String name, LicensingCotermLicensesMoveArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/licensingCotermLicensesMove:LicensingCotermLicensesMove", name, args == null ? LicensingCotermLicensesMoveArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/licensingCotermLicensesMove:LicensingCotermLicensesMove", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LicensingCotermLicensesMove(String name, Output id, @Nullable LicensingCotermLicensesMoveState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/licensingCotermLicensesMove:LicensingCotermLicensesMove", name, state, makeResourceOptions(options, id)); } + private static LicensingCotermLicensesMoveArgs makeArgs(LicensingCotermLicensesMoveArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LicensingCotermLicensesMoveArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/LoginSecurity.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/LoginSecurity.java index e26d15a2..3ab4ff9d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/LoginSecurity.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/LoginSecurity.java @@ -300,13 +300,20 @@ public LoginSecurity(String name, LoginSecurityArgs args) { * @param options A bag of options that control this resource's behavior. */ public LoginSecurity(String name, LoginSecurityArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/loginSecurity:LoginSecurity", name, args == null ? LoginSecurityArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/loginSecurity:LoginSecurity", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private LoginSecurity(String name, Output id, @Nullable LoginSecurityState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/loginSecurity:LoginSecurity", name, state, makeResourceOptions(options, id)); } + private static LoginSecurityArgs makeArgs(LoginSecurityArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? LoginSecurityArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/NetworksCombine.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/NetworksCombine.java index 8ea3e784..75039fee 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/NetworksCombine.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/NetworksCombine.java @@ -115,13 +115,20 @@ public NetworksCombine(String name, NetworksCombineArgs args) { * @param options A bag of options that control this resource's behavior. */ public NetworksCombine(String name, NetworksCombineArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/networksCombine:NetworksCombine", name, args == null ? NetworksCombineArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/networksCombine:NetworksCombine", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private NetworksCombine(String name, Output id, @Nullable NetworksCombineState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/networksCombine:NetworksCombine", name, state, makeResourceOptions(options, id)); } + private static NetworksCombineArgs makeArgs(NetworksCombineArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? NetworksCombineArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/PolicyObjects.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/PolicyObjects.java index 8d6d482a..a47abf79 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/PolicyObjects.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/PolicyObjects.java @@ -249,13 +249,20 @@ public PolicyObjects(String name, PolicyObjectsArgs args) { * @param options A bag of options that control this resource's behavior. */ public PolicyObjects(String name, PolicyObjectsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/policyObjects:PolicyObjects", name, args == null ? PolicyObjectsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/policyObjects:PolicyObjects", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private PolicyObjects(String name, Output id, @Nullable PolicyObjectsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/policyObjects:PolicyObjects", name, state, makeResourceOptions(options, id)); } + private static PolicyObjectsArgs makeArgs(PolicyObjectsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? PolicyObjectsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/PolicyObjectsGroups.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/PolicyObjectsGroups.java index 47f0e7b2..af170e07 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/PolicyObjectsGroups.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/PolicyObjectsGroups.java @@ -174,13 +174,20 @@ public PolicyObjectsGroups(String name, PolicyObjectsGroupsArgs args) { * @param options A bag of options that control this resource's behavior. */ public PolicyObjectsGroups(String name, PolicyObjectsGroupsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/policyObjectsGroups:PolicyObjectsGroups", name, args == null ? PolicyObjectsGroupsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/policyObjectsGroups:PolicyObjectsGroups", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private PolicyObjectsGroups(String name, Output id, @Nullable PolicyObjectsGroupsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/policyObjectsGroups:PolicyObjectsGroups", name, state, makeResourceOptions(options, id)); } + private static PolicyObjectsGroupsArgs makeArgs(PolicyObjectsGroupsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? PolicyObjectsGroupsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Saml.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Saml.java index d01a098d..1ebb7f4d 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Saml.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Saml.java @@ -112,13 +112,20 @@ public Saml(String name, SamlArgs args) { * @param options A bag of options that control this resource's behavior. */ public Saml(String name, SamlArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/saml:Saml", name, args == null ? SamlArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/saml:Saml", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Saml(String name, Output id, @Nullable SamlState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/saml:Saml", name, state, makeResourceOptions(options, id)); } + private static SamlArgs makeArgs(SamlArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SamlArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/SamlIdps.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/SamlIdps.java index 85e0c28f..958a7313 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/SamlIdps.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/SamlIdps.java @@ -154,13 +154,20 @@ public SamlIdps(String name, SamlIdpsArgs args) { * @param options A bag of options that control this resource's behavior. */ public SamlIdps(String name, SamlIdpsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/samlIdps:SamlIdps", name, args == null ? SamlIdpsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/samlIdps:SamlIdps", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SamlIdps(String name, Output id, @Nullable SamlIdpsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/samlIdps:SamlIdps", name, state, makeResourceOptions(options, id)); } + private static SamlIdpsArgs makeArgs(SamlIdpsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SamlIdpsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/SamlRoles.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/SamlRoles.java index cc1149e7..44095dad 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/SamlRoles.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/SamlRoles.java @@ -197,13 +197,20 @@ public SamlRoles(String name, SamlRolesArgs args) { * @param options A bag of options that control this resource's behavior. */ public SamlRoles(String name, SamlRolesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/samlRoles:SamlRoles", name, args == null ? SamlRolesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/samlRoles:SamlRoles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SamlRoles(String name, Output id, @Nullable SamlRolesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/samlRoles:SamlRoles", name, state, makeResourceOptions(options, id)); } + private static SamlRolesArgs makeArgs(SamlRolesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SamlRolesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/SmAdminsRoles.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/SmAdminsRoles.java index 5ffda2bf..d1c08d90 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/SmAdminsRoles.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/SmAdminsRoles.java @@ -156,13 +156,20 @@ public SmAdminsRoles(String name, SmAdminsRolesArgs args) { * @param options A bag of options that control this resource's behavior. */ public SmAdminsRoles(String name, SmAdminsRolesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/smAdminsRoles:SmAdminsRoles", name, args == null ? SmAdminsRolesArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/smAdminsRoles:SmAdminsRoles", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmAdminsRoles(String name, Output id, @Nullable SmAdminsRolesState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/smAdminsRoles:SmAdminsRoles", name, state, makeResourceOptions(options, id)); } + private static SmAdminsRolesArgs makeArgs(SmAdminsRolesArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmAdminsRolesArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/SmSentryPoliciesAssignments.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/SmSentryPoliciesAssignments.java index 771ef4ac..da8933ee 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/SmSentryPoliciesAssignments.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/SmSentryPoliciesAssignments.java @@ -122,13 +122,20 @@ public SmSentryPoliciesAssignments(String name, SmSentryPoliciesAssignmentsArgs * @param options A bag of options that control this resource's behavior. */ public SmSentryPoliciesAssignments(String name, SmSentryPoliciesAssignmentsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/smSentryPoliciesAssignments:SmSentryPoliciesAssignments", name, args == null ? SmSentryPoliciesAssignmentsArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/smSentryPoliciesAssignments:SmSentryPoliciesAssignments", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SmSentryPoliciesAssignments(String name, Output id, @Nullable SmSentryPoliciesAssignmentsState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/smSentryPoliciesAssignments:SmSentryPoliciesAssignments", name, state, makeResourceOptions(options, id)); } + private static SmSentryPoliciesAssignmentsArgs makeArgs(SmSentryPoliciesAssignmentsArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SmSentryPoliciesAssignmentsArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Snmp.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Snmp.java index c58f304e..ded25205 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Snmp.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Snmp.java @@ -260,13 +260,20 @@ public Snmp(String name, SnmpArgs args) { * @param options A bag of options that control this resource's behavior. */ public Snmp(String name, SnmpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/snmp:Snmp", name, args == null ? SnmpArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/snmp:Snmp", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Snmp(String name, Output id, @Nullable SnmpState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/snmp:Snmp", name, state, makeResourceOptions(options, id)); } + private static SnmpArgs makeArgs(SnmpArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SnmpArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/SwitchDevicesClone.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/SwitchDevicesClone.java index a4910d32..0aa3bddf 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/SwitchDevicesClone.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/SwitchDevicesClone.java @@ -108,13 +108,20 @@ public SwitchDevicesClone(String name, SwitchDevicesCloneArgs args) { * @param options A bag of options that control this resource's behavior. */ public SwitchDevicesClone(String name, SwitchDevicesCloneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/switchDevicesClone:SwitchDevicesClone", name, args == null ? SwitchDevicesCloneArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/switchDevicesClone:SwitchDevicesClone", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private SwitchDevicesClone(String name, Output id, @Nullable SwitchDevicesCloneState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/switchDevicesClone:SwitchDevicesClone", name, state, makeResourceOptions(options, id)); } + private static SwitchDevicesCloneArgs makeArgs(SwitchDevicesCloneArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? SwitchDevicesCloneArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Users.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Users.java index 50b9cece..7db6b68f 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/Users.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/Users.java @@ -108,13 +108,20 @@ public Users(String name, UsersArgs args) { * @param options A bag of options that control this resource's behavior. */ public Users(String name, UsersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { - super("meraki:organizations/users:Users", name, args == null ? UsersArgs.Empty : args, makeResourceOptions(options, Codegen.empty())); + super("meraki:organizations/users:Users", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty())); } private Users(String name, Output id, @Nullable UsersState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("meraki:organizations/users:Users", name, state, makeResourceOptions(options, id)); } + private static UsersArgs makeArgs(UsersArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { + if (options != null && options.getUrn().isPresent()) { + return null; + } + return args == null ? UsersArgs.Empty : args; + } + private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/inputs/EarlyAccessFeaturesOptInsState.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/inputs/EarlyAccessFeaturesOptInsState.java index c008439d..2dfa7bbf 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/inputs/EarlyAccessFeaturesOptInsState.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/inputs/EarlyAccessFeaturesOptInsState.java @@ -46,6 +46,21 @@ public Optional>> limitScopeToNetworks() { return Optional.ofNullable(this.limitScopeToNetworks); } + /** + * Networks assigned to the Early Access Feature + * + */ + @Import(name="limitScopeToNetworksRs") + private @Nullable Output> limitScopeToNetworksRs; + + /** + * @return Networks assigned to the Early Access Feature + * + */ + public Optional>> limitScopeToNetworksRs() { + return Optional.ofNullable(this.limitScopeToNetworksRs); + } + /** * optInId path parameter. Opt in ID * @@ -96,6 +111,7 @@ private EarlyAccessFeaturesOptInsState() {} private EarlyAccessFeaturesOptInsState(EarlyAccessFeaturesOptInsState $) { this.createdAt = $.createdAt; this.limitScopeToNetworks = $.limitScopeToNetworks; + this.limitScopeToNetworksRs = $.limitScopeToNetworksRs; this.optInId = $.optInId; this.organizationId = $.organizationId; this.shortName = $.shortName; @@ -171,6 +187,37 @@ public Builder limitScopeToNetworks(String... limitScopeToNetworks) { return limitScopeToNetworks(List.of(limitScopeToNetworks)); } + /** + * @param limitScopeToNetworksRs Networks assigned to the Early Access Feature + * + * @return builder + * + */ + public Builder limitScopeToNetworksRs(@Nullable Output> limitScopeToNetworksRs) { + $.limitScopeToNetworksRs = limitScopeToNetworksRs; + return this; + } + + /** + * @param limitScopeToNetworksRs Networks assigned to the Early Access Feature + * + * @return builder + * + */ + public Builder limitScopeToNetworksRs(List limitScopeToNetworksRs) { + return limitScopeToNetworksRs(Output.of(limitScopeToNetworksRs)); + } + + /** + * @param limitScopeToNetworksRs Networks assigned to the Early Access Feature + * + * @return builder + * + */ + public Builder limitScopeToNetworksRs(String... limitScopeToNetworksRs) { + return limitScopeToNetworksRs(List.of(limitScopeToNetworksRs)); + } + /** * @param optInId optInId path parameter. Opt in ID * diff --git a/sdk/java/src/main/java/com/pulumi/meraki/organizations/outputs/GetDevicesItem.java b/sdk/java/src/main/java/com/pulumi/meraki/organizations/outputs/GetDevicesItem.java index a82fc85f..de0be8ca 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/organizations/outputs/GetDevicesItem.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/organizations/outputs/GetDevicesItem.java @@ -32,7 +32,7 @@ public final class GetDevicesItem { * @return IMEI of the device, if applicable * */ - private String imei; + private Double imei; /** * @return LAN IP address of the device * @@ -115,7 +115,7 @@ public String firmware() { * @return IMEI of the device, if applicable * */ - public String imei() { + public Double imei() { return this.imei; } /** @@ -208,7 +208,7 @@ public static final class Builder { private String address; private List details; private String firmware; - private String imei; + private Double imei; private String lanIp; private Double lat; private Double lng; @@ -268,7 +268,7 @@ public Builder firmware(String firmware) { return this; } @CustomType.Setter - public Builder imei(String imei) { + public Builder imei(Double imei) { if (imei == null) { throw new MissingRequiredPropertyException("GetDevicesItem", "imei"); } diff --git a/sdk/java/src/main/java/com/pulumi/meraki/outputs/GetDevicesItem.java b/sdk/java/src/main/java/com/pulumi/meraki/outputs/GetDevicesItem.java index 71dc6459..fe8aa1bc 100644 --- a/sdk/java/src/main/java/com/pulumi/meraki/outputs/GetDevicesItem.java +++ b/sdk/java/src/main/java/com/pulumi/meraki/outputs/GetDevicesItem.java @@ -32,7 +32,7 @@ public final class GetDevicesItem { * @return IMEI of the device, if applicable * */ - private String imei; + private Double imei; /** * @return LAN IP address of the device * @@ -115,7 +115,7 @@ public String firmware() { * @return IMEI of the device, if applicable * */ - public String imei() { + public Double imei() { return this.imei; } /** @@ -208,7 +208,7 @@ public static final class Builder { private String address; private List details; private String firmware; - private String imei; + private Double imei; private String lanIp; private Double lat; private Double lng; @@ -268,7 +268,7 @@ public Builder firmware(String firmware) { return this; } @CustomType.Setter - public Builder imei(String imei) { + public Builder imei(Double imei) { if (imei == null) { throw new MissingRequiredPropertyException("GetDevicesItem", "imei"); } diff --git a/sdk/nodejs/organizations/earlyAccessFeaturesOptIns.ts b/sdk/nodejs/organizations/earlyAccessFeaturesOptIns.ts index 0b1d3a50..3029947e 100644 --- a/sdk/nodejs/organizations/earlyAccessFeaturesOptIns.ts +++ b/sdk/nodejs/organizations/earlyAccessFeaturesOptIns.ts @@ -61,6 +61,10 @@ export class EarlyAccessFeaturesOptIns extends pulumi.CustomResource { * Networks assigned to the Early Access Feature */ public readonly limitScopeToNetworks!: pulumi.Output; + /** + * Networks assigned to the Early Access Feature + */ + public readonly limitScopeToNetworksRs!: pulumi.Output; /** * optInId path parameter. Opt in ID */ @@ -89,6 +93,7 @@ export class EarlyAccessFeaturesOptIns extends pulumi.CustomResource { const state = argsOrState as EarlyAccessFeaturesOptInsState | undefined; resourceInputs["createdAt"] = state ? state.createdAt : undefined; resourceInputs["limitScopeToNetworks"] = state ? state.limitScopeToNetworks : undefined; + resourceInputs["limitScopeToNetworksRs"] = state ? state.limitScopeToNetworksRs : undefined; resourceInputs["optInId"] = state ? state.optInId : undefined; resourceInputs["organizationId"] = state ? state.organizationId : undefined; resourceInputs["shortName"] = state ? state.shortName : undefined; @@ -98,6 +103,7 @@ export class EarlyAccessFeaturesOptIns extends pulumi.CustomResource { throw new Error("Missing required property 'organizationId'"); } resourceInputs["limitScopeToNetworks"] = args ? args.limitScopeToNetworks : undefined; + resourceInputs["limitScopeToNetworksRs"] = args ? args.limitScopeToNetworksRs : undefined; resourceInputs["optInId"] = args ? args.optInId : undefined; resourceInputs["organizationId"] = args ? args.organizationId : undefined; resourceInputs["shortName"] = args ? args.shortName : undefined; @@ -120,6 +126,10 @@ export interface EarlyAccessFeaturesOptInsState { * Networks assigned to the Early Access Feature */ limitScopeToNetworks?: pulumi.Input[]>; + /** + * Networks assigned to the Early Access Feature + */ + limitScopeToNetworksRs?: pulumi.Input[]>; /** * optInId path parameter. Opt in ID */ @@ -142,6 +152,10 @@ export interface EarlyAccessFeaturesOptInsArgs { * Networks assigned to the Early Access Feature */ limitScopeToNetworks?: pulumi.Input[]>; + /** + * Networks assigned to the Early Access Feature + */ + limitScopeToNetworksRs?: pulumi.Input[]>; /** * optInId path parameter. Opt in ID */ diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 0bd79e23..56078c98 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -1542,7 +1542,7 @@ export namespace devices { /** * Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. */ - channelWidth?: pulumi.Input; + channelWidth?: pulumi.Input; /** * Set a manual target power for 5 GHz. Can be between '8' or '30' or null for using auto power range. */ diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 5c3522d6..05e4094b 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -21,7 +21,7 @@ export interface GetDevicesItem { /** * IMEI of the device, if applicable */ - imei: string; + imei: number; /** * LAN IP address of the device */ @@ -2960,7 +2960,7 @@ export namespace devices { export interface GetWirelessRadioSettingsItemFiveGhzSettings { channel: number; - channelWidth: number; + channelWidth: string; targetPower: number; } @@ -3800,7 +3800,7 @@ export namespace devices { /** * Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. */ - channelWidth: number; + channelWidth: string; /** * Set a manual target power for 5 GHz. Can be between '8' or '30' or null for using auto power range. */ @@ -23279,7 +23279,7 @@ export namespace organizations { /** * IMEI of the device, if applicable */ - imei: string; + imei: number; /** * LAN IP address of the device */ diff --git a/sdk/python/pulumi_meraki/devices/_inputs.py b/sdk/python/pulumi_meraki/devices/_inputs.py index 866125e1..dc5706de 100644 --- a/sdk/python/pulumi_meraki/devices/_inputs.py +++ b/sdk/python/pulumi_meraki/devices/_inputs.py @@ -4655,11 +4655,11 @@ def addresses(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): class WirelessRadioSettingsFiveGhzSettingsArgs: def __init__(__self__, *, channel: Optional[pulumi.Input[int]] = None, - channel_width: Optional[pulumi.Input[int]] = None, + channel_width: Optional[pulumi.Input[str]] = None, target_power: Optional[pulumi.Input[int]] = None): """ :param pulumi.Input[int] channel: Sets a manual channel for 5 GHz. Can be '36', '40', '44', '48', '52', '56', '60', '64', '100', '104', '108', '112', '116', '120', '124', '128', '132', '136', '140', '144', '149', '153', '157', '161', '165', '169', '173' or '177' or null for using auto channel. - :param pulumi.Input[int] channel_width: Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. + :param pulumi.Input[str] channel_width: Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. :param pulumi.Input[int] target_power: Set a manual target power for 5 GHz. Can be between '8' or '30' or null for using auto power range. """ if channel is not None: @@ -4683,14 +4683,14 @@ def channel(self, value: Optional[pulumi.Input[int]]): @property @pulumi.getter(name="channelWidth") - def channel_width(self) -> Optional[pulumi.Input[int]]: + def channel_width(self) -> Optional[pulumi.Input[str]]: """ Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. """ return pulumi.get(self, "channel_width") @channel_width.setter - def channel_width(self, value: Optional[pulumi.Input[int]]): + def channel_width(self, value: Optional[pulumi.Input[str]]): pulumi.set(self, "channel_width", value) @property diff --git a/sdk/python/pulumi_meraki/devices/outputs.py b/sdk/python/pulumi_meraki/devices/outputs.py index 72518beb..b9ff4614 100644 --- a/sdk/python/pulumi_meraki/devices/outputs.py +++ b/sdk/python/pulumi_meraki/devices/outputs.py @@ -4526,11 +4526,11 @@ def get(self, key: str, default = None) -> Any: def __init__(__self__, *, channel: Optional[int] = None, - channel_width: Optional[int] = None, + channel_width: Optional[str] = None, target_power: Optional[int] = None): """ :param int channel: Sets a manual channel for 5 GHz. Can be '36', '40', '44', '48', '52', '56', '60', '64', '100', '104', '108', '112', '116', '120', '124', '128', '132', '136', '140', '144', '149', '153', '157', '161', '165', '169', '173' or '177' or null for using auto channel. - :param int channel_width: Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. + :param str channel_width: Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. :param int target_power: Set a manual target power for 5 GHz. Can be between '8' or '30' or null for using auto power range. """ if channel is not None: @@ -4550,7 +4550,7 @@ def channel(self) -> Optional[int]: @property @pulumi.getter(name="channelWidth") - def channel_width(self) -> Optional[int]: + def channel_width(self) -> Optional[str]: """ Sets a manual channel for 5 GHz. Can be '0', '20', '40', '80' or '160' or null for using auto channel width. """ @@ -9610,7 +9610,7 @@ def two_four_ghz_settings(self) -> 'outputs.GetWirelessRadioSettingsItemTwoFourG class GetWirelessRadioSettingsItemFiveGhzSettingsResult(dict): def __init__(__self__, *, channel: int, - channel_width: int, + channel_width: str, target_power: int): pulumi.set(__self__, "channel", channel) pulumi.set(__self__, "channel_width", channel_width) @@ -9623,7 +9623,7 @@ def channel(self) -> int: @property @pulumi.getter(name="channelWidth") - def channel_width(self) -> int: + def channel_width(self) -> str: return pulumi.get(self, "channel_width") @property diff --git a/sdk/python/pulumi_meraki/organizations/early_access_features_opt_ins.py b/sdk/python/pulumi_meraki/organizations/early_access_features_opt_ins.py index db97db43..dad84fc1 100644 --- a/sdk/python/pulumi_meraki/organizations/early_access_features_opt_ins.py +++ b/sdk/python/pulumi_meraki/organizations/early_access_features_opt_ins.py @@ -16,18 +16,22 @@ class EarlyAccessFeaturesOptInsArgs: def __init__(__self__, *, organization_id: pulumi.Input[str], limit_scope_to_networks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + limit_scope_to_networks_rs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opt_in_id: Optional[pulumi.Input[str]] = None, short_name: Optional[pulumi.Input[str]] = None): """ The set of arguments for constructing a EarlyAccessFeaturesOptIns resource. :param pulumi.Input[str] organization_id: organizationId path parameter. Organization ID :param pulumi.Input[Sequence[pulumi.Input[str]]] limit_scope_to_networks: Networks assigned to the Early Access Feature + :param pulumi.Input[Sequence[pulumi.Input[str]]] limit_scope_to_networks_rs: Networks assigned to the Early Access Feature :param pulumi.Input[str] opt_in_id: optInId path parameter. Opt in ID :param pulumi.Input[str] short_name: Name of Early Access Feature """ pulumi.set(__self__, "organization_id", organization_id) if limit_scope_to_networks is not None: pulumi.set(__self__, "limit_scope_to_networks", limit_scope_to_networks) + if limit_scope_to_networks_rs is not None: + pulumi.set(__self__, "limit_scope_to_networks_rs", limit_scope_to_networks_rs) if opt_in_id is not None: pulumi.set(__self__, "opt_in_id", opt_in_id) if short_name is not None: @@ -57,6 +61,18 @@ def limit_scope_to_networks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input def limit_scope_to_networks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "limit_scope_to_networks", value) + @property + @pulumi.getter(name="limitScopeToNetworksRs") + def limit_scope_to_networks_rs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + Networks assigned to the Early Access Feature + """ + return pulumi.get(self, "limit_scope_to_networks_rs") + + @limit_scope_to_networks_rs.setter + def limit_scope_to_networks_rs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "limit_scope_to_networks_rs", value) + @property @pulumi.getter(name="optInId") def opt_in_id(self) -> Optional[pulumi.Input[str]]: @@ -87,6 +103,7 @@ class _EarlyAccessFeaturesOptInsState: def __init__(__self__, *, created_at: Optional[pulumi.Input[str]] = None, limit_scope_to_networks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + limit_scope_to_networks_rs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opt_in_id: Optional[pulumi.Input[str]] = None, organization_id: Optional[pulumi.Input[str]] = None, short_name: Optional[pulumi.Input[str]] = None): @@ -94,6 +111,7 @@ def __init__(__self__, *, Input properties used for looking up and filtering EarlyAccessFeaturesOptIns resources. :param pulumi.Input[str] created_at: Time when Early Access Feature was created :param pulumi.Input[Sequence[pulumi.Input[str]]] limit_scope_to_networks: Networks assigned to the Early Access Feature + :param pulumi.Input[Sequence[pulumi.Input[str]]] limit_scope_to_networks_rs: Networks assigned to the Early Access Feature :param pulumi.Input[str] opt_in_id: optInId path parameter. Opt in ID :param pulumi.Input[str] organization_id: organizationId path parameter. Organization ID :param pulumi.Input[str] short_name: Name of Early Access Feature @@ -102,6 +120,8 @@ def __init__(__self__, *, pulumi.set(__self__, "created_at", created_at) if limit_scope_to_networks is not None: pulumi.set(__self__, "limit_scope_to_networks", limit_scope_to_networks) + if limit_scope_to_networks_rs is not None: + pulumi.set(__self__, "limit_scope_to_networks_rs", limit_scope_to_networks_rs) if opt_in_id is not None: pulumi.set(__self__, "opt_in_id", opt_in_id) if organization_id is not None: @@ -133,6 +153,18 @@ def limit_scope_to_networks(self) -> Optional[pulumi.Input[Sequence[pulumi.Input def limit_scope_to_networks(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): pulumi.set(self, "limit_scope_to_networks", value) + @property + @pulumi.getter(name="limitScopeToNetworksRs") + def limit_scope_to_networks_rs(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: + """ + Networks assigned to the Early Access Feature + """ + return pulumi.get(self, "limit_scope_to_networks_rs") + + @limit_scope_to_networks_rs.setter + def limit_scope_to_networks_rs(self, value: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]): + pulumi.set(self, "limit_scope_to_networks_rs", value) + @property @pulumi.getter(name="optInId") def opt_in_id(self) -> Optional[pulumi.Input[str]]: @@ -176,6 +208,7 @@ def __init__(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, limit_scope_to_networks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + limit_scope_to_networks_rs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opt_in_id: Optional[pulumi.Input[str]] = None, organization_id: Optional[pulumi.Input[str]] = None, short_name: Optional[pulumi.Input[str]] = None, @@ -203,6 +236,7 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[Sequence[pulumi.Input[str]]] limit_scope_to_networks: Networks assigned to the Early Access Feature + :param pulumi.Input[Sequence[pulumi.Input[str]]] limit_scope_to_networks_rs: Networks assigned to the Early Access Feature :param pulumi.Input[str] opt_in_id: optInId path parameter. Opt in ID :param pulumi.Input[str] organization_id: organizationId path parameter. Organization ID :param pulumi.Input[str] short_name: Name of Early Access Feature @@ -249,6 +283,7 @@ def _internal_init(__self__, resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, limit_scope_to_networks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + limit_scope_to_networks_rs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opt_in_id: Optional[pulumi.Input[str]] = None, organization_id: Optional[pulumi.Input[str]] = None, short_name: Optional[pulumi.Input[str]] = None, @@ -262,6 +297,7 @@ def _internal_init(__self__, __props__ = EarlyAccessFeaturesOptInsArgs.__new__(EarlyAccessFeaturesOptInsArgs) __props__.__dict__["limit_scope_to_networks"] = limit_scope_to_networks + __props__.__dict__["limit_scope_to_networks_rs"] = limit_scope_to_networks_rs __props__.__dict__["opt_in_id"] = opt_in_id if organization_id is None and not opts.urn: raise TypeError("Missing required property 'organization_id'") @@ -280,6 +316,7 @@ def get(resource_name: str, opts: Optional[pulumi.ResourceOptions] = None, created_at: Optional[pulumi.Input[str]] = None, limit_scope_to_networks: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, + limit_scope_to_networks_rs: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None, opt_in_id: Optional[pulumi.Input[str]] = None, organization_id: Optional[pulumi.Input[str]] = None, short_name: Optional[pulumi.Input[str]] = None) -> 'EarlyAccessFeaturesOptIns': @@ -292,6 +329,7 @@ def get(resource_name: str, :param pulumi.ResourceOptions opts: Options for the resource. :param pulumi.Input[str] created_at: Time when Early Access Feature was created :param pulumi.Input[Sequence[pulumi.Input[str]]] limit_scope_to_networks: Networks assigned to the Early Access Feature + :param pulumi.Input[Sequence[pulumi.Input[str]]] limit_scope_to_networks_rs: Networks assigned to the Early Access Feature :param pulumi.Input[str] opt_in_id: optInId path parameter. Opt in ID :param pulumi.Input[str] organization_id: organizationId path parameter. Organization ID :param pulumi.Input[str] short_name: Name of Early Access Feature @@ -302,6 +340,7 @@ def get(resource_name: str, __props__.__dict__["created_at"] = created_at __props__.__dict__["limit_scope_to_networks"] = limit_scope_to_networks + __props__.__dict__["limit_scope_to_networks_rs"] = limit_scope_to_networks_rs __props__.__dict__["opt_in_id"] = opt_in_id __props__.__dict__["organization_id"] = organization_id __props__.__dict__["short_name"] = short_name @@ -323,6 +362,14 @@ def limit_scope_to_networks(self) -> pulumi.Output[Sequence[str]]: """ return pulumi.get(self, "limit_scope_to_networks") + @property + @pulumi.getter(name="limitScopeToNetworksRs") + def limit_scope_to_networks_rs(self) -> pulumi.Output[Sequence[str]]: + """ + Networks assigned to the Early Access Feature + """ + return pulumi.get(self, "limit_scope_to_networks_rs") + @property @pulumi.getter(name="optInId") def opt_in_id(self) -> pulumi.Output[Optional[str]]: diff --git a/sdk/python/pulumi_meraki/organizations/outputs.py b/sdk/python/pulumi_meraki/organizations/outputs.py index 995d31bf..5def722b 100644 --- a/sdk/python/pulumi_meraki/organizations/outputs.py +++ b/sdk/python/pulumi_meraki/organizations/outputs.py @@ -12416,7 +12416,7 @@ def __init__(__self__, *, address: str, details: Sequence['outputs.GetDevicesItemDetailResult'], firmware: str, - imei: str, + imei: float, lan_ip: str, lat: float, lng: float, @@ -12432,7 +12432,7 @@ def __init__(__self__, *, :param str address: Physical address of the device :param Sequence['GetDevicesItemDetailArgs'] details: Additional device information :param str firmware: Firmware version of the device - :param str imei: IMEI of the device, if applicable + :param float imei: IMEI of the device, if applicable :param str lan_ip: LAN IP address of the device :param float lat: Latitude of the device :param float lng: Longitude of the device @@ -12487,7 +12487,7 @@ def firmware(self) -> str: @property @pulumi.getter - def imei(self) -> str: + def imei(self) -> float: """ IMEI of the device, if applicable """ diff --git a/sdk/python/pulumi_meraki/outputs.py b/sdk/python/pulumi_meraki/outputs.py index b18911d6..741dc5ff 100644 --- a/sdk/python/pulumi_meraki/outputs.py +++ b/sdk/python/pulumi_meraki/outputs.py @@ -29,7 +29,7 @@ def __init__(__self__, *, address: str, details: Sequence['outputs.GetDevicesItemDetailResult'], firmware: str, - imei: str, + imei: float, lan_ip: str, lat: float, lng: float, @@ -45,7 +45,7 @@ def __init__(__self__, *, :param str address: Physical address of the device :param Sequence['GetDevicesItemDetailArgs'] details: Additional device information :param str firmware: Firmware version of the device - :param str imei: IMEI of the device, if applicable + :param float imei: IMEI of the device, if applicable :param str lan_ip: LAN IP address of the device :param float lat: Latitude of the device :param float lng: Longitude of the device @@ -100,7 +100,7 @@ def firmware(self) -> str: @property @pulumi.getter - def imei(self) -> str: + def imei(self) -> float: """ IMEI of the device, if applicable """ diff --git a/upstream b/upstream index f64fb0a7..a0971843 160000 --- a/upstream +++ b/upstream @@ -1 +1 @@ -Subproject commit f64fb0a70e9026ee7629cfbebb5eed24adec8551 +Subproject commit a09718430d27398a3f592458478f89edff314027 diff --git a/upstream.sh b/upstream.sh index b3d09931..f5609ac6 100755 --- a/upstream.sh +++ b/upstream.sh @@ -186,6 +186,8 @@ init() { fi git submodule update --force --init + cd upstream && git clean -fxd && cd .. + if [[ "${force}" == "true" ]]; then clean_rebases clean_branches